uniapp开发小程序之分享转发

<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()),  //图片链接,必须是网络连接,后面拼接时间戳防止本地缓存
		}
	},
}

猜你喜欢

转载自blog.csdn.net/weixin_36185028/article/details/104920168
今日推荐