想实现的功能:从APP端分享商品详情到微信聊天
原始代码:
shareGoods() {
uni.share({
provider: 'weixin',
scene: "WXSceneSession",
type: 5,
imageUrl: this.groupOrder.image,
title: this.groupOrder.groupName,
miniProgram: {
id: '原始id',
path: '/pages2/group/detail?type=' + this.groupOrder.type + '&groupId=' + this.groupOrder.groupId + '&teamId=' + this.groupOrder.groupTeamId,
type: 0,
webUrl: 'http://uniapp.dcloud.io'
},
success: ret => {
console.log(JSON.stringify(ret));
},
fail: function(err) {
console.log("fail:" + JSON.stringify(err));
}
});
}
报错信息:
fail:{"errMsg":"share:fail [Share微信分享:-4]授权失败, http://ask.dcloud.net.cn/article/287","errCode":-100,"code":-100}
模拟器用的雷电
hbuilder X版本:3.2.3.20210825
[已删除] (作者)
谢谢~
2021-09-27 17:34
FungOi
回复 l***@163.com: 请问你解决了吗?是什么原因阿?
2022-05-13 15:58