laoji1026
laoji1026
  • 发布:2021-03-03 10:22
  • 更新:2021-06-11 14:55
  • 阅读:1392

使用onShareAppMessage不调用

分类:uni-app

代码如下:
<button data-name="shareBtn" open-type="share">分享</button>
onShareAppMessage() {
console.log('分享')
return {
title: (this.activityType === 1 ? '立即拼团-' : '好货分享-') + this.product.title,
imageUrl: this.product.img,
path: '/pages/product/detail?id=' + this.product.id + (this.product.groupShop ? '&gid=' + this.product.groupShop.id :
'')
}

	}  

2021-03-03 10:22 负责人:无 分享
已邀请:
1***@qq.com

1***@qq.com

解决了吗

1***@qq.com

1***@qq.com - uniapp菜鸟

这个有bug吧

p***@gsdata.cn

p***@gsdata.cn

顶一个,我也碰到同样问题,目前只能用swan.openShare替代

FE_liyangyang

FE_liyangyang

解决了吗

该问题目前已经被锁定, 无法添加新回复