agentSearch_body.html 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. <!DOCTYPE html>
  2. <html class="">
  3. <!--STATUS OK-->
  4. <head>
  5. <meta name="referrer" content="always" />
  6. <meta charset='utf-8' />
  7. <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
  8. <meta http-equiv="x-dns-prefetch-control" content="on">
  9. <meta name="description" content="">
  10. <meta name="format-detection" content="telephone=no" />
  11. <link rel="stylesheet" type="text/css" href="css/vant-ui.css" />
  12. <link rel="stylesheet" type="text/css" href="css/iconfont.css">
  13. <link rel="stylesheet" type="text/css" href="css/main.css" />
  14. <title></title>
  15. </head>
  16. <style>
  17. .dingdangenzong .dingdanSearch {
  18. top: .1rem
  19. }
  20. .dingdangenzong {
  21. padding-top: 1.2rem;
  22. }
  23. .totalCount {
  24. background-color: #00a0ea !important;
  25. color: #fff;
  26. text-align: center;
  27. padding: 0.3rem 0;
  28. font-size: 0.3rem;
  29. width: 90%;
  30. margin: 0 5%;
  31. border-radius: 5px;
  32. }
  33. .search_input {
  34. color: #B5B5B5;
  35. font-size: .25rem;
  36. width: 100%;
  37. padding-left: .8rem;
  38. }
  39. </style>
  40. <body>
  41. <div id="app" v-cloak>
  42. <div class="pageView dingdangenzong">
  43. <!-- <div class="totalCount">总共:{{ totaltotals }} 家</div> -->
  44. <div class="dingdanSearch flex a-center j-center">
  45. <div class="search_box flex a-center">
  46. <input type="text" placeholder="请输入门店名称" v-model="agentKeyword">
  47. <!-- <div class="fgx"></div>
  48. <div class="search_btn flex a-center" style="width:1.8rem" v-on:click="chooseStatus">{{ agentStatus.name }} <i class="iconfont icon-xia"></i> </div> -->
  49. <div v-if="this.agentKeyword!=''" class="fgx"></div>
  50. <div v-if="this.agentKeyword!=''" class="search_btn flex a-center" style="width:1.8rem" v-on:click="chooseStatus">{{ agentStatus.name }} <i class="iconfont icon-xia"></i></div>
  51. <van-icon name="search" size="0.32rem" />
  52. </div>
  53. </div>
  54. <div class="mendianliebiao" v-if="list!=null" id="mescroll">
  55. <div class="item flex a-center" v-for="(item,index) in list" v-on:click="lookStoreInfo(item.mainId)">
  56. <div class="img"><img :src="item.storeUrl" onerror="javascript:this.src='./image/noimg.png';"></div>
  57. <div class="infos">
  58. <h2>{{item.storeName}}</h2>
  59. <p>经销品牌:{{item.brandName}}</p>
  60. <p>电话:{{item.storePhone}}</p>
  61. <span>状态:{{['待审核','审核通过','审核未通过',"门店已冻结"][item.status]}}</span>
  62. </div>
  63. <i class="iconfont icon-right"></i>
  64. </div>
  65. <!-- <div v-show="hasOther && list.length > 0" style="width: 100%;height: 1rem;;text-align : center;margin-top : 1rem;font-size:0.3rem">暂无更多数据</div> -->
  66. </div>
  67. <div v-else style="text-align:center">
  68. <img src="./image/nodata.png" style="margin:2rem auto;width:100%;height:100%" />
  69. </div>
  70. </div>
  71. </div>
  72. </body>
  73. <!-- <script src="js/vue.js"></script> -->
  74. <script type="text/javascript" src="../script/aui-scroll.js"></script>
  75. <link rel="stylesheet" href="./mescroll/mescroll.min.css">
  76. <script type="text/javascript" src="./mescroll/mescroll.min.js"></script>
  77. <script type="text/javascript" src="../script/vue.js"></script>
  78. <script src="js/vant-ui.js"></script>
  79. <script src="js/main.js"></script>
  80. <script type="text/javascript" src="../script/api.js"></script>
  81. <script type="text/javascript" src="../script/httpRequest.js"></script>
  82. <script type="text/javascript" src="../script/vue_plugins.js"></script>
  83. <script>
  84. apiready = function() {
  85. new Vue({
  86. el: '#app',
  87. data: {
  88. list: null,
  89. // list: [{statusName : 1},{statusName : 1},{statusName : 1},{statusName : 1},{statusName : 1},{statusName : 1},{statusName : 1},{statusName : 1},{statusName : 1},{statusName : 1},{statusName : 1},{statusName : 1},{statusName : 1},{statusName : 1},{statusName : 1},{statusName : 1},{statusName : 1}],
  90. kunnr: '',
  91. // current: 1,
  92. // size: 10,
  93. // totalPages: 3,
  94. // frist : 1,
  95. statuses : [{
  96. code : '',
  97. name : '全部'
  98. },{
  99. code : '0',
  100. name : '待审核'
  101. },{
  102. code : '1',
  103. name : '审核通过'
  104. },{
  105. code : '3',
  106. name : '门店已冻结'
  107. }],
  108. // list:[],
  109. agentKeyword: '', // 门店名称
  110. agentStatus : {code : '',name : '全部'},
  111. UIActionSelector : '',
  112. // mescroll : '',
  113. // hasOther : false,
  114. // totaltotals : 0,
  115. },
  116. watch: {
  117. agentKeyword: function() {
  118. this.getStoreList();
  119. }
  120. },
  121. mounted: function() {
  122. this.init();
  123. },
  124. methods: {
  125. init: function() {
  126. // this.UIActionSelector = api.require("UIActionSelector");
  127. var _this = this;
  128. this.kunnr = $api.getStorage('kunnr');
  129. // this.getStoreList();
  130. this.addEvent('refushAgentList',function(){
  131. _this.getStoreList();
  132. })
  133. },
  134. getStoreList: function(mescroll) {
  135. var params = {
  136. "kunnr": this.kunnr,
  137. "storeName": this.agentKeyword,
  138. "status": this.agentStatus.code,
  139. "url": 'json',
  140. "type": 'body'
  141. },
  142. _this = this;
  143. this.$post('getRetailerSearch', params, function(ret) {
  144. if (ret.code == 0 || ret.code == '0') {
  145. _this.list = ret.data;
  146. }
  147. });
  148. },
  149. chooseStatus : function(){
  150. this.UIActionSelector = api.require("UIActionSelector");
  151. var _this = this;
  152. this.chooseRegion(this.UIActionSelector,1,this.statuses,function(ret){
  153. if(ret.eventType == 'ok'){
  154. _this.agentStatus = ret.selectedInfo[0];
  155. _this.getStoreList();
  156. }
  157. })
  158. },
  159. // 点击查看门店详情进行审核
  160. lookStoreInfo: function(id) {
  161. var params = {
  162. storeId: id
  163. }
  164. this.goWin('agentInfo', 'agentInfo_win.html', params);
  165. },
  166. }
  167. })
  168. }
  169. </script>
  170. </html>