renew_logs.html 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>续租记录</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1, user-scalable=no">
  7. <meta name="apple-mobile-web-app-capable" content="yes">
  8. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  9. <link rel="stylesheet" type="text/css" href="//css.iamberry.com/wateroPF/css/mui.min.css">
  10. <link rel="stylesheet" type="text/css" href="//css.iamberry.com/wateroPF/css/iconfont.css" />
  11. <link rel="stylesheet" type="text/css" href="//css.iamberry.com/wateroPF/css/style.css" />
  12. <style>
  13. body{ text-align:center}
  14. article, section, time, aside {
  15. display: block;
  16. }
  17. .point-time {
  18. content: "";
  19. position: absolute;
  20. width: 13px;
  21. height: 13px;
  22. top: 12px;
  23. left: 30%;
  24. background: #1c87bf;
  25. margin-left: -4px;
  26. border-radius: 50%;
  27. box-shadow: 0 0 0 2px #fff;
  28. }
  29. .text-red {
  30. color: #f6393f;
  31. }
  32. .text-blue {
  33. color: #1c87bf;
  34. }
  35. .text-green {
  36. color: #95c91e;
  37. }
  38. .text-yellow {
  39. color: #ffb902;
  40. }
  41. .text-purple {
  42. color: #d32d93;
  43. }
  44. .point-red {
  45. background-color: #f6393f;
  46. }
  47. .point-blue {
  48. background-color: #38d1f7;
  49. }
  50. .point-green {
  51. background-color: #95c91e;
  52. }
  53. .point-yellow {
  54. background-color: #ffb902;
  55. }
  56. .point-purple {
  57. background-color: #d32d93;
  58. }
  59. .content {
  60. width: 100%;
  61. margin: 0 auto;
  62. }
  63. .content article {
  64. position: relative;
  65. }
  66. .content article > h3 {
  67. width: 100%;
  68. height: 20px;
  69. line-height: 20px;
  70. text-align: left;
  71. text-indent: 3%;
  72. font-size: 1.4em;
  73. color: #fff;
  74. padding: 10px 0 20px;
  75. background-color: #dd6d01;
  76. }
  77. .content article section {
  78. padding: 0 10px 17px;
  79. position: relative;
  80. }
  81. .content article section:before {
  82. content: "";
  83. width: 5px;
  84. top: 17px;
  85. bottom: -17px;
  86. left: 30%;
  87. background: #e6e6e6;
  88. position: absolute;
  89. -webkit-transform: scaleX(.5);
  90. }
  91. .content article section:last-child:before {
  92. display: none;
  93. }
  94. .content article section time {
  95. width: 25%;
  96. display: block;
  97. position: absolute;
  98. padding: 8px 0;
  99. }
  100. .content article section time > span {
  101. display: block;
  102. text-align: center;
  103. }
  104. .content article section aside {
  105. color: #3a3a38;
  106. margin-left: 42%;
  107. padding-bottom: 15px;
  108. }
  109. .content article section .brief {
  110. color: #9f9f9f;
  111. }
  112. .my-box-w{position: absolute;left: 50%;top: 50%;background: rgba(255,255,255,.1);width: 100px;height: 100px;border-radius: 50%;margin-left: -50px;margin-top: -60px;padding: 8px;}
  113. .my-box-n{background: rgba(255,255,255,.2);position: relative;height: 100%;width: 100%;border-radius: 50%;}
  114. .my-box-machine{position: absolute;left: 50%;top: 50%;width: auto;color: #fff;-webkit-transform:translateX(-50%) translateY(-20%);}
  115. .machine-num{position: absolute;left: 50%;top: 50%;margin-top:40px;-webkit-transform: translateX(-50%);color: #fff;}
  116. </style>
  117. <script>
  118. // 屏蔽分享
  119. window.hiddenAllWechatMenu = true;
  120. </script>
  121. </head>
  122. <body style="background: #fff;">
  123. <!-- <div class="loading-bg">
  124. <div class="mui-loading">
  125. <div class="mui-spinner">
  126. </div>
  127. &nbsp;&nbsp;加载中...
  128. </div>
  129. </div> -->
  130. <div class="mui-content" style="background: #fff;">
  131. <div style="position: relative;">
  132. <img width="100%" src="//s.iamberry.com/wateroPF/images/shop/renew_bg1.png">
  133. <span class="my-box-w">
  134. <div class="my-box-n">
  135. <div class="my-box-machine">
  136. <span class="iconfont icon-shebeiliebiao" style="font-size: 70px;"></span>
  137. </div>
  138. </div>
  139. </span>
  140. <span class="machine-num" id="equipmentIdId">
  141. </span>
  142. </div>
  143. <div id="pullrefresh_lease_orderlist" class="content">
  144. <article class="my-tab-view-pull">
  145. </article>
  146. </div>
  147. <div id="orderlist" class="content" style="display:none;">
  148. 暂无续费记录
  149. </div>
  150. </div>
  151. <script src="//s.iamberry.com/wateroPF/js/mui.min.js"></script>
  152. <script src="//s.iamberry.com/wateroPF/js/jquery-2.1.1.min.js"></script>
  153. <script src="//s.iamberry.com/wateroPF/js/shop/main.js"></script>
  154. <!-- <script src="//s.iamberry.com/wateroPF/js/shop/wechat-utils-1.0.js"></script> -->
  155. <script type="text/javascript">
  156. function pullupRefresh() {
  157. var rechargeMachineId = getParam("machineId");
  158. $("#equipmentIdId").text("设备编号:"+(10000+ parseInt(rechargeMachineId)));
  159. mui.ajax(base_path + '/machine/recharge_list?dates=' + new Date().getTime(), {
  160. data: {
  161. "rechargeMachineId": rechargeMachineId
  162. },
  163. dataType: 'json',
  164. type: 'post',
  165. timeout: 15000,
  166. success: function(dt) {
  167. //console.log(dt);
  168. if(dt.status) {
  169. var renewal_data = [];
  170. renewal_data = dt.data;
  171. var table = document.body.querySelector('.my-tab-view-pull');
  172. mui(renewal_data).each(function(index) {
  173. var li = document.createElement('section');
  174. var renewal = this.rechargeTime;
  175. var dateLength = this.rechargeDuration / 12;
  176. var rechargeEndTime = this.rechargeEndTime;
  177. li.innerHTML = ' <span class="point-time point-blue"></span><time>'+format(renewal)+'</time><aside><p class="things">续租时长:'+dateLength+'年</p><p class="brief">续后到期时间:'+format(rechargeEndTime)+'</p></aside>';
  178. table.appendChild(li);
  179. })
  180. }else{
  181. $("#pullrefresh_lease_orderlist").hide();
  182. $("#orderlist").show();
  183. }
  184. },
  185. error: function(xhr, type, errorThrown) {
  186. console.log(xhr)
  187. }
  188. })
  189. }
  190. mui.ready(function(){
  191. //页面首次加载时拉取一次数据
  192. pullupRefresh();
  193. });
  194. function format(now) {
  195. now = new Date(now);
  196. var year=now.getFullYear();
  197. var month=now.getMonth()+1;
  198. var date=now.getDate();
  199. var hour=now.getHours();
  200. var minute=now.getMinutes();
  201. var second=now.getSeconds();
  202. if(month <10 && month > 0){
  203. month = "0"+month;
  204. }
  205. if(date <10 && date > 0){
  206. date = "0"+date;
  207. }
  208. return year+"-"+month+"-"+date;
  209. }
  210. </script>
  211. </body>
  212. </html>