diff --git a/honey_box/pages/shouye/detail_wuxian.vue b/honey_box/pages/shouye/detail_wuxian.vue index 2c73e6af..e9d38aac 100644 --- a/honey_box/pages/shouye/detail_wuxian.vue +++ b/honey_box/pages/shouye/detail_wuxian.vue @@ -571,7 +571,7 @@ this.buyNum = num; // 处理优惠券与积分互斥 - let coupon_id = (this.couponData && this.couponData.id) || '' + let coupon_id = (this.couponData && this.couponData.id) ? String(this.couponData.id) : '' if (coupon_id != '' && this.useIntegral) { this.useIntegral = false; } else if (this.useIntegral && coupon_id != '') { @@ -623,7 +623,7 @@ this.buyNum = num; // 处理优惠券与积分互斥 - let coupon_id = (this.couponData && this.couponData.id) || '' + let coupon_id = (this.couponData && this.couponData.id) ? String(this.couponData.id) : '' if (coupon_id != '' && this.useIntegral) { this.useIntegral = false; } else if (this.useIntegral && coupon_id != '') {