diff --git a/pages/payment/get_payment.vue b/pages/payment/get_payment.vue index 15b438e..1727b01 100644 --- a/pages/payment/get_payment.vue +++ b/pages/payment/get_payment.vue @@ -2,15 +2,18 @@ + leftIconColor="#333" :titleStyle="{color:'#333',fontWeight:'bold',fontSize:'32rpx'}"> - - + + - {{mer_name}} + {{mer_name||''}} + + + @@ -44,13 +47,13 @@ - - {{cartForm.total_amount}}元 确认支付 + + {{cartForm.total_amount||0}}元 确认支付 - - + @@ -90,7 +93,8 @@ data() { return { isEmpty: true, - isWeixin: this.$wechat.isWeixin(), + // isWeixin: this.$wechat.isWeixin(), + isWeixin: false, cartForm: { product_id: '', product_attr_unique: '', @@ -125,7 +129,6 @@ onLoad(opt) { that = this; this.mer_id = opt.mer_id; - }, onShow() { this.getProductInfoByMerid(this.mer_id); @@ -146,6 +149,9 @@ }, methods: { + test(){ + this.$refs.pop.open() + }, validateDecimal(event) { let val = (that.cartForm.total_amount.match(/^\d*(\.?\d{0,2})/g)[0]) || '' that.$nextTick(() => { @@ -231,16 +237,17 @@ }, getProductInfoByMerid(merid, money) { - if (!that.cartForm.total_amount) return; + // if (!that.cartForm.total_amount) return; getProductInfo({ mer_id: that.mer_id, money: that.cartForm.total_amount }).then(res => { + console.log(res); if (!that.cartForm.total_amount) { this.mer_name = res.data.merchant; } else { that.merchantInfo = res.data.list; - this.mer_name = res.data.merInfo; + // this.mer_name = res.data.merInfo; } }).catch((err) => { that.tips = err.message || err.smg || err;