fix(details): 商品详情购物车问题修复

This commit is contained in:
woody 2025-09-29 09:54:23 +08:00
parent af1536b016
commit c8f83419f3
1 changed files with 4 additions and 5 deletions

View File

@ -260,7 +260,7 @@ export default {
},
onLoad(options) {
this.pkCountry = uni.getStorageSync('pkCountry')
this.pkCountry = uni.getStorageSync('pkCountry') || 1
this.waresCode = options.waresCode
this.specialArea = options.specialArea
this.getDetails()
@ -303,7 +303,7 @@ export default {
return false
}
let carList = {
specialArea: this.goodDetail.specialArea,
specialArea: this.specialArea || this.goodDetail.specialArea,
number: this.num,
waresCode: this.goodDetail.waresCode,
productGroup: [],
@ -465,9 +465,8 @@ export default {
}
},
getNum(index, cndex, { value }) {
this.goodDetail.productList[index].waresItemsParamsList[
cndex
].quantity = value
this.goodDetail.productList[index].waresItemsParamsList[cndex].quantity =
value
let ggNum = 0
this.goodDetail.productList[index].waresItemsParamsList.forEach(
(item, iindex) => {