From 52f9f3e4a93f376b549a6cba50f3d18744d7399c Mon Sep 17 00:00:00 2001 From: 1154079537 <1154079537@qq.com> Date: Sat, 15 Jun 2024 18:41:12 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E5=99=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- multipleShop/index/index.vue | 6 +++-- pages/index/index.vue | 47 +++++++++++++++++++++++++++++++----- pages/login/login.vue | 1 + pagesOrder/settle/settle.vue | 3 +++ 4 files changed, 49 insertions(+), 8 deletions(-) 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 @@ } -