agentSearch_body.html 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  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/css/vant-ui.css" />
  12. <link rel="stylesheet" type="text/css" href="../../../../../css/css/iconfont.css">
  13. <link rel="stylesheet" type="text/css" href="../../../../../css/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. .mescroll{
  40. position: relative;;
  41. height: auto; /*如设置bottom:50px,则需height:auto才能生效*/
  42. }
  43. </style>
  44. <body>
  45. <div id="app" v-cloak>
  46. <div class="pageView dingdangenzong">
  47. <!-- <div class="totalCount">总共:{{ totaltotals }} 家</div> -->
  48. <div class="dingdanSearch flex a-center j-center">
  49. <div class="search_box flex a-center">
  50. <input type="text" :placeholder="$t('home.agentSearch.placeholder')" v-model="agentKeyword">
  51. <!-- <div class="fgx"></div>
  52. <div class="search_btn flex a-center" style="width:1.8rem" v-on:click="chooseStatus">{{ agentStatus.name }} <i class="iconfont icon-xia"></i> </div> -->
  53. <div v-if="this.agentKeyword!=''" class="fgx"></div>
  54. <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>
  55. <van-icon name="search" size="0.32rem" />
  56. </div>
  57. </div>
  58. <div class="mendianliebiao mescroll" v-if="list!=null" id="mescroll">
  59. <div class="item flex a-center" v-for="(item,index) in list" v-on:click="lookStoreInfo(item.mainId)">
  60. <div class="img"><img :src="item.storeUrl" onerror="javascript:this.src='../../../../../image/image/noimg.png';"></div>
  61. <div class="infos">
  62. <h2>{{item.storeName}}</h2>
  63. <p>{{ $t('home.agentSearch.sellBrand') }}:{{item.brandName}}</p>
  64. <p>{{ $t('home.agentSearch.mobile') }}:{{item.storePhone}}</p>
  65. <!-- <span>状态:{{['待审核','审核通过','审核未通过'][item.status]}}</span> -->
  66. </div>
  67. <i class="iconfont icon-right"></i>
  68. </div>
  69. <!-- <div v-show="hasOther && list.length > 0" style="width: 100%;height: 1rem;;text-align : center;margin-top : 1rem;font-size:0.3rem">暂无更多数据</div> -->
  70. </div>
  71. <div v-else style="text-align:center">
  72. <img src="../../../../../image/image/nodata.png" style="margin:2rem auto;width:100%;height:100%" />
  73. </div>
  74. </div>
  75. </div>
  76. </body>
  77. <!-- <script src="js/vue.js"></script> -->
  78. <script type="text/javascript" src="../../../../../script/js/aui-scroll.js"></script>
  79. <link rel="stylesheet" href="../../../../../script/mescroll/mescroll.min.css">
  80. <script type="text/javascript" src="../../../../../script/mescroll/mescroll.min.js"></script>
  81. <script type="text/javascript" src="../../../../../script/vue.js"></script>
  82. <script type="text/javascript" src="../../../../../script/vue-i18n.js"></script>
  83. <script type="text/javascript" src="../../../../../script/js/vant-ui.js"></script>
  84. <script type="text/javascript"src="../../../../../script/js/main.js"></script>
  85. <script type="text/javascript" src="../../../../../script/api.js"></script>
  86. <script type="text/javascript" src="../../../../../script/httpRequest.js"></script>
  87. <script type="text/javascript" src="../../../../../script/vue_plugins.js"></script>
  88. <script type="text/javascript" src="../../../js/zh.js"></script>
  89. <script type="text/javascript" src="../../../js/en.js"></script>
  90. <script>
  91. apiready = function() {
  92. let langType = $api.getStorage('lang') || 'cn'
  93. const i18n = new VueI18n({
  94. locale: langType,//设置语言
  95. messages: {
  96. en: getEn(),
  97. cn: getCn()
  98. }
  99. })
  100. new Vue({
  101. el: '#app',
  102. i18n,
  103. data: {
  104. list: null,
  105. // 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}],
  106. kunnr: '',
  107. // current: 1,
  108. // size: 10,
  109. // totalPages: 3,
  110. // frist : 1,
  111. statuses : [{
  112. code : '',
  113. name : '全部'
  114. },{
  115. code : '0',
  116. name : '待审核'
  117. },{
  118. code : '1',
  119. name : '审核通过'
  120. }],
  121. // list:[],
  122. agentKeyword: '', // 门店名称
  123. agentStatus : {code : '',name : '全部'},
  124. UIActionSelector : '',
  125. // mescroll : '',
  126. // hasOther : false,
  127. // totaltotals : 0,
  128. },
  129. watch: {
  130. agentKeyword: function() {
  131. this.getStoreList();
  132. }
  133. },
  134. mounted: function() {
  135. this.init();
  136. },
  137. methods: {
  138. init: function() {
  139. // this.UIActionSelector = api.require("UIActionSelector");
  140. var _this = this;
  141. this.kunnr = $api.getStorage('kunnr');
  142. // this.getStoreList();
  143. this.addEvent('refushAgentList',function(){
  144. _this.getStoreList();
  145. })
  146. },
  147. getStoreList: function(mescroll) {
  148. var params = {
  149. "kunnr": this.kunnr,
  150. "storeName": this.agentKeyword,
  151. "status": this.agentStatus.code,
  152. "url": 'json',
  153. "type": 'body'
  154. },
  155. _this = this;
  156. this.$post('getRetailerSearch', params, function(ret) {
  157. if (ret.code == 0 || ret.code == '0') {
  158. _this.list = ret.data;
  159. }
  160. });
  161. },
  162. chooseStatus : function(){
  163. this.UIActionSelector = api.require("UIActionSelector");
  164. var _this = this;
  165. this.chooseRegion(this.UIActionSelector,1,this.statuses,function(ret){
  166. if(ret.eventType == 'ok'){
  167. _this.agentStatus = ret.selectedInfo[0];
  168. _this.getStoreList();
  169. }
  170. }, langType)
  171. },
  172. // 点击查看门店详情进行审核
  173. lookStoreInfo: function(id) {
  174. var params = {
  175. storeId: id
  176. }
  177. this.goWin('agentInfo', '../agentInfo/agentInfo_win.html', params);
  178. },
  179. }
  180. })
  181. }
  182. </script>
  183. </html>