hengmei-two/jsFile/share.js

11 lines
387 B
JavaScript
Raw Normal View History

2022-01-24 05:53:00 +00:00
export default {
onShareAppMessage(res) { //发送给朋友
2022-03-04 08:48:40 +00:00
return {
title: '', // 默认是小程序的名称(可以写slogan等)
path: `${uni.getStorageSync('url')}?invite_code=${uni.getStorageSync('invite_code')}` // 默认是当前页面,必须是以‘/’开头的完整路径
}
2022-01-24 05:53:00 +00:00
},
onShareTimeline(res) {//分享到朋友圈
return {}
},
}