<button open-type="share" @ShareAppMessage="onShareAppMessage ">
分享
</button>
methods:{
onShareAppMessage (){
return {
title: "标题",
path: "/pages/index?productId=" + this.productId + "&inviteCode" + this.myInviteCode, //页面路径及参数
imageUrl:this.config.BIZ_SHARE_URL + "?temp=" + Date.parse(new Date()), //图片链接,必须是网络连接,后面拼接时间戳防止本地缓存
}
},
}