Commit 0b9d5f71f9df5aec0fc69bd152303272e2cae88d
1 parent
d6331720
停车记录详情
Showing
2 changed files
with
46 additions
and
228 deletions
common/common.js
pages/businessCard/businessCard.vue
... | ... | @@ -2,17 +2,9 @@ |
2 | 2 | <view> |
3 | 3 | <uni-section title="50%(折扣券)" type="line"> |
4 | 4 | <uni-card padding="0" spacing="0"> |
5 | - <!--<template v-slot:cover>--> | |
6 | - <!--<view class="custom-cover">--> | |
7 | - <!--<image class="cover-image" mode="aspectFill" :src="cover">--> | |
8 | - <!--</image>--> | |
9 | - <!--<view class="cover-content">--> | |
10 | - <!--<text class="uni-subtitle uni-white">今日新闻热点</text>--> | |
11 | - <!--</view>--> | |
12 | - <!--</view>--> | |
13 | - <!--</template>--> | |
5 | + | |
14 | 6 | <uni-list> |
15 | - <uni-list-item title="适应车场" rightText="万达商业广场" > | |
7 | + <uni-list-item title="适应车场" rightText="万达商业广场"> | |
16 | 8 | <text></text> |
17 | 9 | </uni-list-item> |
18 | 10 | <uni-list-item title="价格:¥5/张" rightText="商户库存:0张"></uni-list-item> |
... | ... | @@ -49,7 +41,7 @@ |
49 | 41 | <!--</view>--> |
50 | 42 | <!--</template>--> |
51 | 43 | <uni-list> |
52 | - <uni-list-item title="适应车场" rightText="万达商业广场" > | |
44 | + <uni-list-item title="适应车场" rightText="万达商业广场"> | |
53 | 45 | <text></text> |
54 | 46 | </uni-list-item> |
55 | 47 | <uni-list-item title="价格:¥5/张" rightText="商户库存:0张"></uni-list-item> |
... | ... | @@ -77,7 +69,7 @@ |
77 | 69 | <!--</view>--> |
78 | 70 | <!--</template>--> |
79 | 71 | <uni-list> |
80 | - <uni-list-item title="适应车场" rightText="万达商业广场" > | |
72 | + <uni-list-item title="适应车场" rightText="万达商业广场"> | |
81 | 73 | <text></text> |
82 | 74 | </uni-list-item> |
83 | 75 | <uni-list-item title="价格:¥5/张" rightText="商户库存:0张"></uni-list-item> |
... | ... | @@ -106,7 +98,7 @@ |
106 | 98 | <!--</view>--> |
107 | 99 | <!--</template>--> |
108 | 100 | <uni-list> |
109 | - <uni-list-item title="适应车场" rightText="万达商业广场" > | |
101 | + <uni-list-item title="适应车场" rightText="万达商业广场"> | |
110 | 102 | <text></text> |
111 | 103 | </uni-list-item> |
112 | 104 | <uni-list-item title="价格:¥5/张" rightText="商户库存:0张"></uni-list-item> |
... | ... | @@ -135,7 +127,7 @@ |
135 | 127 | <!--</view>--> |
136 | 128 | <!--</template>--> |
137 | 129 | <uni-list> |
138 | - <uni-list-item title="适应车场" rightText="万达商业广场" > | |
130 | + <uni-list-item title="适应车场" rightText="万达商业广场"> | |
139 | 131 | <text></text> |
140 | 132 | </uni-list-item> |
141 | 133 | <uni-list-item title="价格:¥5/张" rightText="商户库存:0张"></uni-list-item> |
... | ... | @@ -163,7 +155,7 @@ |
163 | 155 | <!--</view>--> |
164 | 156 | <!--</template>--> |
165 | 157 | <uni-list> |
166 | - <uni-list-item title="适应车场" rightText="万达商业广场" > | |
158 | + <uni-list-item title="适应车场" rightText="万达商业广场"> | |
167 | 159 | <text></text> |
168 | 160 | </uni-list-item> |
169 | 161 | <uni-list-item title="价格:¥5/张" rightText="商户库存:0张"></uni-list-item> |
... | ... | @@ -179,138 +171,6 @@ |
179 | 171 | </uni-card> |
180 | 172 | </uni-section> |
181 | 173 | |
182 | - | |
183 | - | |
184 | - <!--<view class="statistics yellow-bg uni-list-cell-pd" style="color: #fff">共18笔充值,充值总金额100.00元</view>--> | |
185 | - <!--<view class="uni-list">--> | |
186 | - <!--<view class="uni-list-cell">--> | |
187 | - <!--<view class="uni-list-cell-left">--> | |
188 | - <!--消费类型--> | |
189 | - <!--</view>--> | |
190 | - <!--<view class="uni-list-cell-db">--> | |
191 | - <!--<picker @change="bindPickerChange" :value="index" :range="array">--> | |
192 | - <!--<view class="uni-input">{{array[index]}}</view>--> | |
193 | - <!--</picker>--> | |
194 | - <!--</view>--> | |
195 | - <!--</view>--> | |
196 | - <!--</view>--> | |
197 | - | |
198 | - <!--<view class="uni-list">--> | |
199 | - <!--<view class="uni-list-cell">--> | |
200 | - <!--<view class="uni-list-cell-left">--> | |
201 | - <!--充值方式--> | |
202 | - <!--</view>--> | |
203 | - <!--<view class="uni-list-cell-db">--> | |
204 | - <!--<picker @change="bindPickerChangeWay" :value="indexWay" :range="arrayWay">--> | |
205 | - <!--<view class="uni-input">{{arrayWay[indexWay]}}</view>--> | |
206 | - <!--</picker>--> | |
207 | - <!--</view>--> | |
208 | - <!--</view>--> | |
209 | - <!--</view>--> | |
210 | - | |
211 | - | |
212 | - <!--<view class="uni-list">--> | |
213 | - <!--<view class="uni-list-cell">--> | |
214 | - <!--<view class="uni-list-cell-left">--> | |
215 | - <!--开始时间--> | |
216 | - <!--</view>--> | |
217 | - <!--<view class="uni-list-cell-db">--> | |
218 | - <!--<picker mode="date" :value="date" :start="startDate" :end="endDate" @change="bindStartDateChange">--> | |
219 | - <!--<view class="uni-input">{{benginDate}}</view>--> | |
220 | - <!--</picker>--> | |
221 | - <!--</view>--> | |
222 | - <!--</view>--> | |
223 | - <!--</view>--> | |
224 | - | |
225 | - <!--<view class="uni-list">--> | |
226 | - <!--<view class="uni-list-cell">--> | |
227 | - <!--<view class="uni-list-cell-left">--> | |
228 | - <!--结束时间--> | |
229 | - <!--</view>--> | |
230 | - <!--<view class="uni-list-cell-db">--> | |
231 | - <!--<picker mode="date" :value="date" :start="startDate" :end="endDate" @change="bindEndDateChange">--> | |
232 | - <!--<view class="uni-input">{{overDate}}</view>--> | |
233 | - <!--</picker>--> | |
234 | - <!--</view>--> | |
235 | - <!--</view>--> | |
236 | - <!--</view>--> | |
237 | - | |
238 | - <!--<!– <view class="border-bg"></view> –>--> | |
239 | - | |
240 | - | |
241 | - <!--<uni-load-more class="load"--> | |
242 | - <!--:content-text="contentText"--> | |
243 | - <!--:status="status"--> | |
244 | - <!--:icon-size="24"--> | |
245 | - <!--:iconType="iconType"--> | |
246 | - <!--v-if="rows.length == 0">--> | |
247 | - | |
248 | - <!--<uni-list class="rechargeWrap">--> | |
249 | - <!--<view class="recordCon uni-list-cell-pd">--> | |
250 | - <!--<text>+66</text>--> | |
251 | - <!--<text>充值成功</text>--> | |
252 | - <!--</view>--> | |
253 | - <!--<view class="recordCon uni-list-cell-pd">--> | |
254 | - <!--<text class="color-green">微信充值</text>--> | |
255 | - <!--<text>2020-10-01 01:01:01</text>--> | |
256 | - <!--</view>--> | |
257 | - <!--</uni-list>--> | |
258 | - | |
259 | - <!--<uni-list class="rechargeWrap">--> | |
260 | - <!--<view class="recordCon uni-list-cell-pd">--> | |
261 | - <!--<text>+66</text>--> | |
262 | - <!--<text>充值成功</text>--> | |
263 | - <!--</view>--> | |
264 | - <!--<view class="recordCon uni-list-cell-pd">--> | |
265 | - <!--<text class="color-blue">支付宝充值</text>--> | |
266 | - <!--<text>2020-10-01 01:01:01</text>--> | |
267 | - <!--</view>--> | |
268 | - <!--</uni-list>--> | |
269 | - | |
270 | - <!--<uni-list class="rechargeWrap">--> | |
271 | - <!--<view class="recordCon uni-list-cell-pd">--> | |
272 | - <!--<text>+66</text>--> | |
273 | - <!--<text>充值成功</text>--> | |
274 | - <!--</view>--> | |
275 | - <!--<view class="recordCon uni-list-cell-pd">--> | |
276 | - <!--<text class="color-red">线下公对公充值</text>--> | |
277 | - <!--<text>2020-10-01 01:01:01</text>--> | |
278 | - <!--</view>--> | |
279 | - <!--</uni-list>--> | |
280 | - | |
281 | - <!--<uni-list class="rechargeWrap">--> | |
282 | - <!--<view class="recordCon uni-list-cell-pd">--> | |
283 | - <!--<text>-66</text>--> | |
284 | - <!--<text>支付成功</text>--> | |
285 | - <!--</view>--> | |
286 | - <!--<view class="recordCon uni-list-cell-pd">--> | |
287 | - <!--<text class="color-green">购买卡券</text>--> | |
288 | - <!--<text>2020-10-01 01:01:01</text>--> | |
289 | - <!--</view>--> | |
290 | - <!--<view class="rechargeArrow">--> | |
291 | - <!-->--> | |
292 | - <!--</view>--> | |
293 | - <!--</uni-list>--> | |
294 | - | |
295 | - | |
296 | - | |
297 | - <!--<uni-list class="rechargeWrap">--> | |
298 | - <!--<view class="recordCon uni-list-cell-pd">--> | |
299 | - <!--<text>-66</text>--> | |
300 | - <!--<text>支付成功</text>--> | |
301 | - <!--</view>--> | |
302 | - <!--<view class="recordCon uni-list-cell-pd">--> | |
303 | - <!--<text class="">停车支付</text>--> | |
304 | - <!--<text>2020-10-01 01:01:01</text>--> | |
305 | - <!--</view>--> | |
306 | - <!--<view class="rechargeArrow">--> | |
307 | - <!-->--> | |
308 | - <!--</view>--> | |
309 | - <!--</uni-list>--> | |
310 | - | |
311 | - <!--</uni-load-more>--> | |
312 | - | |
313 | - | |
314 | 174 | </view> |
315 | 175 | </template> |
316 | 176 | |
... | ... | @@ -329,109 +189,62 @@ export default { |
329 | 189 | indexWay: 0, |
330 | 190 | benginDate: currentDate, |
331 | 191 | overDate: currentDate, |
332 | - rows:[], | |
333 | - pageNum:1,//当前页 | |
334 | - pageSize:1,//每页条数 | |
335 | - reload:false, | |
336 | - status:'more', | |
337 | - contentText:{ | |
338 | - contentdown:'上拉加载更多~', | |
339 | - contentrefresh:'正在加载更多~', | |
340 | - contentmore:'我是有底线的~' | |
192 | + rows: [], | |
193 | + pageNum: 1,//当前页 | |
194 | + pageSize: 1,//每页条数 | |
195 | + reload: false, | |
196 | + status: 'more', | |
197 | + contentText: { | |
198 | + contentdown: '上拉加载更多~', | |
199 | + contentrefresh: '正在加载更多~', | |
200 | + contentmore: '我是有底线的~' | |
341 | 201 | }, |
342 | - iconType:'auto', // 图标样式 | |
202 | + iconType: 'auto', // 图标样式 | |
343 | 203 | } |
344 | 204 | }, |
345 | 205 | onLoad(params) { |
346 | 206 | wx.showShareMenu({ |
347 | 207 | withShareTicket: true |
348 | 208 | }) |
349 | - // this.mycarNumber = params.carNumber; | |
350 | - // this.myorderId = params.orderId; | |
351 | - // this.myparkCode = params.parkCode; | |
352 | - // this.myorderState = params.orderState; | |
353 | - // this.totalFee = params.totalFee | |
354 | - // this.unPayFee = params.unPayFee | |
355 | - // if (params.orderState == 5) { | |
356 | - // //停车补缴单 103 | |
357 | - // this.mypaySrcType = '103' | |
358 | - // } else { | |
359 | - // this.mypaySrcType = '101' | |
360 | - // } | |
361 | - // // this.GetbillQueryInfo(this.mycarNumber, this.myorderId, this.myparkCode); | |
362 | - // this.getWxCode(); | |
363 | - // this.PDlogin(); | |
364 | - //console.log("xxxmake = "+this.makedateFormat()); | |
209 | + this.couponRuleParkPage() | |
365 | 210 | }, |
366 | 211 | onShow() { |
367 | 212 | var me = this; |
368 | - var userInfo = me.getGlobalUser("globalUser"); | |
369 | - if (userInfo != null) { | |
370 | - me.phoneNumb = userInfo.userPhone; | |
371 | - } | |
372 | - var pages = getCurrentPages(); | |
373 | - var currPage = pages[pages.length - 1]; //当前页面 | |
374 | - console.log('currPage.data.selCoupon = ' + currPage.data.selCoupon); | |
375 | - me.selCoupon = currPage.data.selCoupon; | |
376 | - console.log(JSON.stringify(me.selCoupon)); | |
377 | - // me.GetbillQueryInfo(me.mycarNumber, me.myorderId, me.myparkCode, me.selCoupon.cardNo, me.selCoupon.couponType, me.selCoupon | |
378 | - // .discValue); | |
379 | - // GetbillQueryInfo(carnum, orderId, parkCode, cardNo, couponType, disValue) { | |
213 | + | |
380 | 214 | }, |
381 | 215 | computed: { |
382 | - startDate() { | |
383 | - return this.getDate('start'); | |
384 | - }, | |
385 | - endDate() { | |
386 | - return this.getDate('end'); | |
387 | - } | |
216 | + | |
388 | 217 | }, |
389 | 218 | methods: { |
390 | - actionsClick(text){ | |
391 | - uni.showToast({ | |
392 | - title:text, | |
393 | - icon:'none' | |
394 | - }) | |
395 | - }, | |
396 | - bindPickerChange: function (e) { | |
397 | - console.log('picker发送选择改变,携带值为', e.detail.value) | |
398 | - this.index = e.detail.value | |
399 | - }, | |
400 | - bindPickerChangeWay: function (e) { | |
401 | - console.log('picker发送选择改变,携带值为', e.detail.value) | |
402 | - this.indexWay = e.detail.value | |
403 | - }, | |
404 | - bindStartDateChange: function (e) { | |
405 | - this.benginDate = e.detail.value | |
406 | - }, | |
407 | - bindEndDateChange: function (e) { | |
408 | - this.overDate = e.detail.value | |
409 | - }, | |
410 | - getDate(type) { | |
411 | - const date = new Date(); | |
412 | - let year = date.getFullYear(); | |
413 | - let month = date.getMonth() + 1; | |
414 | - let day = date.getDate(); | |
415 | - if (type === 'start') { | |
416 | - year = year - 60; | |
417 | - } else if (type === 'end') { | |
418 | - year = year + 2; | |
219 | + // 通过商户ID查询停车记录信息 | |
220 | + couponRuleParkPage() { | |
221 | + let that = this | |
222 | + let paramsData = { | |
223 | + pageNum: '1', | |
224 | + pageSize: '10' | |
419 | 225 | } |
420 | - month = month > 9 ? month : '0' + month; | |
421 | - day = day > 9 ? day : '0' + day; | |
422 | - return `${year}-${month}-${day}`; | |
226 | + // 首页信息获取 接口 | |
227 | + that.$myRequest({ | |
228 | + url: that.$common.getBusinessParkOrderByBusIdForPage, | |
229 | + method: 'POST', | |
230 | + data: that.$common.requestSign(paramsData) | |
231 | + }).then(res => { | |
232 | + this.recordList = res.data.dataList | |
233 | + }) | |
423 | 234 | }, |
235 | + | |
424 | 236 | } |
425 | 237 | } |
426 | 238 | </script> |
427 | 239 | |
428 | 240 | <style lang="scss" scoped> |
429 | - /deep/ .uni-section{ | |
241 | + /deep/ .uni-section { | |
430 | 242 | padding-bottom: 10px; |
431 | 243 | } |
432 | - .rechargeWrap{ | |
244 | + | |
245 | + .rechargeWrap { | |
433 | 246 | position: relative; |
434 | - .rechargeArrow{ | |
247 | + .rechargeArrow { | |
435 | 248 | position: absolute; |
436 | 249 | right: 10px; |
437 | 250 | top: 30px; |
... | ... | @@ -439,6 +252,7 @@ export default { |
439 | 252 | color: #999; |
440 | 253 | } |
441 | 254 | } |
255 | + | |
442 | 256 | .recordCon { |
443 | 257 | padding-right: 35px; |
444 | 258 | color: #999; |
... | ... | @@ -479,20 +293,24 @@ export default { |
479 | 293 | height: 45px; |
480 | 294 | border-top: 1px #eee solid; |
481 | 295 | } |
296 | + | |
482 | 297 | .card-actions-item { |
483 | 298 | display: flex; |
484 | 299 | flex-direction: row; |
485 | 300 | align-items: center; |
486 | 301 | } |
302 | + | |
487 | 303 | .card-actions-item-text { |
488 | 304 | font-size: 12px; |
489 | 305 | color: #666; |
490 | 306 | margin-left: 5px; |
491 | 307 | } |
308 | + | |
492 | 309 | .cover-image { |
493 | 310 | flex: 1; |
494 | 311 | height: 150px; |
495 | 312 | } |
313 | + | |
496 | 314 | .no-border { |
497 | 315 | border-width: 0; |
498 | 316 | } | ... | ... |