This commit is contained in:
linxi
2025-07-11 10:01:28 +08:00
+12 -11
View File
@@ -1,23 +1,24 @@
export default{ export default{
data(){ data(){
return { return {
//设置默认的分享参数 //设置默认的分享参数
sharePagePath: '/pages/home/index',
share:{ share:{
title:'云南香道滇官方商城', title: '云南香道滇官方商城',
path:'/pages/Loading/index', path: this.sharePagePath,
imageUrl:'http://admin-api.xdd618.com/file/pic/20210617211221217375.jpg', imageUrl: this.$VUE_APP_RESOURCES_URL + '/20210617211221217375.jpg?' + new Date().getTime(),
desc:'', desc: '',
content:'' content: ''
} }
} }
}, },
onShareAppMessage(res) { onShareAppMessage(res) {
return { return {
title:this.share.title, title: this.share.title,
path:this.share.path, path: this.share.path,
imageUrl:this.share.imageUrl, imageUrl: this.share.imageUrl,
desc:this.share.desc, desc: this.share.desc,
content:this.share.content, content: this.share.content,
success(res){ success(res){
uni.showToast({ uni.showToast({
title:'分享成功' title:'分享成功'