oil-station/gasStation-uni/utils/share.js

32 lines
720 B
JavaScript
Raw Normal View History

2023-11-27 10:42:24 +08:00
export default {
data() {
return {
//设置默认的分享参数
share: {
title: '机动车管家',
path: '/pages/detection/detection',
}
}
},
onShareAppMessage(res) {
return {
title: this.share.title,
path: this.share.path,
success(res) {
uni.showToast({
title: '分享成功'
})
},
fail(res) {
uni.showToast({
title: '分享失败',
icon: 'none'
})
}
}
},
onShareTimeline() {},
}