merchant-personal-detail.html 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>商户明细-激活商户-创业帮</title>
  6. <meta name="keywords" content="商户明细-激活商户-创业帮">
  7. <meta name="description" content="商户明细-激活商户-创业帮">
  8. <meta content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,shrink-to-fit=no,user-scalable=no" name="viewport" viewport="cover">
  9. <meta name="apple-mobile-web-app-capable" content="yes">
  10. <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
  11. <meta content="telephone=no" name="format-detection">
  12. <meta content="email=no" name="format-detection">
  13. <meta name="apple-mobile-web-app-title" content="商户明细-激活商户-创业帮">
  14. <meta http-equiv="Cache-Control" content="no-siteapp">
  15. <link rel="stylesheet" href="./static/css/main.css">
  16. </head>
  17. <body class="bgc-back pb0 pt0">
  18. <div class="merchant_detail" id="app" v-cloak>
  19. <van-nav-bar class="user_rank_explan_title user_title_normal titlef16" left-arrow title="商户明细" v-if="toptitleisshow" @click-left="goback" @click-right="gosearch">
  20. <template #left> <img src="./static/images/left.png" alt=""></template>
  21. <template #right>
  22. <van-icon name="search"></van-icon>
  23. </template>
  24. </van-nav-bar>
  25. <van-pull-refresh v-model="refreshing" @refresh="onRefresh">
  26. <div class="merchant_detail_top rel"><img src="./static/images/merchant-detail-tipsbg.png" alt="">
  27. <div class="tips abs f12 df">
  28. <div class="title">提示:</div>
  29. <div class="context">首次已绑定激活MPOS商户再绑定激活电签POS,可享激活奖励,不享循环送资格.</div>
  30. </div>
  31. </div>
  32. <div class="merchant_detail_tabs bgcfff">
  33. <van-tabs v-model="active" line-width="20" line-height="2" @click="changetab">
  34. <van-tab :title="'全部('+count.Total+')'">
  35. <div class="tabs_panel bgcfff ovh">
  36. <van-cell-group>
  37. <van-list v-model="loading" :finished="finished" @load="onLoad" :immediate-check="false">
  38. <van-cell v-for="item in merchantList">
  39. <template #title><span class="f14 c333">{{item.MerchantName}}</span><span class="type">{{item.BrandId}}</span></template>
  40. <template #label><span class="f12 c999">{{item.MerStandardDate}}</span></template>
  41. <template #default>
  42. <div class="df center c999 f14" v-if="!item.active"><span>未激活</span>
  43. <van-icon name="arrow"> </van-icon>
  44. </div>
  45. <div class="active df center" v-else><span>已激活</span>
  46. <van-icon name="arrow"> </van-icon>
  47. </div>
  48. </template>
  49. </van-cell>
  50. </van-list>
  51. </van-cell-group>
  52. </div>
  53. </van-tab>
  54. <van-tab :title="'扶持期('+count.HelpCount+')'">
  55. <div class="tabs_panel bgcfff ovh">
  56. <van-cell-group>
  57. <van-list v-model="loading" :finished="finished" @load="onLoad" :immediate-check="false">
  58. <van-cell v-for="item in merchantList">
  59. <template #title><span class="f14 c333">{{item.MerchantName}}</span><span class="type">{{item.BrandId}}</span></template>
  60. <template #label><span class="f12 c999">{{item.MerStandardDate}}</span></template>
  61. <template #default>
  62. <div class="df center c999 f14" v-if="!item.active"><span>未激活</span>
  63. <van-icon name="arrow"> </van-icon>
  64. </div>
  65. <div class="active df center" v-else><span>已激活</span>
  66. <van-icon name="arrow"> </van-icon>
  67. </div>
  68. </template>
  69. </van-cell>
  70. </van-list>
  71. </van-cell-group>
  72. </div>
  73. </van-tab>
  74. <van-tab :title="'稳定期('+count.NotHelpCount+')'">
  75. <div class="tabs_panel bgcfff ovh">
  76. <van-cell-group>
  77. <van-list v-model="loading" :finished="finished" @load="onLoad" :immediate-check="false">
  78. <van-cell v-for="item in merchantList">
  79. <template #title><span class="f14 c333">{{item.MerchantName}}</span><span class="type">{{item.BrandId}}</span></template>
  80. <template #label><span class="f12 c999">{{item.MerStandardDate}}</span></template>
  81. <template #default>
  82. <div class="df center c999 f14" v-if="!item.active"><span>未激活</span>
  83. <van-icon name="arrow"> </van-icon>
  84. </div>
  85. <div class="active df center" v-else><span>已激活</span>
  86. <van-icon name="arrow"> </van-icon>
  87. </div>
  88. </template>
  89. </van-cell>
  90. </van-list>
  91. </van-cell-group>
  92. </div>
  93. </van-tab>
  94. </van-tabs>
  95. </div>
  96. </van-pull-refresh>
  97. </div>
  98. <script src="./static/js/klm-vv.min.js"></script>
  99. <script src="./static/js/appfunc.min.js"></script>
  100. <script src="./static/js/klm-axios-config.js"></script>
  101. <script src="./static/js/publicfn.js"></script>
  102. <script>
  103. // 通过 CDN 引入时不会自动注册 Lazyload 组件
  104. // 可以通过下面的方式手动注册
  105. Vue.use(vant.Lazyload);
  106. PublicLib.SetStatusBarBgColor({bgcolor:'ffffff'});
  107. // 在 #app 标签下渲染一个按钮组件
  108. let app = new Vue({
  109. el: '#app',
  110. data() {
  111. return {
  112. toptitleisshow:true,
  113. active:0,
  114. loading: false,
  115. finished: false,
  116. refreshing: false,
  117. merchantList:[
  118. ],
  119. pageinfo:{
  120. PageSize:10,
  121. PageNum:1
  122. },
  123. count:{
  124. Total: 0, //全部商户
  125. HelpCount: 0, //扶持期商户
  126. NotHelpCount: 0, //稳定期商户
  127. }
  128. };
  129. },
  130. created() {
  131. this.getdetaillist();
  132. },
  133. watch:{
  134. },
  135. methods: {
  136. onLoad() {
  137. if (this.refreshing) {
  138. this.merchantList = [];
  139. this.refreshing = false;
  140. this.pageinfo.PageNum = 0;
  141. }
  142. this.pageinfo.PageNum++;
  143. this.getdetaillist();
  144. },
  145. onRefresh() {
  146. // 清空列表数据
  147. this.finished = false;
  148. // 重新加载数据
  149. // 将 loading 设置为 true,表示处于加载状态
  150. this.loading = true;
  151. this.onLoad();
  152. },
  153. goback(){
  154. PublicLib.GoBack({Level:1});
  155. },
  156. async getdetaillist(){
  157. let IsHelp = "";
  158. if(this.active === 1) {
  159. IsHelp = 1;
  160. }else if(this.active === 2) {
  161. IsHelp = 0;
  162. };
  163. //- PublicLib.ShowLoading({Message:''});
  164. const ProductType = PublicLib.getCookieInfo('producttypeId');
  165. const UserId = PublicLib.getCookieInfo('userId');
  166. const res = await getRequest('api/v1/merchantinfo/actmerchants?t='+Math.random(6),JSON.stringify({...this.pageinfo,UserId,ProductType,IsHelp}));
  167. if(res.status !== '1')return tips('商户明细获取失败!');
  168. //- PublicLib.HideLoading();
  169. if(res.data.length < this.pageinfo.PageSize) {
  170. this.finished = true;
  171. };
  172. this.merchantList.push(...res.data);
  173. //- this.count = res.other;
  174. this.loading = false;
  175. },
  176. changetab(){
  177. this.merchantList = [];
  178. this.getdetaillist();
  179. },
  180. gosearch(){
  181. PublicLib.Goto({Url:'merchant-personal-detail-search'});
  182. }
  183. }
  184. });
  185. </script>
  186. </body>
  187. </html>