baodan_body.html 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  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. <script src="js/vue.js"></script>
  15. <script src="js/vant-ui.js"></script>
  16. <script src="js/main.js"></script>
  17. <link rel="stylesheet" href="./mescroll/mescroll.min.css">
  18. <script type="text/javascript" src="./mescroll/mescroll.min.js"></script>
  19. <title></title>
  20. </head>
  21. <style>
  22. .pageView.bdjl .search {
  23. top : 0rem;
  24. }
  25. .pageView.bdjl {
  26. background-color: #fff !important;
  27. }
  28. .pageView.bdjl .jiluItems {
  29. background-color: #00a0ea;
  30. color: #fff;
  31. }
  32. .mescroll{
  33. position: relative;
  34. height: 100%;/*如设置bottom:50px,则需height:auto才能生效*/
  35. }
  36. </style>
  37. <body>
  38. <div id="app" v-cloak>
  39. <div class="pageView bdjl mescroll-touch-y mescrol" style="padding-top: 0rem" id="mescroll" style="margin-top:1.5rem">
  40. <!-- <div class="search flex a-center" style="display:none">
  41. <div class="searchbox">
  42. <svg t="1589079341958" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5394" width="22" height="22">
  43. <path d="M883.626667 823.04l-145.066667-144.64A337.92 337.92 0 0 0 810.666667 469.333333a341.333333 341.333333 0 1 0-341.333334 341.333334 337.92 337.92 0 0 0 209.066667-72.106667l144.64 145.066667a42.666667 42.666667 0 0 0 60.586667 0 42.666667 42.666667 0 0 0 0-60.586667zM213.333333 469.333333a256 256 0 1 1 256 256 256 256 0 0 1-256-256z" p-id="5395" fill="#bfbfbf"></path>
  44. </svg>
  45. <input type="search" placeholder="请输入车牌号或联系人" v-model="keyword">
  46. </div>
  47. </div> -->
  48. <van-popup position="bottom" v-model="show">
  49. <mycalendar @comfirm="comfirm" @close="show = false"></mycalendar>
  50. </van-popup>
  51. <div class="zhuceTimer flex a-center jlr" style="margin-top: 0.3rem;background-color:#00a0ea;color:#fff">
  52. <div class="flex a-center" v-on:click="getTimes">
  53. <h4>注册时间:</h4>
  54. <p v-on:click="getTimes(0)">{{ startTime }}</p> ~ <p v-on:click="getTimes(1)">{{ endTime }}</p>
  55. </div>
  56. </div>
  57. <div class="jiluItems" v-for="(v,i) in list" :key="i" v-show="list.length > 0" v-on:click="lookSetTlement(v.orderno)">
  58. <div class="title flex a-center jlr">
  59. <div class="flex a-center">
  60. <b></b>
  61. <span>参保单号:{{ v.orderno }}</span>
  62. </div>
  63. <i class="iconfont icon-right"></i>
  64. </div>
  65. <div class="content flex wrap">
  66. <div class="item">
  67. 参保单状态:{{ v.status | statusToStr }}
  68. </div>
  69. <div class="item">
  70. 车牌号:{{ v.plateNumber }}
  71. </div>
  72. <div class="item">
  73. 联系人:{{ v.telname }}
  74. </div>
  75. <div class="item" style="width : 100%">
  76. 车辆性质:{{ v.operatingType | getOrderType }}
  77. </div>
  78. <div class="item" style="width : 100%">
  79. 参保时间:{{ v.policyStart }} - {{ v.policyEnd }}
  80. </div>
  81. </div>
  82. </div>
  83. <div v-show="list.length == 0" style="text-align:center">
  84. <img src="./image/noData.png" style="margin:2rem auto" />
  85. </div>
  86. </div>
  87. </div>
  88. </body>
  89. <script type="text/javascript" src="../script/api.js"></script>
  90. <script type="text/javascript" src="../script/httpRequest.js"></script>
  91. <script type="text/javascript" src="../script/vue_plugins.js"></script>
  92. <script type="text/javascript">
  93. apiready = function() {
  94. new Vue({
  95. el : '#app',
  96. data : {
  97. show : false,
  98. list : [],
  99. userid : '',
  100. keyword : '', // 关键字
  101. startTime : '开始时间',
  102. endTime : '结束时间',
  103. current : 1,
  104. size : 10,
  105. totalPages : 1,
  106. frist : 1,
  107. },
  108. filters: {
  109. statusToStr: function(val) {
  110. return ["在保", "生成保障码", "已提交", "已过期","已通过","已拒绝"][val]
  111. },
  112. getOrderType : function(val){
  113. return ['营运','非营运'][val]
  114. }
  115. },
  116. methods : {
  117. comfirm : function(v) {
  118. this.show = false
  119. },
  120. init : function() {
  121. this.userid = $api.getStorage('userid');
  122. this.getInsurance();
  123. },
  124. configs : function(){
  125. var _this = this;
  126. this.frist = 2;
  127. this.configDownAndPull("mescroll",function(mescroll){
  128. _this.current = 1;
  129. _this.getInsurance(mescroll);
  130. },function(mescroll){
  131. if(_this.current < _this.totalPages){
  132. _this.current = _this.current + 1;
  133. _this.getInsurance(mescroll,1);
  134. }else{
  135. mescroll.endSuccess(_this.size,false);
  136. }
  137. })
  138. },
  139. /**
  140. * 获取 保单记录
  141. */
  142. getInsurance : function(mescroll) {
  143. var url = "getLipeiList", _this = this;
  144. var data = {
  145. "param" : this.keyword,
  146. "storeId" : this.userid,
  147. "startDate" : this.startTime == '开始时间' ? '' : this.startTime,
  148. "endDate" : this.endTime == '结束时间' ? '' : this.endTime,
  149. "type" : "body",
  150. "url" : "json"
  151. }
  152. this.$post(url,data,function(ret){
  153. if(ret.code == 0 || ret.code == '0'){
  154. _this.list =ret.data ? (_this.current == 1 ? ret.data.list : _this.list.concat(ret.data.list)) : [];
  155. if(_this.frist == 1){
  156. _this.$nextTick(function(){
  157. _this.configs();
  158. })
  159. }
  160. if(mescroll){
  161. mescroll.endSuccess(_this.size,true);
  162. }
  163. _this.totalPages = ret.data ? ret.data.totalPage : 1;
  164. }
  165. })
  166. },
  167. /**
  168. * 选择时间
  169. */
  170. getTimes : function(type){
  171. var _this = this;
  172. this.getTime(function(time){
  173. if(type == 0){
  174. _this.startTime = time;
  175. }else{
  176. _this.endTime = time;
  177. }
  178. _this.getInsurance();
  179. })
  180. },
  181. // 查看赔付详情
  182. lookSetTlement: function(orderNo) {
  183. this.goWin('settlementDisInfo0', 'settlementDisInfo0_win.html', {
  184. orderNo: orderNo
  185. });
  186. }
  187. },
  188. mounted : function() {
  189. this.init();
  190. }
  191. })
  192. }
  193. </script>
  194. </html>