Fix:5296 【商城小程序】礼品下单页面重新放出增减数量按钮
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
</view>
|
||||
<view v-if="!isGroupBuy">
|
||||
<u-number-box
|
||||
v-if="showInput && !isCountyLotteryGift"
|
||||
v-if="showInput"
|
||||
v-model="goodsInfo.cartNum"
|
||||
:max="goodsInfo['productInfo']['attrInfo']['stock']"
|
||||
integer
|
||||
@@ -48,7 +48,7 @@
|
||||
</view>
|
||||
</template>
|
||||
</u-number-box>
|
||||
<view v-else> x{{ isCountyLotteryGift ? 1 : goodsInfo['cartNum'] }} </view>
|
||||
<view v-else> x{{ goodsInfo['cartNum'] }} </view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -417,9 +417,6 @@ 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');
|
||||
@@ -501,9 +498,6 @@ 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
|
||||
@@ -512,7 +506,7 @@ export default {
|
||||
// if(!this.couponId) {
|
||||
// this.couponId = res.data.couponList.usable[0] && res.data.couponList.usable[0].id || ''
|
||||
// }
|
||||
this.computedPrice(this.isCountyLotteryGift ? 1 : this.goodsInfo.cartNum)
|
||||
this.computedPrice(this.goodsInfo.cartNum)
|
||||
}).finally(() => {
|
||||
this.loading = false
|
||||
})
|
||||
@@ -577,7 +571,7 @@ export default {
|
||||
from: 'routine',
|
||||
cartId: this.cartId,
|
||||
couponId: this.couponId,
|
||||
recipientsNum: this.isCountyLotteryGift ? 1 : this.goodsInfo.cartNum,
|
||||
recipientsNum: this.goodsInfo.cartNum,
|
||||
templateId: this.templateId,
|
||||
message : this.message || '礼笺轻启,礼藏心意',
|
||||
cover: this.selectedCover,
|
||||
|
||||
Reference in New Issue
Block a user