From aec2cfc207bd7846c9edba227ed82df76be0d41e Mon Sep 17 00:00:00 2001 From: modendeveloper Date: Thu, 27 Feb 2025 23:18:30 +0800 Subject: [PATCH] =?UTF-8?q?Fix=EF=BC=9A3281=20=E3=80=90=E7=A4=BC=E5=93=81?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E3=80=91=E8=B5=A0=E7=A4=BC=E5=95=86=E5=93=81?= =?UTF-8?q?=E6=94=AF=E4=BB=98=E6=97=B6=E6=97=A0=E6=B3=95=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E4=BC=98=E6=83=A0=E5=88=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg_user/views/gift/gift.vue | 3 +++ 1 file changed, 3 insertions(+) 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) }) },