From ca9c5bfbf1c5014665f7b26a2c6653ce1d3bd4f6 Mon Sep 17 00:00:00 2001 From: zmj <1493694146@qq.com> Date: Tue, 18 Jun 2024 15:50:26 +0800 Subject: [PATCH] add --- pages/index/index.vue | 10 +++++++++- pagesOrder/settle/settle.vue | 5 +++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/pages/index/index.vue b/pages/index/index.vue index e2cd061..e6d117a 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -246,7 +246,7 @@ let shareStr = '?id=' + STORE_INFO.id; if (userStore.userInfo.user_ship == 1) { shareStr = shareStr + '&spread_uid=' + userStore.userInfo.id + '&real_name=' + (userStore.userInfo - .real_name || userStore.userInfo.nickname) + .nickname) } let shareInfo = { title: userStore.userInfo.nickname, @@ -558,10 +558,18 @@ store_id: '' }); + const getShareInfo = () => { + if (uni.getStorageSync('SHARE_INFO')) { + shareInfo.value = (uni.getStorageSync('SHARE_INFO')) + } + } + getShareInfo() + onLoad(async (opt) => { where.value.store_id = opt.id || STORE_INFO.id; // 店铺id if (opt.id) { + console.log('opt', opt) where.value.store_id = opt.id; const info = await shopDetailApi({ store_id: opt.id diff --git a/pagesOrder/settle/settle.vue b/pagesOrder/settle/settle.vue index 25df817..1b653a6 100644 --- a/pagesOrder/settle/settle.vue +++ b/pagesOrder/settle/settle.vue @@ -91,8 +91,9 @@ - + + 余额支付