From 06999ce298287532a451b0c66d23728da0fbfc74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E6=98=8A=E5=A4=A9?= <442384644@qq.com> Date: Mon, 27 Feb 2023 15:08:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B6=E9=93=B6=E9=A1=B5=E9=9D=A2=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E4=BC=9A=E5=91=98=E4=BB=B7=E6=A0=BC=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../uni-app/pages/annex/offline_pay/index.vue | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/template/uni-app/pages/annex/offline_pay/index.vue b/template/uni-app/pages/annex/offline_pay/index.vue index 78dd2ae7e..a64ada279 100644 --- a/template/uni-app/pages/annex/offline_pay/index.vue +++ b/template/uni-app/pages/annex/offline_pay/index.vue @@ -7,7 +7,7 @@ {{$t(`¥`)}} - {{$t(`会员优惠价`)}}:{{$t(`¥`)}}{{ payPrice }} + {{$t(`会员优惠价`)}}:{{$t(`¥`)}}{{ payPrice }} @@ -62,18 +62,10 @@ now_money: 0, isWeixin: false, site_name: '', - isCommitted: false + isCommitted: false, + show: false }; }, - watch: { - money(newValue, oldValue) { - if (newValue && typeof newValue === 'number') { - this.checkPrice(); - } else { - this.payPrice = ''; - } - } - }, computed: mapGetters(['isLogin']), onLoad(options) { if (!this.isLogin) { @@ -104,7 +96,7 @@ e.target.value = (e.target.value.match(/^\d*(.?\d{0,2})/g)[0]) || "" this.$nextTick(() => { this.money = e.target.value - this.checkPrice() + this.checkPrice(); }) }, getPayType() { @@ -169,6 +161,7 @@ }) .then(res => { this.payPrice = res.data.pay_price; + this.show = res.data.show }) .catch(err => { uni.showToast({