From d00370d6e4a789a35fc8c630d7dbebe587ff7013 Mon Sep 17 00:00:00 2001 From: gpu Date: Sat, 24 Jan 2026 03:16:36 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=95=86=E5=9F=8E?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=20goods=5Fextend=20=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E5=90=8D=E4=B8=8D=E5=8C=B9=E9=85=8D=E5=AF=BC=E8=87=B4=E7=9A=84?= =?UTF-8?q?=E6=B8=B2=E6=9F=93=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- honey_box/pages/mall/index.vue | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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();