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" } },