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,