From 21858de5b42e5ee37f9da0ca776741b8e150f3e8 Mon Sep 17 00:00:00 2001
From: Wik-T <812952667@qq.com>
Date: Thu, 2 Jun 2022 09:13:02 +0800
Subject: [PATCH] =?UTF-8?q?1.=E4=BF=AE=E6=94=B9=E7=A7=AF=E5=88=86=E6=8A=B5?=
=?UTF-8?q?=E6=89=A3H5=20=E4=B8=8D=E8=83=BD=E5=8F=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../unionComfirmation/unionComfirmation.vue | 22 +++++++++++--------
1 file changed, 13 insertions(+), 9 deletions(-)
diff --git a/subPages/unionComfirmation/unionComfirmation.vue b/subPages/unionComfirmation/unionComfirmation.vue
index 860400c..7fd73b2 100644
--- a/subPages/unionComfirmation/unionComfirmation.vue
+++ b/subPages/unionComfirmation/unionComfirmation.vue
@@ -64,9 +64,9 @@
-
+ @end="blockEnd" /> -->
{{availIntegal}}
@@ -209,7 +209,7 @@
paytypeList: [], //支付方式
priceValue: [0, 0], // 积分可以指定默认值
changePrice: '', //滑动值
- isDiscount: false,
+ isDiscount: true,
availIntegal: '', // 可用积分
isUse: true // 是否禁用状态
@@ -319,14 +319,13 @@
uni.navigateTo({
url: '/pages/login/register'
})
- },
+ },
//选择优惠券
radioChanges(item) {
this.paytheprice = this.orderPrice;
- this.isDiscount = false;
if (this.memDiscountId == item.id) { // 如果已经选中,则取消选中
this.memDiscountId = '';
- this.isDiscount = true;
+ this.reload();
this.deductionPrice = '0.00';
this.priceCaluc(this.saveprice);
@@ -363,12 +362,12 @@
this.availIntegal = this.user.gold;
if (this.availIntegal < this.priceValue[1]) {
this.priceValue[1] = this.user.gold;
- this.isDiscount = true;
+ this.reload();
}
} else {
this.availIntegal = payprice;
this.priceValue[1] = 0;
- this.isDiscount = true;
+ this.reload();
}
this.calculatepayPrice();
},
@@ -382,6 +381,11 @@
.deductionPrice).toFixed(2);
}
},
+ //刷新组件
+ reload() {
+ this.isDiscount = false;
+ this.$nextTick(() => (this.isDiscount = true))
+ },
// 微信获取手机号
loginByPhone(PhoneNumber) {
if (PhoneNumber.detail.iv == undefined) {
@@ -752,7 +756,7 @@
},
//滑动结束
blockEnd() {
- this.isDiscount = false;
+ this.isDiscount = 1;
if (this.deductionPrice == 0) {
this.payPrice = parseFloat(this.saveprice - parseFloat(this.priceValue[1] / 100).toFixed(2)).toFixed(
2);