diff --git a/honey_box/pages/mall/index.vue b/honey_box/pages/mall/index.vue index f75847a4..e5262a30 100644 --- a/honey_box/pages/mall/index.vue +++ b/honey_box/pages/mall/index.vue @@ -70,7 +70,7 @@ + v-if="orderData != null && orderData.goods_extend && orderData.goods_extend.pay_wechat == 1"> 微信支付 @@ -81,7 +81,7 @@ + v-if="orderData != null && orderData.goods_extend && orderData.goods_extend.pay_currency2 == 1"> {{ $config.getAppSetting('currency2_name') }} @@ -257,9 +257,11 @@ export default { if (res.status == 1) { this.orderData = res.data; this.zhifu = 0; - if (this.orderData.goodsExtend.pay_wechat == 1) { + // 使用 goods_extend(API 返回的下划线命名) + const goodsExtend = this.orderData.goods_extend || {}; + if (goodsExtend.pay_wechat == 1) { this.zhifu = 0; - } else if (this.orderData.goodsExtend.pay_currency2 == 1) { + } else if (goodsExtend.pay_currency2 == 1) { this.zhifu = 1; } this.$refs.pop.open();