diff --git a/pkg_user/views/gift/gift.vue b/pkg_user/views/gift/gift.vue index cdb1a49..6bb5ab4 100644 --- a/pkg_user/views/gift/gift.vue +++ b/pkg_user/views/gift/gift.vue @@ -247,6 +247,9 @@ export default { this.templateId = res.data.specialGiftCardTemplate.id this.selectedCover = res.data.specialGiftCardTemplate.cover this.giftImage = res.data.specialGiftCardTemplate.image + if(!this.couponId) { + this.couponId = res.data.couponList.usable[0] && res.data.couponList.usable[0].id || '' + } this.computedPrice(this.goodsInfo.cartNum) }) },