From 2e346ce90ecedd4c3def53d9657adba593b2b860 Mon Sep 17 00:00:00 2001 From: 1154079537 <1154079537@qq.com> Date: Fri, 14 Jun 2024 17:52:32 +0800 Subject: [PATCH] 1 --- pages/index/index.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pages/index/index.vue b/pages/index/index.vue index 784f00a..d983302 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -358,6 +358,12 @@ }).then(res => { if (loadmore) goodList.value.push(...res.data.lists); else goodList.value = res.data.lists; + + // 补充店铺信息 + if (!STORE_INFO.value.name || !STORE_INFO.value.detailed_address) { + STORE_INFO.value.name = res.data.store.name; + STORE_INFO.value.detailed_address = res.data.store.detailed_address; + } }) } @@ -540,7 +546,7 @@ top: 0, bottom: 0, left: 0 - }) + }); onLoad(async (opt) => { // 店铺id @@ -561,6 +567,7 @@ getgoodClassList(0); getGoodList(); + // 胶囊布局信息 btns.value = uni.getMenuButtonBoundingClientRect(); })