123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147 |
- <!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>
- <div class="merchant-sign-tabs">
- <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 in merchantlist" @click="godetail(item.Id)">
- <template #title>
- <div class="df">
- <div class="icon df" v-if="item.type === 1">企</div>
- <div class="icon df personle" v-else>个</div>
- <div class="comname f14">{{item.name}}
- <div class="f12 c999">进件时间:{{item.time}}</div>
- </div>
- </div>
- </template>
- <template #default>
- <div class="df center">
- <div class="f14 c999">继续创建</div><img class="going" src="./static/images/sign-going.png" alt="">
- </div>
- </template>
- </van-cell>
- </van-cell-group>
- </van-list>
- </van-pull-refresh>
- </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:false,
- toptitleisshow:true,
- merchantlist:[
- {
- id:1,
- name:'阿里巴巴集团有限公司',
- time:'21-3-19 18:39:24',
- type: 1,
- status:1,
- },
- {
- id:2,
- name:'阿里巴巴集团有限公司',
- time:'21-3-19 18:39:24',
- type: 2,
- status:2,
- },
- {
- id:13,
- name:'阿里巴巴集团有限公司',
- time:'21-3-19 18:39:24',
- type: 1,
- status:3,
- },
- ],
- loading: false,
- finished: false,
- refreshing: false,
- pageinfo:{
- PageSize:10,
- PageNum:1
- },
- };
- },
- created(){
- },
- mounted() {
- },
- methods: {
- 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.onLoad();
- },
- //- 获取暂存列表
- async getmerchantlist(Sort){
- //- PublicLib.ShowLoading({Message:''});
- const UserId = PublicLib.getCookieInfo('userId');
- const res = await getRequest('api/v1/merchantinfo/mymerchant?t='+Math.random(6),JSON.stringify({}));
- if(res.status !== '1') return tips('获取商户列表失败,请重试!');
- //- PublicLib.HideLoading();
- if(res.data.length < this.pageinfo.PageSize) {
- this.finished = true;
- };
- this.merchantlist.push(...res.data);
- this.loading = false;
- if(this.merchantlist.length === 0) {this.isnodata = true}else{this.isnodata = false};
- },
- }
- });
- </script>
- </body>
- </html>
|