123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187 |
- <!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 pb0 pt0">
- <div class="merchant_detail" id="app" v-cloak>
- <van-nav-bar class="user_rank_explan_title user_title_normal titlef16" left-arrow title="商户明细" v-if="toptitleisshow" @click-left="goback" @click-right="gosearch">
- <template #left> <img src="./static/images/left.png" alt=""></template>
- <template #right>
- <van-icon name="search"></van-icon>
- </template>
- </van-nav-bar>
- <van-pull-refresh v-model="refreshing" @refresh="onRefresh">
- <div class="merchant_detail_top rel"><img src="./static/images/merchant-detail-tipsbg.png" alt="">
- <div class="tips abs f12 df">
- <div class="title">提示:</div>
- <div class="context">首次已绑定激活MPOS商户再绑定激活电签POS,可享激活奖励,不享循环送资格.</div>
- </div>
- </div>
- <div class="merchant_detail_tabs bgcfff">
- <van-tabs v-model="active" line-width="20" line-height="2" @click="changetab">
- <van-tab :title="'全部('+count.Total+')'">
- <div class="tabs_panel bgcfff ovh">
- <van-cell-group>
- <van-list v-model="loading" :finished="finished" @load="onLoad" :immediate-check="false">
- <van-cell v-for="item in merchantList">
- <template #title><span class="f14 c333">{{item.MerchantName}}</span><span class="type">{{item.BrandId}}</span></template>
- <template #label><span class="f12 c999">{{item.MerStandardDate}}</span></template>
- <template #default>
- <div class="df center c999 f14" v-if="!item.active"><span>未激活</span>
- <van-icon name="arrow"> </van-icon>
- </div>
- <div class="active df center" v-else><span>已激活</span>
- <van-icon name="arrow"> </van-icon>
- </div>
- </template>
- </van-cell>
- </van-list>
- </van-cell-group>
- </div>
- </van-tab>
- <van-tab :title="'扶持期('+count.HelpCount+')'">
- <div class="tabs_panel bgcfff ovh">
- <van-cell-group>
- <van-list v-model="loading" :finished="finished" @load="onLoad" :immediate-check="false">
- <van-cell v-for="item in merchantList">
- <template #title><span class="f14 c333">{{item.MerchantName}}</span><span class="type">{{item.BrandId}}</span></template>
- <template #label><span class="f12 c999">{{item.MerStandardDate}}</span></template>
- <template #default>
- <div class="df center c999 f14" v-if="!item.active"><span>未激活</span>
- <van-icon name="arrow"> </van-icon>
- </div>
- <div class="active df center" v-else><span>已激活</span>
- <van-icon name="arrow"> </van-icon>
- </div>
- </template>
- </van-cell>
- </van-list>
- </van-cell-group>
- </div>
- </van-tab>
- <van-tab :title="'稳定期('+count.NotHelpCount+')'">
- <div class="tabs_panel bgcfff ovh">
- <van-cell-group>
- <van-list v-model="loading" :finished="finished" @load="onLoad" :immediate-check="false">
- <van-cell v-for="item in merchantList">
- <template #title><span class="f14 c333">{{item.MerchantName}}</span><span class="type">{{item.BrandId}}</span></template>
- <template #label><span class="f12 c999">{{item.MerStandardDate}}</span></template>
- <template #default>
- <div class="df center c999 f14" v-if="!item.active"><span>未激活</span>
- <van-icon name="arrow"> </van-icon>
- </div>
- <div class="active df center" v-else><span>已激活</span>
- <van-icon name="arrow"> </van-icon>
- </div>
- </template>
- </van-cell>
- </van-list>
- </van-cell-group>
- </div>
- </van-tab>
- </van-tabs>
- </div>
- </van-pull-refresh>
- </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);
- PublicLib.SetStatusBarBgColor({bgcolor:'ffffff'});
- // 在 #app 标签下渲染一个按钮组件
- let app = new Vue({
- el: '#app',
- data() {
- return {
- toptitleisshow:true,
- active:0,
- loading: false,
- finished: false,
- refreshing: false,
- merchantList:[
- ],
- pageinfo:{
- PageSize:10,
- PageNum:1
- },
- count:{
- Total: 0, //全部商户
- HelpCount: 0, //扶持期商户
- NotHelpCount: 0, //稳定期商户
- }
- };
- },
- created() {
- this.getdetaillist();
- },
- watch:{
- },
- methods: {
- onLoad() {
- if (this.refreshing) {
- this.merchantList = [];
- this.refreshing = false;
- this.pageinfo.PageNum = 0;
- }
- this.pageinfo.PageNum++;
- this.getdetaillist();
- },
- onRefresh() {
- // 清空列表数据
- this.finished = false;
- // 重新加载数据
- // 将 loading 设置为 true,表示处于加载状态
- this.loading = true;
- this.onLoad();
- },
- goback(){
- PublicLib.GoBack({Level:1});
- },
- async getdetaillist(){
- let IsHelp = "";
- if(this.active === 1) {
- IsHelp = 1;
- }else if(this.active === 2) {
- IsHelp = 0;
- };
- //- PublicLib.ShowLoading({Message:''});
- const ProductType = PublicLib.getCookieInfo('producttypeId');
- const UserId = PublicLib.getCookieInfo('userId');
- const res = await getRequest('api/v1/merchantinfo/actmerchants?t='+Math.random(6),JSON.stringify({...this.pageinfo,UserId,ProductType,IsHelp}));
- if(res.status !== '1')return tips('商户明细获取失败!');
- //- PublicLib.HideLoading();
- if(res.data.length < this.pageinfo.PageSize) {
- this.finished = true;
- };
- this.merchantList.push(...res.data);
- //- this.count = res.other;
- this.loading = false;
- },
- changetab(){
- this.merchantList = [];
- this.getdetaillist();
- },
- gosearch(){
- PublicLib.Goto({Url:'merchant-personal-detail-search'});
- }
- }
- });
- </script>
- </body>
- </html>
|