<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()), //圖片鏈接,必須是網絡連接,後面拼接時間戳防止本地緩存
}
},
}