From db4618b5a13b498f8ac258aa7501c0fbde4a6dc3 Mon Sep 17 00:00:00 2001 From: Wik-T <812952667@qq.com> Date: Mon, 6 Dec 2021 09:13:32 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BF=AE=E6=94=B9=E8=AF=9D=E8=B4=B9=E5=85=85?= =?UTF-8?q?=E5=80=BC=E4=BB=B7=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/order/confirmation.vue | 12 +- subPages/recharge-centre/recharge-centre.vue | 717 +++++++++--------- .../unionComfirmation/unionComfirmation.vue | 20 +- 3 files changed, 377 insertions(+), 372 deletions(-) diff --git a/pages/order/confirmation.vue b/pages/order/confirmation.vue index 1dc836a..0bcbf0e 100644 --- a/pages/order/confirmation.vue +++ b/pages/order/confirmation.vue @@ -209,7 +209,7 @@ }; }, onLoad(option) { - this.couponId = option.id; + this.couponId = option.id; this.getCouponById(); }, onShow() { @@ -271,7 +271,7 @@ couponId: this.couponId } getCouponById(params).then(res => { - if (res.return_code == '000000') { + if (res.return_code == '000000') { this.couponList = res.return_data; this.paytheprice = res.return_data.discountPrice; uni.hideLoading() @@ -670,11 +670,11 @@ uni.reLaunch({ url: '/pages/tabBar/user/user' }); - return; + } else { + uni.reLaunch({ + url: '../success/success?id=' + that.couponId + }); } - uni.reLaunch({ - url: '../success/success?id=' + that.couponId - }); }, cancel: function(r) {}, fail: function(res) {} diff --git a/subPages/recharge-centre/recharge-centre.vue b/subPages/recharge-centre/recharge-centre.vue index 8df2f20..33045e1 100644 --- a/subPages/recharge-centre/recharge-centre.vue +++ b/subPages/recharge-centre/recharge-centre.vue @@ -1,357 +1,362 @@ - - - - - diff --git a/subPages/unionComfirmation/unionComfirmation.vue b/subPages/unionComfirmation/unionComfirmation.vue index 71e2e78..ea6e16a 100644 --- a/subPages/unionComfirmation/unionComfirmation.vue +++ b/subPages/unionComfirmation/unionComfirmation.vue @@ -170,9 +170,9 @@ tongCardPrice: 0, //话费充值 orderPrice: 0, - payPrice: 0, - //保存价格 - saveprice:0, + payPrice: 0, + //保存价格 + saveprice: 0, rechargeContent: '', rechargeModel: '', agentKey: '', @@ -183,7 +183,7 @@ }, onLoad(options) { this.orderPrice = options.orderPrice; - this.payPrice = options.payPrice; + this.payPrice = options.payPrice; this.saveprice = options.payPrice; this.rechargeContent = options.rechargeContent; this.rechargeModel = options.rechargeModel; @@ -252,10 +252,10 @@ url: '/pages/login/register' }) }, - radioChanges(item) { + radioChanges(item) { this.paytheprice = this.saveprice; if (this.memDiscountId == item.id) { // 如果已经选中,则取消选中 - this.memDiscountId = ''; + this.memDiscountId = ''; this.payPrice = this.saveprice; this.deductionPrice = '0.00'; } else { // 否则进行选中赋值 @@ -577,11 +577,11 @@ uni.reLaunch({ url: '/pages/tabBar/user/user' }); - return; + } else { + uni.reLaunch({ + url: '../success/success?id=' + that.couponId + }); } - uni.reLaunch({ - url: '../success/success?id=' + that.couponId - }); }, cancel: function(r) {}, fail: function(res) {}