little bug

This commit is contained in:
1154079537 2024-06-08 16:19:35 +08:00
parent 3534ca8114
commit 95a6f2b809
1 changed files with 5 additions and 4 deletions

View File

@ -192,7 +192,9 @@
} }
// //
const storeInfo = JSON.parse(uni.getStorageSync('STORE_INFO')) let STORE_INFO = uni.getStorageSync('STORE_INFO');
if (STORE_INFO)
STORE_INFO = JSON.parse(STORE_INFO)
/*商品列表滚动隐藏头部导航 */ /*商品列表滚动隐藏头部导航 */
const instance = getCurrentInstance(); // const instance = getCurrentInstance(); //
@ -269,7 +271,7 @@
page_size: 25, page_size: 25,
name: '', name: '',
order: '', order: '',
store_id: storeInfo.id store_id: STORE_INFO.id || ''
}) })
// console.log(JSON.parse(uni.getStorageSync('STORE_INFO'))) // console.log(JSON.parse(uni.getStorageSync('STORE_INFO')))
@ -421,9 +423,8 @@
productLogApi({ productLogApi({
product_id: item.product_id, product_id: item.product_id,
cate_id: item.cate_id, cate_id: item.cate_id,
store_id: uni.getStorageSync('STORE_INFO').id || '' store_id: STORE_INFO.id || ''
}); });
}; };
const changeGood = (data) => { // const changeGood = (data) => { //
showGoodPopup.value = false; showGoodPopup.value = false;