fix
This commit is contained in:
@@ -6,7 +6,30 @@ Component({
|
||||
showPopup: false,
|
||||
showToast: false,
|
||||
},
|
||||
pageLifetimes: {
|
||||
show() {
|
||||
// 开启右上角菜单的"转发给朋友"和"分享到朋友圈"
|
||||
wx.showShareMenu({
|
||||
menus: ['shareAppMessage', 'shareTimeline'],
|
||||
})
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
// 转发给好友
|
||||
onShareAppMessage() {
|
||||
return {
|
||||
title: '2024新款男士轻薄羽绒服 限时5折¥299',
|
||||
path: '/pages/index/index',
|
||||
imageUrl: '/pages/index/assets/test.png',
|
||||
}
|
||||
},
|
||||
// 分享到朋友圈
|
||||
onShareTimeline() {
|
||||
return {
|
||||
title: '2024新款男士轻薄羽绒服 限时5折¥299',
|
||||
imageUrl: '/pages/index/assets/test.png',
|
||||
}
|
||||
},
|
||||
preventTouchMove() {},
|
||||
onOverlayTap() {
|
||||
wx.request({
|
||||
|
||||
@@ -27,4 +27,4 @@
|
||||
<text class="tool-desc">敬请期待</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
Reference in New Issue
Block a user