lipeiList_body.html 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  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 {
  23. background-color: #fff !important;
  24. }
  25. .pageView.bdjl .jiluItems {
  26. background-color: #00a0ea;
  27. color: #fff;
  28. }
  29. .mescroll{
  30. position: relative;
  31. height: 100%;/*如设置bottom:50px,则需height:auto才能生效*/
  32. }
  33. </style>
  34. <body>
  35. <div id="app" v-cloak>
  36. <div class="pageView bdjl mescroll-touch-y mescroll" style="padding-top: 10px" id="mescroll">
  37. <div class="jiluItems" v-for="(v,i) in list" v-show="list.length > 0" v-on:click="lookSetTlement(v.orderno)">
  38. <div class="title flex a-center jlr">
  39. <div class="flex a-center">
  40. <b></b>
  41. <span>单号:{{ v.orderno }}</span>
  42. </div>
  43. <!-- <div class="shangwuLipei">
  44. 商务理赔
  45. </div> -->
  46. <i class="iconfont icon-right"></i>
  47. </div>
  48. <div class="content flex wrap">
  49. <div class="item">
  50. 参保单状态:{{ v.status | statusToStr }}
  51. </div>
  52. <div class="item">
  53. 车牌号:{{ v.plateNumber }}
  54. </div>
  55. <div class="item" style="width : 100%">
  56. 联系人:{{ v.telname }}
  57. </div>
  58. <div class="item" style="width : 100%">
  59. 车辆性质:{{v.operatingType | getOrderType }}
  60. </div>
  61. <div class="item" style="width : 100%">
  62. 参保时间:{{ v.policyStart}} - {{ v.policyEnd }}
  63. </div>
  64. </div>
  65. </div>
  66. <div v-show="list.length == 0">
  67. <img src="image/noData.png" style="margin : 2rem auto" />
  68. </div>
  69. </div>
  70. </div>
  71. </body>
  72. <script type="text/javascript" src="../script/api.js"></script>
  73. <script type="text/javascript" src="../script/httpRequest.js"></script>
  74. <script type="text/javascript" src="../script/vue_plugins.js"></script>
  75. <script type="text/javascript">
  76. apiready = function() {
  77. new Vue({
  78. el: '#app',
  79. data: {
  80. show: false,
  81. list: [],
  82. userid: '',
  83. keyword: '', // 关键字
  84. startDate: '', // 开始时间
  85. endDate: '', // 结束时间
  86. page: 1,
  87. pagesize: 10,
  88. totalPages: 1, // 总页数
  89. frist: 1,
  90. },
  91. filters: {
  92. statusToStr: function(val) {
  93. return ["在保", "申请中", "已提交", "已过期","已通过","已拒绝"][val]
  94. },
  95. getOrderType : function(val){
  96. return ['营运','非营运'][val]
  97. }
  98. },
  99. methods: {
  100. init: function() {
  101. var _this = this;
  102. this.userid = $api.getStorage('userid');
  103. this.getlipeiList();
  104. // 配置上拉加载下拉刷新
  105. },
  106. configs: function() {
  107. var _this = this;
  108. this.frist = 2;
  109. this.configDownAndPull("mescroll", function(mescroll) {
  110. _this.page = 1;
  111. _this.getlipeiList(mescroll);
  112. }, function(mescroll) {
  113. if (_this.page < _this.totalPages) {
  114. _this.page = _this.page + 1;
  115. _this.getlipeiList(mescroll, 1);
  116. } else {
  117. mescroll.endSuccess(_this.pagesize, false);
  118. }
  119. })
  120. },
  121. /**
  122. * 获取车主提交的理赔记录
  123. */
  124. getlipeiList: function(mescroll) {
  125. var url = "peifuListU",
  126. _this = this;
  127. var data = {
  128. "param": "",
  129. "storeId": this.userid,
  130. "startDate": "",
  131. "endDate": "",
  132. "url": "json",
  133. "type": "body",
  134. }
  135. this.$post(url, data, function(ret) {
  136. if (ret.code == 0 || ret.code == '0') {
  137. _this.list = ret.data ? (_this.page == 1 ? ret.data.list : _this.list.concat(ret.data.list)) : [];
  138. if (_this.frist == 1) {
  139. _this.$nextTick(function() {
  140. _this.configs();
  141. })
  142. }
  143. if (mescroll) {
  144. mescroll.endSuccess(_this.pagesize, true);
  145. }
  146. _this.totalPages = ret.data ? ret.data.totalPage : 1;
  147. }
  148. })
  149. },
  150. comfirm: function(v) {
  151. this.show = false
  152. },
  153. // 查看赔付详情
  154. lookSetTlement: function(orderNo) {
  155. this.goWin('settlementDisInfo', 'settlementDisInfo_win.html', {
  156. orderNo: orderNo
  157. });
  158. }
  159. },
  160. mounted: function() {
  161. this.init();
  162. }
  163. })
  164. }
  165. </script>
  166. </html>