From e2fc723655b81e4376c372e214d3dd87f1e632c6 Mon Sep 17 00:00:00 2001 From: zmj <1493694146@qq.com> Date: Tue, 18 Jun 2024 14:26:48 +0800 Subject: [PATCH] add --- pages/index/index.vue | 27 +++++---------------------- 1 file changed, 5 insertions(+), 22 deletions(-) diff --git a/pages/index/index.vue b/pages/index/index.vue index 206b779..e2cd061 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -21,19 +21,17 @@ - @@ -250,11 +248,8 @@ shareStr = shareStr + '&spread_uid=' + userStore.userInfo.id + '&real_name=' + (userStore.userInfo .real_name || userStore.userInfo.nickname) } - - - let shareInfo = { - title: STORE_INFO.store_name, + title: userStore.userInfo.nickname, path: '/pages/index/index' + shareStr, imageUrl: STORE_INFO.image || '', success() { @@ -267,8 +262,6 @@ return shareInfo; }) - - /*商品列表滚动隐藏头部导航 */ const instance = getCurrentInstance(); // 获取组件实例 const targetHeight = ref(0) @@ -566,6 +559,7 @@ }); onLoad(async (opt) => { + where.value.store_id = opt.id || STORE_INFO.id; // 店铺id if (opt.id) { where.value.store_id = opt.id; @@ -579,18 +573,7 @@ shareInfo.value.store_id = opt.id; uni.setStorageSync('SHARE_INFO', shareInfo.value); } - } else { - // 店铺信息 - const info = uni.getStorageSync('STORE_INFO'); - if (info) { - where.value.store_id = STORE_INFO.id; - } - // 分享信息 - const i = uni.getStorageSync('SHARE_INFO'); - if (i) - shareInfo.value = i; } - getgoodClassList(0); getGoodList(); // 胶囊布局信息