parent
d23d45f8a6
commit
edd2c9ea0c
5 changed files with 165 additions and 63 deletions
@ -0,0 +1,36 @@ |
||||
export default{ |
||||
// 监听用户点击右上角菜单的「转发」按钮时触发的事件
|
||||
onShareAppMessage() { |
||||
// 设置转发的参数
|
||||
return { |
||||
title: "职站商城", |
||||
// path: '',
|
||||
imageUrl: "", |
||||
success: function(res) { |
||||
if (res.errMsg == 'shareAppMessage:ok') { |
||||
console.log("成功", res) |
||||
} |
||||
}, |
||||
fail: function(res) { |
||||
console.log("失败", res) |
||||
} |
||||
} |
||||
}, |
||||
// 分享到朋友圈
|
||||
onShareTimeline:function(res){ |
||||
return { |
||||
title: '职站商城', |
||||
// imageUrl:'/static/image/phone.png',
|
||||
query:''
|
||||
} |
||||
}, |
||||
// 收藏
|
||||
onAddToFavorites:function(res) { |
||||
return { |
||||
title: '职站商城', |
||||
// imageUrl:'/static/image/phone.png',
|
||||
query: '', |
||||
} |
||||
} |
||||
|
||||
} |
Loading…
Reference in new issue