kehu_body.html 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>应用下载</title>
  6. <meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" name="viewport"/>
  7. <meta content="yes" name="apple-mobile-web-app-capable"/>
  8. <meta content="black" name="apple-mobile-web-app-status-bar-style"/>
  9. <meta content="telephone=no" name="format-detection"/>
  10. <link href="../../css/styleK.css" rel="stylesheet" type="text/css"/>
  11. <link href="../../css/html.css" rel="stylesheet" type="text/css"/>
  12. <style>
  13. .aui-app-flex-1 {
  14. color: #005AA9;
  15. font-size: 0.7rem;
  16. text-decoration: underline;
  17. margin-right: 10px;
  18. }
  19. .searchBar {
  20. width: 100%;
  21. padding: 5px;
  22. }
  23. .seatchBar-input {
  24. font-size: .7rem;
  25. padding: 9px 15px;
  26. border-radius: 5px;
  27. text-align: center;
  28. border: 1px solid #ddd;
  29. }
  30. .aui-app-flex-text {
  31. display: flex;
  32. display: -webkit-flex;
  33. }
  34. .aui-app-flex-text div {
  35. flex: 1;
  36. border-right: 1px dotted #ddd;
  37. text-align: center;
  38. }
  39. .aui-app-flex-text div:last-of-type {
  40. border-right: 0px dotted #ddd;
  41. }
  42. .aui-access {
  43. border: 1px solid #00787B !important;
  44. color: #00787B !important;
  45. }
  46. .aui-noaccess {
  47. border: 1px solid #c00;
  48. color: #c00;
  49. }
  50. </style>
  51. </head>
  52. <body>
  53. <section class="aui-flexView" id="app">
  54. <!-- <div class="searchBar">
  55. <input type="text" class="seatchBar-input zmq-width-90" placeholder="输入姓名进行搜索"/>
  56. </div>-->
  57. <div class="aui-app-box zmq-width-90" >
  58. <div class="aui-app-flex-box box-line" v-for="(i,index) in list" v-on:click="lookInfo(i)" v-cloak>
  59. <div class="aui-app-flex ">
  60. <!--<div class="aui-app-flex-hd">
  61. <img src="../../image/drawable-xhdpi/store.png" alt="">
  62. </div>-->
  63. <div class="aui-app-flex-bd ">
  64. <h2> {{i.retailerDto.storeName}} <em class="zmq-float-right" v-bind:class="reatailerStatus[i.status].c">{{reatailerStatus[i.status].n}}</em></h2>
  65. <p>
  66. <span>门店经理:{{i.retailerDto.storeJl}} - {{i.retailerDto.storeJlPhone}}</span>
  67. </p>
  68. <p>
  69. <span>提交时间:{{i.retailerDto.createTime}}</span>
  70. </p>
  71. </div>
  72. <!--<div class="zmq-btn-border zmq-padding-status zmq-text-font-06 zmq-text-msg">
  73. 联系他
  74. </div>-->
  75. </div>
  76. </div>
  77. </div>
  78. <img v-show="hasData == false" src="../../image/nodata.png" class="zmq-img-nodata" />
  79. </section>
  80. </body>
  81. <script type="text/javascript" src="../../script/api.js"></script>
  82. <script type="text/javascript" src="../../script/aui-scroll.js"></script>
  83. <script type="text/javascript" src="../../script/vue.js"></script>
  84. <script type="text/javascript" src="../../script/httpRequest.js"></script>
  85. <script type="text/javascript" src="../../script/vue_plugins.js"></script>
  86. <script type="text/javascript">
  87. apiready = function() {
  88. var type = api.pageParam.type;
  89. new Vue({
  90. el : '#app',
  91. data : {
  92. agentId : '',
  93. type : type,
  94. list : [],
  95. // 客户url
  96. getCustomUrl : 'getRetailerUrl',
  97. // 分页展示
  98. upLock : true,
  99. current : 1,
  100. total : 1,
  101. // 订单状态
  102. orderStatus : '',
  103. // 门店状态
  104. reatailerStatus : [{
  105. c : '',
  106. n : '待审核',
  107. }, {
  108. c : 'aui-access',
  109. n : '审核通过',
  110. }, {
  111. c : 'aui-noaccess',
  112. n : '审核不通过',
  113. }],
  114. // 根据状态获取数据
  115. statusList : ["","0","1","2"],
  116. chooseStatus : "",
  117. hasData : false,
  118. },
  119. methods : {
  120. init : function() {
  121. // 配置筛选
  122. var _this = this;
  123. this.agentId = $api.getStorage('agentid');
  124. this.getCustom();
  125. this.configHeaderRefush(function() {
  126. // if (_this.agentId != '') {
  127. // _this.downData = 'down';
  128. // _this.upLock = true;
  129. // _this.current = 1;
  130. _this.getCustom();
  131. // } else {
  132. // api.refreshHeaderLoadDone();
  133. // }
  134. })
  135. this.addEvent("tabClick", function(e) {
  136. var index = e.value.index - 1, newList = new Array();
  137. _this.chooseStatus = _this.statusList[index];
  138. _this.getCustom();
  139. // if (index < 0) {
  140. // newList = _this.allList;
  141. // } else {
  142. // _this.allList.map(function(l, d) {
  143. // if (l.status == index) {
  144. // newList.push(l);
  145. // }
  146. // })
  147. // }
  148. })
  149. this.addEvent("checkRetailer", function() {
  150. _this.getCustom();
  151. })
  152. // this.configBottomRefush(function(status) {
  153. // // 开启上拉加载
  154. // if (_this.hasData == true) {
  155. // // 开启上拉加载
  156. // if (_this.total > _this.current) {
  157. // _this.downData = 'up';
  158. // _this.current = _this.current + 1;
  159. // _this.getCustom();
  160. // } else {
  161. // // 上啦没有数据了
  162. // _this.upLock = false;
  163. // }
  164. // }
  165. // })
  166. },
  167. // 获取门店
  168. getCustom : function() {
  169. var data = {
  170. agent_id : this.agentId,
  171. status : parseInt(this.chooseStatus),
  172. url : 'json',
  173. type : 'body',
  174. }, _this = this;
  175. this.$post(this.getCustomUrl, data, function(ret) {
  176. if (ret.code == 0) {
  177. _this.list = ret.list;
  178. _this.allList = ret.list;
  179. if (_this.list.length > 0) {
  180. _this.hasData = true;
  181. } else {
  182. _this.hasData = false;
  183. }
  184. // _this.total = ret.page.pages;
  185. // if (_this.downData == 'up') {
  186. // _this.list = _this.list.concat(ret.page.records);
  187. // } else {
  188. // _this.list = ret.page.records;
  189. // if (_this.list.length > 0) {
  190. // _this.hasData = true;
  191. // } else {
  192. // _this.hasData = false;
  193. // }
  194. // }
  195. }
  196. })
  197. },
  198. // 查看门店审核
  199. lookInfo : function(i) {
  200. var p = JSON.stringify(i);
  201. api.openWin({
  202. name : 'shenhe_win',
  203. url : './shenhe_win.html',
  204. pageParam : {
  205. p : p
  206. }
  207. });
  208. }
  209. // lookInfo : function() {
  210. // api.openWin({
  211. // name : 'customerInfo_win',
  212. // url : './customerInfo_win.html'
  213. // });
  214. // }
  215. },
  216. mounted : function() {
  217. this.init();
  218. }
  219. })
  220. }
  221. </script>
  222. </html>