From c0558ebaea4b385716d52333efe4fc4a3c2336a4 Mon Sep 17 00:00:00 2001 From: liugongyu <290219706@qq.com> Date: Sat, 11 Jun 2022 21:04:48 +0800 Subject: [PATCH] 下拉框箭头 --- pages/inputCarNumber/inputCarNumber.vue | 687 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- pages/parkPay/parkPay.vue | 143 ++++++++++++++++++++++++++++++++++++++++++++++++++++++----------------------------------------------------------------------------------------- 2 files changed, 414 insertions(+), 416 deletions(-) diff --git a/pages/inputCarNumber/inputCarNumber.vue b/pages/inputCarNumber/inputCarNumber.vue index 264946a..ecb4c8e 100644 --- a/pages/inputCarNumber/inputCarNumber.vue +++ b/pages/inputCarNumber/inputCarNumber.vue @@ -1,346 +1,379 @@ diff --git a/pages/parkPay/parkPay.vue b/pages/parkPay/parkPay.vue index b722a58..37ffe89 100644 --- a/pages/parkPay/parkPay.vue +++ b/pages/parkPay/parkPay.vue @@ -1,72 +1,66 @@ @@ -85,21 +79,22 @@ export default { orderFee: '', // appOrderTimeout:'0', totalFee: '', //应收 - showFlag: false, } }, onLoad(params) { wx.showShareMenu({ withShareTicket: true }) - this.mycarNumber = params.carNumber; - let indexInfo = uni.getStorageSync("indexInfo"); - this.businessId = indexInfo.businessId; - console.log(this.mycarNumber, this.businessId) - this.getbBillQueryInfo(); + let data = JSON.parse(params.optionData) + this.mycarNumber = data.carNumber + this.parkName = data.parkName; + this.parkInTime = data.parkInTime; + this.staytime = data.parkDuration; + this.due = data.totalFee; + this.orderFee = data.unPayFee; + this.orderId = data.orderId; }, onShow() { - }, methods: { payClick() { @@ -133,36 +128,6 @@ export default { }, 2000); }) }, - getbBillQueryInfo() { - let that = this - let paramsData = { - carNumber: that.mycarNumber, - pageNum: '1', - pageSize: '10', - businessId: that.businessId, - parkState: '10', - } - // 获取 接口 - that.$myRequest({ - url: that.$common.queryParkingRecordByCarNumbers, - method: 'POST', - data: that.$common.requestSign(paramsData) - }).then(res => { - console.log(res.data.dataList[0]) - if (res.data.dataList.length > 0) { - let data = res.data.dataList[0] - that.parkName = data.parkName; - that.parkInTime = data.parkInTime; - that.staytime = data.parkDuration; - that.due = data.totalFee; - that.orderFee = data.unPayFee; - that.orderId = data.orderId; - that.showFlag = false - } else { - that.showFlag = true - } - }) - }, } } -- libgit2 0.21.4