<button open-type="share" v-bind:data-student="item" class="share">
分享
</button>
指定按钮的类型open-type="share"
分享需要的信息要使用v-bind:data-student传递,这里student是自己命名。
onShareAppMessage(event) {
console.log(event);
return {
title: event.target.dataset.student.username + "的测试报告",
path: "/pages_report/share/main/main?stuid=" +
event.target.dataset.student.stuid + "&tabIndex=1",
imageUrl: "../../../static/images/share/share_report.png",
}
}
},
打印的event的内容:
版权声明:本文为qq_33769914原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。