merchant-personal-detail-search.html 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  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 h100p ovh">
  18. <div id="app" v-cloak>
  19. <div class="bgcfff abs top0" ref="wrapper1" style="width:100%;"></div>
  20. <div class="search-box">
  21. <van-search v-model="value" show-action placeholder="请输入商户编号/手机号/SN号/姓名" @search="onsearch">
  22. <template #action><span class="vm pl16 pr16 personaldetailsearch" @click="onsearch">搜索</span></template>
  23. <template #left>
  24. <van-icon class="personaldetailback" name="arrow-left" @click="goback"> </van-icon>
  25. </template>
  26. </van-search>
  27. </div>
  28. <van-row v-cloak>
  29. <van-col span="24">
  30. <div class="ovh-x" ref="wrapper2">
  31. <van-cell-group class="top_line">
  32. <van-cell class="personaldetailcell" :border="false" v-for="item in transactions" @click="gomerchantdetail(item.Id)" :key="item.Id" :value="transactions.KqRegTime" value-class="f12 c333">
  33. <template #title>
  34. <div class="f14 c333"><span class="vm"> {{item.MerchantName}}</span></div>
  35. <div class="personaldetailleft"><span class="brand mr12" v-if="item.BrandId !== ''">{{item.BrandId}}</span><span class="actType" v-if="item.ActType !== ''">{{item.ActType}}</span></div>
  36. </template>
  37. <template #default>
  38. <div class="df personaldetailright">
  39. <div class="f14 c333 mr12"> <span class="vm"> {{item.ActiveStatus}}</span>
  40. <div class="c999 time">{{item.MerStandardDate}}</div>
  41. </div>
  42. <van-icon name="arrow" color="#999"> </van-icon>
  43. </div>
  44. </template>
  45. </van-cell>
  46. </van-cell-group>
  47. </div>
  48. </van-col>
  49. </van-row>
  50. </div>
  51. <script src="./static/js/clipboard.min.js"></script>
  52. <script src="./static/js/klm-vv.min.js"></script>
  53. <script src="./static/js/appfunc.min.js"></script>
  54. <script src="./static/js/klm-axios-config.js"></script>
  55. <script src="./static/js/publicfn.js"></script>
  56. <script>
  57. // 通过 CDN 引入时不会自动注册 Lazyload 组件
  58. // 可以通过下面的方式手动注册
  59. Vue.use(vant.Lazyload);
  60. PublicLib.SetStatusBarBgColor({bgcolor:'ffffff'});
  61. // 在 #app 标签下渲染一个按钮组件
  62. let app = new Vue({
  63. el: '#app',
  64. data() {
  65. return {
  66. transactions: {
  67. },
  68. value: '',
  69. pageinfo:{
  70. PageSize:100,
  71. PageNum:1
  72. }
  73. };
  74. },
  75. mounted() {
  76. this.$nextTick(() => {
  77. const that = this;
  78. if(that.type === 'ios'){
  79. that.$refs.wrapper2.style.height = `${document.documentElement.clientHeight - 90}px`;
  80. }else{
  81. that.$refs.wrapper2.style.height = `${document.documentElement.clientHeight - (90 + Func.getStatusBarHeight())}px`;
  82. };
  83. that.$refs.wrapper1.style.height = `${Func.getStatusBarHeight()}px`;
  84. });
  85. },
  86. methods: {
  87. onsearch(){
  88. this.searchfn();
  89. },
  90. goback() {
  91. PublicLib.GoBack({Level:1});
  92. },
  93. async searchfn(){
  94. //- PublicLib.ShowLoading({Message:''});
  95. const UserId = PublicLib.getCookieInfo('userId');
  96. const res = await getRequest('api/v1/merchantinfo/actmerchantsearch?t='+Math.random(6),JSON.stringify({...this.pageinfo,UserId,SearchKey:this.value}));
  97. if(res.status !== '1')return tips('商户明细获取失败!');
  98. //- PublicLib.HideLoading();
  99. this.transactions = res.data;
  100. },
  101. gomerchantdetail(id){
  102. PublicLib.putCookieInfo('merchantId', id);
  103. PublicLib.Goto({Url:'merchant-detail'});
  104. }
  105. }
  106. });
  107. </script>
  108. </body>
  109. </html>