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 @@ - + + 余额支付