|
|
@ -83,7 +83,7 @@ export default { |
|
|
|
}, |
|
|
|
async onReady() { |
|
|
|
// this.screenHeight = await util.getPageHeight() |
|
|
|
console.log(`the index page onReady----` + this.screenHeight) |
|
|
|
console.log(`the index page onReady----` + this.screenHeight,uni.getStorage("stadiumInfo")) |
|
|
|
app = getApp(); |
|
|
|
setTimeout(async () => { |
|
|
|
// await this.updateGoodsList().then(async () => { |
|
|
@ -100,7 +100,7 @@ export default { |
|
|
|
searchGoodBySku: async (sku) => { |
|
|
|
let {brand_id,stadium_id,token} = util.getPostParams() |
|
|
|
let urlParams = { |
|
|
|
brand_id,token, |
|
|
|
brand_id,token,stadium_id, |
|
|
|
"sku": sku, |
|
|
|
} |
|
|
|
console.log("searchGoodBySku urlParams:", urlParams) |
|
|
@ -174,7 +174,8 @@ export default { |
|
|
|
// return skulist |
|
|
|
}).catch(err => { |
|
|
|
console.log("searchGoodBySku err: ", err) |
|
|
|
util.showNone("未找到商品") |
|
|
|
// util.showNone("未找到商品") |
|
|
|
util.showNone(err.res.data?.message||"未找到商品-s") |
|
|
|
}) |
|
|
|
//将skulist合并到shopList |
|
|
|
// this.shopList = this.combinedList(this.shopList, skulist) |
|
|
|