uniapp微信小程序分享
·
1.view
// share分享
< button open-type=“share” ></ button>
2.js模块
// 微信小程序端
onShareAppMessage(res) {
if (res.from === 'button') {// 来自页面内分享按钮
console.log(res)
}
return {
title: '分享标题',
path: '/pages/index/index', // 跳转页面
imageUrl: ‘’//图片路径
}
},
更多推荐


所有评论(0)