You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
620 B
37 lines
620 B
export default {
|
|
data() {
|
|
return {
|
|
//设置默认的分享参数
|
|
share: {
|
|
title: '长江云息数字快速开放平台',
|
|
path: '/pages/index/apply',
|
|
imageUrl: '',
|
|
desc: '',
|
|
content: ''
|
|
}
|
|
}
|
|
},
|
|
//#ifdef MP-WEIXIN
|
|
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'
|
|
})
|
|
}
|
|
}
|
|
}
|
|
//#endif
|
|
}
|