You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.0 KiB
38 lines
1.0 KiB
export default{ |
|
// 监听用户点击右上角菜单的「转发」按钮时触发的事件 |
|
onShareAppMessage(e) { |
|
const pages = getCurrentPages() |
|
const { route, $page } = pages[pages.length - 1] |
|
// 设置转发的参数 |
|
return { |
|
title: "GPAC", |
|
path: route === 'other/activityDetail/activityDetail' ? $page : '', |
|
imageUrl: "", |
|
success: function(res) { |
|
if (res.errMsg == 'shareAppMessage:ok') { |
|
console.log("成功", res) |
|
} |
|
}, |
|
fail: function(res) { |
|
console.log("失败", res) |
|
} |
|
} |
|
}, |
|
// 分享到朋友圈 |
|
onShareTimeline:function(res){ |
|
return { |
|
title: 'GPAC', |
|
// imageUrl:'/static/image/phone.png', |
|
query:'' |
|
} |
|
}, |
|
// 收藏 |
|
onAddToFavorites:function(res) { |
|
return { |
|
title: 'GPAC', |
|
// imageUrl:'/static/image/phone.png', |
|
query: '', |
|
} |
|
} |
|
|
|
} |