From 8db95277dd6639b07446ea1ba6a66dc7bb7eb339 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=93=E6=B4=81?= <209192278@qq.com> Date: Sun, 5 Feb 2023 17:14:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=86=E4=BA=AB=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/index/index.vue | 31 ++++++++++++------------------- 1 file changed, 12 insertions(+), 19 deletions(-) diff --git a/pages/index/index.vue b/pages/index/index.vue index 780ca4b..a9dad45 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -89,29 +89,22 @@ methods: { //分享到微信好友 onShareAppMessage(res) { - // 此处的distSource为分享者的部分信息,需要传递给其他人 - let distSource = uni.getStorageSync('distSource'); - if (distSource) { - return { - title: '食瞳', - type: 0, - path: '/pages/index/index?id=' + distSource, - summary: "", - imageUrl: "https://pupil.hchyun.com/uploads/product/zhanwei02.png" - } + return { + title: '食瞳', + type: 0, + path: '/pages/index/index?id=' + distSource, + summary: "", + imageUrl: "https://pupil.hchyun.com/uploads/product/zhanwei02.png" } }, //分享到朋友圈 onShareTimeline(res) { - let distSource = uni.getStorageSync('distSource'); - if (distSource) { - return { - title: '食瞳', - type: 0, - query: 'id=' + distSource, - summary: "", - imageUrl: "https://pupil.hchyun.com/uploads/product/zhanwei02.png" - } + return { + title: '食瞳', + type: 0, + query: 'id=' + distSource, + summary: "", + imageUrl: "https://pupil.hchyun.com/uploads/product/zhanwei02.png" } },