customer_body.html 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  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. </style>
  43. </head>
  44. <body>
  45. <section class="aui-flexView" id="app" v-cloak>
  46. <!--<div class="searchBar">
  47. <input type="text" class="seatchBar-input zmq-width-90" placeholder="输入姓名进行搜索"/>
  48. </div>-->
  49. <div class="aui-app-box zmq-width-90" >
  50. <div class="aui-app-flex-box box-line" v-for="(i,index) in list" v-on:click="lookInfo">
  51. <div class="aui-app-flex ">
  52. <!--<div class="aui-app-flex-hd">
  53. <img src="../../image/drawable-xhdpi/store.png" alt="">
  54. </div>-->
  55. <div class="aui-app-flex-bd"><!-- {{i.bizCustomDto.customName}} -->
  56. <h2> {{i.bizCustomDto.customName}}</h2>
  57. <p>
  58. <span>手机号:{{i.bizCustomDto.customMobile}}</span>
  59. </p>
  60. <p>
  61. <span>车辆信息:{{i.bizCustomDto.jtcls}}</span>
  62. </p>
  63. </div>
  64. <!--<div class="zmq-btn-border zmq-padding-status zmq-text-font-06 zmq-text-msg">
  65. 查看个人中心
  66. </div>-->
  67. </div>
  68. <!-- <div class="aui-app-flex-text">
  69. <div>
  70. <p class="zmq-text-msg zmq-font-weight">
  71. 36.4万英里
  72. </p>
  73. <p class="zmq-text-font-07 zmq-margin-top-5">
  74. 行驶里程
  75. </p>
  76. </div>
  77. <div>
  78. <p class="zmq-text-msg zmq-font-weight">
  79. 12条
  80. </p>
  81. <p class="zmq-text-font-07 zmq-margin-top-5">
  82. 最近更换轮胎
  83. </p>
  84. </div>
  85. <div>
  86. <p class="zmq-text-msg zmq-font-weight">
  87. 2018-08-08
  88. </p>
  89. <p class="zmq-text-font-07 zmq-margin-top-5">
  90. 最近消费时间
  91. </p>
  92. </div>
  93. </div>-->
  94. </div>
  95. </div>
  96. <img class="zmq-img-nodata" v-show="hasData == false" src="../../image/nodata.png" />
  97. <div v-show="upLock == false" class="zmq-text-explain zmq-margin-top-10 zmq-textAlign-center zmq-margin-bottom-10 zmq-block-text">
  98. 已无更多数据
  99. </div>
  100. </section>
  101. </body>
  102. <script type="text/javascript" src="../../script/api.js"></script>
  103. <script type="text/javascript" src="../../script/aui-scroll.js"></script>
  104. <script type="text/javascript" src="../../script/vue.js"></script>
  105. <script type="text/javascript" src="../../script/httpRequest.js"></script>
  106. <script type="text/javascript" src="../../script/vue_plugins.js"></script>
  107. <script type="text/javascript">
  108. apiready = function() {
  109. var type = api.pageParam.type;
  110. new Vue({
  111. el : '#app',
  112. data : {
  113. type : type,
  114. list : [],
  115. retariler_id : '',
  116. // 获取客户列表
  117. customListUrl : 'customListUrl',
  118. // 是否有数据
  119. hasData : false,
  120. // 分页
  121. upLock : true,
  122. current : 1,
  123. total : 1,
  124. agentId : '',
  125. },
  126. methods : {
  127. init : function() {
  128. var _this = this;
  129. this.retariler_id = $api.getStorage("retailerid");
  130. this.getCustomList();
  131. this.configHeaderRefush(function() {
  132. _this.downData = 'down';
  133. _this.upLock = true;
  134. _this.current = 1;
  135. _this.getCustomList();
  136. })
  137. this.configBottomRefush(function(status) {
  138. // 开启上拉加载
  139. if (_this.hasData == true) {
  140. // 开启上拉加载
  141. if (_this.total > _this.current) {
  142. _this.downData = 'up';
  143. _this.current = _this.current + 1;
  144. _this.getCustomList();
  145. } else {
  146. // 上啦没有数据了
  147. _this.upLock = false;
  148. }
  149. }
  150. })
  151. },
  152. // 获取客户列表
  153. getCustomList : function(){
  154. var data = {
  155. retailerId : this.retariler_id,
  156. current : this.current,
  157. }, _this = this;
  158. this.$post(this.customListUrl, data, function(ret) {
  159. if (ret.code == 0) {
  160. _this.total = ret.page.pages;
  161. if (_this.downData == 'up') {
  162. _this.list = _this.list.concat(ret.page.records);
  163. } else {
  164. _this.list = ret.page.records;
  165. if (_this.list.length > 0) {
  166. _this.hasData = true;
  167. }
  168. }
  169. }
  170. })
  171. },
  172. // 查看客户信息
  173. lookInfo : function() {
  174. api.openWin({
  175. name : 'customerInfo_win',
  176. url : './customerInfo_win.html'
  177. });
  178. }
  179. },
  180. mounted : function() {
  181. this.init();
  182. }
  183. })
  184. }
  185. </script>
  186. </html>