diff --git a/multipleShop/index/index.vue b/multipleShop/index/index.vue index 2bfcfa2..42d295e 100644 --- a/multipleShop/index/index.vue +++ b/multipleShop/index/index.vue @@ -90,7 +90,9 @@ // 门店选择 const onChooseShop = (item) => { currShop.value = item.id; - uni.setStorageSync('STORE_INFO', JSON.stringify(item)) + uni.setStorageSync('STORE_INFO', JSON.stringify(item)); + // 如果选择了新店铺,删除之前的分享信息 + uni.removeStorageSync('SHARE_INFO'); setTimeout(() => { uni.reLaunch({ url: '/pages/index/index?id=' + item.id, @@ -108,6 +110,7 @@ // 搜索 const handleSearch = () => { + if (!queryParams.latitude || !queryParams.longitude) return; shopList.value = []; queryParams.page_no = 1; status.value = ''; @@ -182,7 +185,6 @@ } -