From b1aad14d43a040753e97160df8a4d48453a06935 Mon Sep 17 00:00:00 2001
From: linxi <957440651@qq.com>
Date: Tue, 19 May 2026 11:39:58 +0800
Subject: [PATCH] =?UTF-8?q?Fix=EF=BC=9A5290=20=E3=80=90=E5=95=86=E5=9F=8E?=
=?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E3=80=91=E5=95=86=E5=93=81=E8=AE=BE?=
=?UTF-8?q?=E7=BD=AE=E4=B8=BA=E6=8A=BD=E5=A5=96=E6=B4=BB=E5=8A=A8=E5=95=86?=
=?UTF-8?q?=E5=93=81=E5=90=8E=EF=BC=8C=E9=9A=90=E8=97=8F=E5=95=86=E5=93=81?=
=?UTF-8?q?=E5=A2=9E=E5=87=8F=E6=95=B0=E9=87=8F=E6=8C=89=E9=92=AE=EF=BC=8C?=
=?UTF-8?q?=E8=8B=A5=E6=98=AF=E7=A4=BC=E5=93=81=EF=BC=8C=E9=80=81=E7=A4=BC?=
=?UTF-8?q?=E7=95=8C=E9=9D=A2=E9=9A=90=E8=97=8F=E4=B8=80=E4=BA=BA=E9=A2=86?=
=?UTF-8?q?=E5=8F=96=E6=89=80=E6=9C=89=E7=A4=BC=E5=93=81=E5=BC=80=E5=85=B3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/ProductWindow.vue | 7 ++++++-
pkg-video/views/county-lottery.vue | 7 ++++++-
pkg_user/views/gift/gift.vue | 16 +++++++++++-----
3 files changed, 23 insertions(+), 7 deletions(-)
diff --git a/components/ProductWindow.vue b/components/ProductWindow.vue
index aed5f31..5895cb4 100644
--- a/components/ProductWindow.vue
+++ b/components/ProductWindow.vue
@@ -52,7 +52,7 @@
购买数量
-
+
-
+
+ x1
- x{{ goodsInfo['cartNum'] }}
+ x{{ isCountyLotteryGift ? 1 : goodsInfo['cartNum'] }}
@@ -71,7 +71,7 @@
-
+
一人领取所有礼品
@@ -417,6 +417,9 @@ export default {
this.giftNotice = res.data.giftCardGiftNotice
this.orderKey = res.data.orderKey
this.goodsInfo = goodsInfo
+ if (this.isCountyLotteryGift) {
+ this.$set(this.goodsInfo, 'cartNum', 1)
+ }
this.templateId = template.id
this.defaultIndex = this.coverList.findIndex(item => item.id === this.templateId)
console.log(this.defaultIndex, 'defaultIndex');
@@ -498,6 +501,9 @@ export default {
this.giftNotice = res.data.giftCardGiftNotice
this.orderKey = res.data.orderKey
this.goodsInfo = goodsInfo
+ if (this.isCountyLotteryGift) {
+ this.$set(this.goodsInfo, 'cartNum', 1)
+ }
this.templateId = template.id
this.selectedCover = template.cover
this.giftImage = template.image
@@ -506,7 +512,7 @@ export default {
// if(!this.couponId) {
// this.couponId = res.data.couponList.usable[0] && res.data.couponList.usable[0].id || ''
// }
- this.computedPrice(this.goodsInfo.cartNum)
+ this.computedPrice(this.isCountyLotteryGift ? 1 : this.goodsInfo.cartNum)
}).finally(() => {
this.loading = false
})
@@ -571,7 +577,7 @@ export default {
from: 'routine',
cartId: this.cartId,
couponId: this.couponId,
- recipientsNum: this.goodsInfo.cartNum,
+ recipientsNum: this.isCountyLotteryGift ? 1 : this.goodsInfo.cartNum,
templateId: this.templateId,
message : this.message || '礼笺轻启,礼藏心意',
cover: this.selectedCover,