Commit 0408eccfd5f8d8b75667258fdc95e64286b83efb
1 parent
c983ff5a
update .gitignore
Showing
2 changed files
with
7 additions
and
1 deletions
js/list.js
... | ... | @@ -67,6 +67,10 @@ jsajax.defaultReq( |
67 | 67 | console.log(data.data.dataList) |
68 | 68 | |
69 | 69 | var data = data.data.dataList; |
70 | + if(data.length==0){ | |
71 | + $('#tip-title').text('暂无停车记录') | |
72 | + return | |
73 | + } | |
70 | 74 | var htmls=''; |
71 | 75 | for (var i=0;i<data.length;i++) { |
72 | 76 | var orderFreeDuration = Number((data[i].orderFreeDuration)) | ... | ... |
list.html
... | ... | @@ -132,10 +132,12 @@ |
132 | 132 | </style> |
133 | 133 | </head> |
134 | 134 | <body ontouchstart=""> |
135 | -<div class="weui-cells__title" style="color: #f00;text-align: center">48小时限时补缴优惠</div> | |
135 | +<div id="tip-title" class="weui-cells__title" style="color: #f00;text-align: center">48小时限时补缴优惠</div> | |
136 | 136 | <div id="pay_listcont"> |
137 | 137 | |
138 | 138 | </div> |
139 | + | |
140 | + | |
139 | 141 | <div class="pay-content-padded"> |
140 | 142 | <a class="weui-btn weui-btn_primary showTooltips" href="javascript:" id="showTooltips" v-cloak="showTooltips">申请离场</a> |
141 | 143 | </div> | ... | ... |