You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
525 B
JavaScript
27 lines
525 B
JavaScript
export default {
|
|
data() {
|
|
return {}
|
|
},
|
|
//分享小程序
|
|
onShareAppMessage(e) {
|
|
if (e.from === 'button') {
|
|
console.log('来自页面内转发按钮');
|
|
} else if (e.from === 'menu') {
|
|
console.log('右上角菜单转发按钮');
|
|
}
|
|
return {
|
|
// 自定义分享内容
|
|
title: '大庆普济',
|
|
path: '/pages/main/home/home', // 路径,可传递参数到指定页面
|
|
|
|
};
|
|
},
|
|
// 分享到朋友圈
|
|
onShareTimeline() {
|
|
return {
|
|
title: '大庆普济',
|
|
path: '/pages/main/home/home',
|
|
};
|
|
},
|
|
}
|