fix(details): 商品详情购物车问题修复
This commit is contained in:
parent
af1536b016
commit
c8f83419f3
|
@ -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) => {
|
||||
|
|
Loading…
Reference in New Issue