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({