handleBillSharePic: function () {
console.log('handleBillSharePic')
uni.share({
provider: "weixin",
scene: "WXSceneSession",
type: 1,
summary: "我正在使用HBuilderX开发uni-app,赶紧跟我一起来体验!",
success: function (res) {
console.log("success:" + JSON.stringify(res));
},
fail: function (err) {
console.log("fail:" + JSON.stringify(err));
}
});
},

- 发布:2023-09-12 23:05
- 更新:2023-09-13 16:30
- 阅读:190
产品分类: uniapp/App
PC开发环境操作系统: Mac
PC开发环境操作系统版本号: 12.6
HBuilderX类型: 正式
HBuilderX版本号: 3.8.12
手机系统: Android
手机系统版本号: Android 13
手机厂商: 华为
手机机型: 荣耀magic5
页面类型: vue
vue版本: vue2
打包方式: 云端
项目创建方式: HBuilderX
示例代码:
操作步骤:
页面写一个按钮,点击调用函数handleBillSharePic
页面写一个按钮,点击调用函数handleBillSharePic
预期结果:
预期是正常唤起微信,然后选择某个人分享文字
预期是正常唤起微信,然后选择某个人分享文字
实际结果:
实际效果是,不能唤起微信,返回{"errMsg":"share:fail [Share微信分享:-6]send, https://ask.dcloud.net.cn/article/287","errCode":-100,"code":-100}
实际效果是,不能唤起微信,返回{"errMsg":"share:fail [Share微信分享:-6]send, https://ask.dcloud.net.cn/article/287","errCode":-100,"code":-100}
bug描述:
1、微信分享文字失败,在唤起微信时报错,详细可以看视频
2、苹果手机没问题,是可以正常分享的,就安卓手机不行
3、附件中的图时分享时的代码,分享文字都有问题
返回这个错误{"errMsg":"share:fail [Share微信分享:-6]send, https://ask.dcloud.net.cn/article/287","errCode":-100,"code":-100}
