Init project
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
export default{
|
||||
data(){
|
||||
return {
|
||||
//设置默认的分享参数
|
||||
share:{
|
||||
title:'云南香道滇官方商城',
|
||||
path:'/pages/Loading/index',
|
||||
imageUrl:'http://admin-api.xdd618.com/file/pic/20210617211221217375.jpg',
|
||||
desc:'',
|
||||
content:''
|
||||
}
|
||||
}
|
||||
},
|
||||
onShareAppMessage(res) {
|
||||
return {
|
||||
title:this.share.title,
|
||||
path:this.share.path,
|
||||
imageUrl:this.share.imageUrl,
|
||||
desc:this.share.desc,
|
||||
content:this.share.content,
|
||||
success(res){
|
||||
uni.showToast({
|
||||
title:'分享成功'
|
||||
})
|
||||
},
|
||||
fail(res){
|
||||
uni.showToast({
|
||||
title:'分享失败',
|
||||
icon:'none'
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user