diff --git a/pages_goods/public/js/detail.js b/pages_goods/public/js/detail.js index 30618aa..2f7ad34 100644 --- a/pages_goods/public/js/detail.js +++ b/pages_goods/public/js/detail.js @@ -249,7 +249,7 @@ export default { } // 优惠券 - if (this.goodsSkuDetail.coupon_list) { + if (Array.isArray(this.goodsSkuDetail.coupon_list)) { this.couponList = this.goodsSkuDetail.coupon_list; this.couponList.forEach(v => { if (v.count == v.lead_count) v.useState = 2; diff --git a/pages_order/_components/common-payment/common-payment.vue b/pages_order/_components/common-payment/common-payment.vue index 62fba90..fa13a7f 100644 --- a/pages_order/_components/common-payment/common-payment.vue +++ b/pages_order/_components/common-payment/common-payment.vue @@ -234,7 +234,7 @@ {{ $lang('order.payment.orderMoney.coupon') }} -