123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <title>首页-进件查询-创业帮</title>
- <meta name="keywords" content="首页-进件查询-创业帮">
- <meta name="description" content="首页-进件查询-创业帮">
- <meta content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,shrink-to-fit=no,user-scalable=no" name="viewport" viewport="cover">
- <meta name="apple-mobile-web-app-capable" content="yes">
- <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
- <meta content="telephone=no" name="format-detection">
- <meta content="email=no" name="format-detection">
- <meta name="apple-mobile-web-app-title" content="首页-进件查询-创业帮">
- <meta http-equiv="Cache-Control" content="no-siteapp">
- <link rel="stylesheet" href="./static/css/main.css">
- </head>
- <body class="bgc-back ovh pt0" style="padding-top:0;">
- <div class="merchant_sign" id="app" ref="container" v-cloak>
- <van-nav-bar left-arrow title="进件查询" @click-left="goback" v-if="toptitleisshow">
- <template #left>
- <van-icon name="arrow-left"> </van-icon>
- </template>
- </van-nav-bar>
- <van-search v-model="searchcontent" shape="round" show-action placeholder="请输入搜索关键词" @search="onSearch">
- <template #action>
- <div @click="onSearch">搜索</div>
- </template>
- </van-search>
- <div class="merchant-sign-tabs">
- <van-tabs v-model="active" swipeable animated line-width="40" line-height="3" :ellipsis="false" sticky @change="chechstatus">
- <van-tab v-for="merchant in merchantTypes" :title="merchant.title">
- <van-pull-refresh v-model="refreshing" @refresh="onRefresh" :class="merchantlist.length === 0 ? 'isnodata':''">
- <van-list v-model="loading" :finished="finished" finished-text="没有更多数据了" @load="onLoad" :immediate-check="false">
- <van-empty class="custom-image" image="./static/images/empty-img.png" description="暂无数据" v-if="isnodata"></van-empty>
- <van-cell-group>
- <van-cell v-for="item,index in merchantlist" :key="item.id" @click.stop="godetail(item.Id)">
- <template #title>
- <div class="df">
- <div class="comname f14">{{item.Name}}
- <div class="f12 c999">进件时间:{{item.CreateDate}}</div>
- </div>
- </div>
- </template>
- <template #default>
- <div class="df center" v-if="item.Status === 2"><img src="./static/images/sign-done.png" alt="">
- <div>审核中</div>
- </div>
- <div class="df center" v-if="item.Status === 3"><img src="./static/images/sign-finished.png" alt="">
- <div>审核失败</div>
- </div>
- <div class="df center" v-if="item.Status === 4"><img src="./static/images/sign-wait.png" alt="">
- <div>待签约</div>
- </div>
- <div class="df center" v-if="item.Status === 5"><img src="./static/images/sign-finished.png" alt="">
- <div>已签约</div>
- </div>
- </template>
- </van-cell>
- </van-cell-group>
- </van-list>
- </van-pull-refresh>
- </van-tab>
- </van-tabs>
- </div>
- </div>
- <script src="./static/js/klm-vv.min.js"></script>
- <script src="./static/js/appfunc.min.js"></script>
- <script src="./static/js/klm-axios-config.js"></script>
- <script src="./static/js/publicfn.js"></script>
- <script>
- // 通过 CDN 引入时不会自动注册 Lazyload 组件
- // 可以通过下面的方式手动注册
- Vue.use(vant.Lazyload);
- Vue.use(vant.Dialog);
- // 在 #app 标签下渲染一个按钮组件
- let app = new Vue({
- el: '#app',
- data() {
- return {
- isnodata:true,
- toptitleisshow:false,
- active:0,
- searchcontent:'',
- merchantTypes: [
- {
- title: '全部',
- dot:2,
- },
- {
- title: '审核中',
- dot:2,
- },
- {
- title: '审核失败',
- dot:2,
- },
- {
- title: '待签约',
- dot:200,
- },
- {
- title: '已签约',
- dot:900,
- },
- ],
- merchantlist:[
- ],
- loading: false,
- finished: false,
- refreshing: false,
- pageinfo:{
- PageSize:10,
- PageNum:1
- },
- };
- },
- created(){
- this.toptitleisshow = toptitleisshow;
- this.getmerchantlist('refresh');
- },
- mounted() {
- },
- methods: {
- chechstatus(status){
- //- this.merchantlist = [];
- this.pageinfo.PageNum = 1;
- this.searchcontent = '';
- this.getmerchantlist('refresh');
- },
- onSearch(){
- if(this.searchcontent === '') {
- return tips('请输入搜索关键词!')
- };
- //- this.merchantlist = [];
- this.getmerchantlist('refresh');
- },
- godetail(id){
- PublicLib.putCookieInfo('merchantsignId', id);
- PublicLib.Goto({Url:'merchant-sign-detail'});
- },
- goback(){
- PublicLib.GoBack({Level:1});
- },
- onLoad() {
- if (this.refreshing) {
- //- this.merchantlist = [];
- this.refreshing = false;
- this.pageinfo.PageNum = 0;
- };
- this.pageinfo.PageNum++;
- this.getmerchantlist();
- },
- onRefresh() {
- // 清空列表数据
- this.finished = false;
- // 重新加载数据
- // 将 loading 设置为 true,表示处于加载状态
- this.loading = true;
- this.pageinfo.PageNum = 1;
- this.getmerchantlist('refresh');
- },
- //- 获取商户列表
- async getmerchantlist(type = 'onload'){
- const UserId = PublicLib.getCookieInfo('userId');
- const res = await getRequest('api/v1/merchantinfo/merchantbystatus?t='+Math.random(6),JSON.stringify({...this.pageinfo,UserId,Status:this.active,SearchKey:this.searchcontent}));
- if(res.status !== '1') return tips('获取商户进件列表失败,请重试!');
- //- PublicLib.HideLoading();
- if(res.data.length < this.pageinfo.PageSize) {
- this.finished = true;
- };
- if(type === 'refresh'){
- this.merchantlist = res.data
- this.refreshing = false;
- }else{
- this.merchantlist.push(...res.data);
- }
- this.loading = false;
- if(this.merchantlist.length === 0) {this.isnodata = true}else{this.isnodata = false};
- },
- }
- });
- </script>
- </body>
- </html>
|