kehu_body.html 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  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. kunnr : '',
  94. type : type,
  95. list : [],
  96. // 客户url
  97. getCustomUrl : 'getRetailerUrl',
  98. // 分页展示
  99. upLock : true,
  100. current : 1,
  101. total : 1,
  102. // 订单状态
  103. orderStatus : '',
  104. // 门店状态
  105. reatailerStatus : [{
  106. c : '',
  107. n : '待审核',
  108. }, {
  109. c : 'aui-access',
  110. n : '审核通过',
  111. }, {
  112. c : 'aui-noaccess',
  113. n : '审核不通过',
  114. }],
  115. // 根据状态获取数据
  116. statusList : ["","0","1","2"],
  117. chooseStatus : "",
  118. hasData : false,
  119. },
  120. methods : {
  121. init : function() {
  122. // 配置筛选
  123. var _this = this;
  124. this.kunnr = $api.getStorage('kunnr');
  125. this.getCustom();
  126. this.configHeaderRefush(function() {
  127. // if (_this.agentId != '') {
  128. // _this.downData = 'down';
  129. // _this.upLock = true;
  130. // _this.current = 1;
  131. _this.getCustom();
  132. // } else {
  133. // api.refreshHeaderLoadDone();
  134. // }
  135. })
  136. this.addEvent("tabClick", function(e) {
  137. var index = e.value.index - 1, newList = new Array();
  138. _this.chooseStatus = _this.statusList[index];
  139. _this.getCustom();
  140. // if (index < 0) {
  141. // newList = _this.allList;
  142. // } else {
  143. // _this.allList.map(function(l, d) {
  144. // if (l.status == index) {
  145. // newList.push(l);
  146. // }
  147. // })
  148. // }
  149. })
  150. this.addEvent("checkRetailer", function() {
  151. _this.getCustom();
  152. })
  153. // this.configBottomRefush(function(status) {
  154. // // 开启上拉加载
  155. // if (_this.hasData == true) {
  156. // // 开启上拉加载
  157. // if (_this.total > _this.current) {
  158. // _this.downData = 'up';
  159. // _this.current = _this.current + 1;
  160. // _this.getCustom();
  161. // } else {
  162. // // 上啦没有数据了
  163. // _this.upLock = false;
  164. // }
  165. // }
  166. // })
  167. },
  168. // 获取门店
  169. getCustom : function() {
  170. // var data = {
  171. // agent_id : this.agentId,
  172. // status : parseInt(this.chooseStatus),
  173. // url : 'json',
  174. // type : 'body',
  175. // }, _this = this;
  176. var data = {
  177. kunnr : this.kunnr,
  178. url : 'json',
  179. type : 'body'
  180. },_this = this;
  181. this.$post(this.getCustomUrl, data, function(ret) {
  182. if (ret.code == 0) {
  183. _this.list = ret.list;
  184. _this.allList = ret.list;
  185. if (_this.list.length > 0) {
  186. _this.hasData = true;
  187. } else {
  188. _this.hasData = false;
  189. }
  190. // _this.total = ret.page.pages;
  191. // if (_this.downData == 'up') {
  192. // _this.list = _this.list.concat(ret.page.records);
  193. // } else {
  194. // _this.list = ret.page.records;
  195. // if (_this.list.length > 0) {
  196. // _this.hasData = true;
  197. // } else {
  198. // _this.hasData = false;
  199. // }
  200. // }
  201. }
  202. })
  203. },
  204. // 查看门店审核
  205. lookInfo : function(i) {
  206. var p = JSON.stringify(i);
  207. api.openWin({
  208. name : 'shenhe_win',
  209. url : './shenhe_win.html',
  210. pageParam : {
  211. p : p
  212. }
  213. });
  214. }
  215. // lookInfo : function() {
  216. // api.openWin({
  217. // name : 'customerInfo_win',
  218. // url : './customerInfo_win.html'
  219. // });
  220. // }
  221. },
  222. mounted : function() {
  223. this.init();
  224. }
  225. })
  226. }
  227. </script>
  228. </html>