diff --git a/pages/specialArea/details.vue b/pages/specialArea/details.vue index 7661032..90f122e 100644 --- a/pages/specialArea/details.vue +++ b/pages/specialArea/details.vue @@ -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) => {