1 使用 uni.share 提示报错,由于应用和小程序未绑定在同一微信开放平台账户
2 使用launchMiniProgram api确实可以打开小程序
3 现在app打开小程序不是不需要绑定了吗?
代码如下:
uni.share({
provider: 'weixin',
scene: "WXSceneSession",
type: 5,
imageUrl: 'xxx',
title: 'xxxx',
miniProgram: {
id: 'gh_xxxx',
path: url,
type: 0,
webUrl: 'xxxx'
},
success: ret => {
console.log(JSON.stringify(ret));
}
});
但是使用weixin.launchMiniProgram api却可以打开小程序,请问这是什么情况?
n.sweixin?n.sweixin.launchMiniProgram({
id:'gh_fxxx',
type:0,// 0-正式版; 1-测试版; 2-体验版。 默认值为0。
path:url
},function (ret) {
console.log('launchMiniProgram',ret)
},function (ret) {
console.log('launchMiniProgram',ret)
}) : plus.nativeUI.alert('当前环境不支持微信操作!');
2***@qq.com
已解决,点赞
2023-04-20 11:37
1***@qq.com
回复 2***@qq.com: 怎么解决的
2023-12-06 22:39