fix(details): 商品详情购物车问题修复
This commit is contained in:
parent
af1536b016
commit
c8f83419f3
|
@ -260,7 +260,7 @@ export default {
|
||||||
},
|
},
|
||||||
|
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
this.pkCountry = uni.getStorageSync('pkCountry')
|
this.pkCountry = uni.getStorageSync('pkCountry') || 1
|
||||||
this.waresCode = options.waresCode
|
this.waresCode = options.waresCode
|
||||||
this.specialArea = options.specialArea
|
this.specialArea = options.specialArea
|
||||||
this.getDetails()
|
this.getDetails()
|
||||||
|
@ -303,7 +303,7 @@ export default {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
let carList = {
|
let carList = {
|
||||||
specialArea: this.goodDetail.specialArea,
|
specialArea: this.specialArea || this.goodDetail.specialArea,
|
||||||
number: this.num,
|
number: this.num,
|
||||||
waresCode: this.goodDetail.waresCode,
|
waresCode: this.goodDetail.waresCode,
|
||||||
productGroup: [],
|
productGroup: [],
|
||||||
|
@ -465,9 +465,8 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
getNum(index, cndex, { value }) {
|
getNum(index, cndex, { value }) {
|
||||||
this.goodDetail.productList[index].waresItemsParamsList[
|
this.goodDetail.productList[index].waresItemsParamsList[cndex].quantity =
|
||||||
cndex
|
value
|
||||||
].quantity = value
|
|
||||||
let ggNum = 0
|
let ggNum = 0
|
||||||
this.goodDetail.productList[index].waresItemsParamsList.forEach(
|
this.goodDetail.productList[index].waresItemsParamsList.forEach(
|
||||||
(item, iindex) => {
|
(item, iindex) => {
|
||||||
|
|
Loading…
Reference in New Issue