From 3fe29bf3f59f0120b95a4d405e7562129472de24 Mon Sep 17 00:00:00 2001 From: chenbiao Date: Tue, 16 Aug 2022 14:40:32 +0800 Subject: [PATCH] add 8月需求 --- pages/parkPay/parkPay.vue | 85 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------- 1 file changed, 60 insertions(+), 25 deletions(-) diff --git a/pages/parkPay/parkPay.vue b/pages/parkPay/parkPay.vue index 5d95f1e..e6a18db 100644 --- a/pages/parkPay/parkPay.vue +++ b/pages/parkPay/parkPay.vue @@ -42,14 +42,14 @@ - + @@ -101,7 +101,7 @@ this.staytime = data.parkDuration; this.due = data.totalFee; this.orderFee = data.unPayFee; - this.rechargeNum = data.unPayFee / 100; + // this.rechargeNum = data.unPayFee / 100; this.orderId = data.orderId; }, onShow() {}, @@ -119,26 +119,9 @@ } }, payClick() { - let that = this; - let orderFee = that.orderFee; - let rechargeNum = that.rechargeNum; - if (rechargeNum <= 0) { - return uni.showToast({ - title: '不能输入小于等于0的金额', - icon: 'error' - }) - } else if (rechargeNum === " ") { - return uni.showToast({ - title: '金额不能为空', - icon: 'error' - }) - } else if (rechargeNum > orderFee) { - return uni.showToast({ - title: '金额不能大于需支付金额', - icon: 'error' - }) - } else { - + let that = this; + let orderFee = that.orderFee; + let paramsData = { payType: '35', paySrcType: '101', @@ -167,9 +150,61 @@ }) }, 2000); }) - } + + }, + + // payClick() { + // let that = this; + // let orderFee = that.orderFee; + // let rechargeNum = that.rechargeNum; + // if (rechargeNum <= 0) { + // return uni.showToast({ + // title: '不能输入小于等于0的金额', + // icon: 'error' + // }) + // } else if (rechargeNum === " ") { + // return uni.showToast({ + // title: '金额不能为空', + // icon: 'error' + // }) + // } else if (rechargeNum > orderFee) { + // return uni.showToast({ + // title: '金额不能大于需支付金额', + // icon: 'error' + // }) + // } else { - }, + // let paramsData = { + // payType: '35', + // paySrcType: '101', + // orderId: that.orderId, + // payFee: (rechargeNum * 100).toString(), + // } + // // 获取 接口 + // that.$myRequest({ + // url: that.$common.accountPay, + // method: 'POST', + // data: that.$common.requestSign(paramsData) + // }).then(res => { + // console.log('余额支付:' + res) + // uni.showToast({ + // title: "支付成功", + // icon: 'success', + // duration: 2000 + // }); + // setTimeout(function() { + // let pages = getCurrentPages(); //当前页 + // let beforePage = pages[pages.length - 2]; + // uni.navigateBack({ + // success: function() { + // beforePage.onLoad(); + // } + // }) + // }, 2000); + // }) + // } + + // }, } } -- libgit2 0.21.4