uni.share({
provider: "weixin",
scene: "WXSceneSession",
type: 2,
// href: 'http://baidu.com',
title: '',
imageUrl: that.cutImage,
success: function(res) {
that.$refs.uToast.show({
title: JSON.stringify(err)
})
},
fail: function(err) {
that.$refs.uToast.show({
title: JSON.stringify(err)
})
}
});
}, 1200)```
```setTimeout(function() {
uni.share({
provider: "weixin",
scene: "WXSenceTimeline",
type: 2,
// href: 'http://baidu.com',
title: that.nickName + '向您分享了他临摹的字',
imageUrl: that.cutImage,
success: function(res) {
that.$refs.uToast.show({
title: JSON.stringify(err)
})
},
fail: function(err) {
that.$refs.uToast.show({
title: JSON.stringify(err)
})
}
});
}, 1200)```
- 发布:2021-02-07 11:35
- 更新:2021-03-09 17:24
- 阅读:1547
产品分类: uniapp/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: Windows 10 家庭中文版
HBuilderX类型: 正式
HBuilderX版本号: 3.1.2
手机系统: Android
手机系统版本号: Android 11
手机厂商: 小米
手机机型: Redmi Note 8 Pro
页面类型: vue
打包方式: 云端
项目创建方式: HBuilderX
示例代码:
操作步骤:
uni.share({
provider: "weixin",
scene: "WXSceneSession",
type: 2,
// href: 'http://baidu.com',
title: '',
imageUrl: that.cutImage,
success: function(res) {
that.$refs.uToast.show({
title: JSON.stringify(err)
})
},
fail: function(err) {
that.$refs.uToast.show({
title: JSON.stringify(err)
})
}
});
}, 1200)```
```setTimeout(function() {
uni.share({
provider: "weixin",
scene: "WXSenceTimeline",
type: 2,
// href: 'http://baidu.com',
title: that.nickName + '向您分享了他临摹的字',
imageUrl: that.cutImage,
success: function(res) {
that.$refs.uToast.show({
title: JSON.stringify(err)
})
},
fail: function(err) {
that.$refs.uToast.show({
title: JSON.stringify(err)
})
}
});
}, 1200)```
uni.share({
provider: "weixin",
scene: "WXSceneSession",
type: 2,
// href: 'http://baidu.com',
title: '',
imageUrl: that.cutImage,
success: function(res) {
that.$refs.uToast.show({
title: JSON.stringify(err)
})
},
fail: function(err) {
that.$refs.uToast.show({
title: JSON.stringify(err)
})
}
});
}, 1200)```
```setTimeout(function() {
uni.share({
provider: "weixin",
scene: "WXSenceTimeline",
type: 2,
// href: 'http://baidu.com',
title: that.nickName + '向您分享了他临摹的字',
imageUrl: that.cutImage,
success: function(res) {
that.$refs.uToast.show({
title: JSON.stringify(err)
})
},
fail: function(err) {
that.$refs.uToast.show({
title: JSON.stringify(err)
})
}
});
}, 1200)```
预期结果:
成功分享图片到好友或朋友圈并回调
成功分享图片到好友或朋友圈并回调
实际结果:
分享图片到好友图片并没有发送,没有回调
分享到朋友圈微信闪了一下,返回到app,没有回调
分享图片到好友图片并没有发送,没有回调
分享到朋友圈微信闪了一下,返回到app,没有回调
bug描述:
3.1.2版本修复 微信分享到android11 分享失败的问题,开发的·又出现了新的问题。
1.分享图片到微信好友,已经发送给好友,但接不到success回调,微信也并没有发送图片给好友,并且微信重启了
- 分享图片到朋友圈,跳到微信闪了一下,直接返回了app,也没有回调
4 个回复
3***@qq.com
我也遇到了 请问你解决了吗
DCloud_Android_ST
3.1.4已修复
choin
3.1.4出现了分享本地图片无法调起微信,但是触发了app.vue的生命周期
看样子跟你这是一样的问题
1***@qq.com - 博客礼
Android11分享图分享到QQ 文件不存在或为空