使用wx-open-launch-app尝试从微信浏览器直接跳转到app,应用appId和关联公众号都处理了,但依旧无法打开,能看下是什么情况么?
服务号 appId:wx456c05338990a5c2 应用appId: wx90117b3dff95512e 应用名:牧集(应用市场可以搜索到)
<view class="btn">App内查看</view>
wx.config({
...this.configInfo,
debug: true, // 开启调试模式,调用的所有 api 的返回值会在客户端 alert 出来,
"updateAppMessageShareData",
"updateTimelineShareData",
"onMenuShareAppMessage",
"showMenuItems",
"hideAllNonBaseMenuItem",
"onMenuShareTimeline",
], // 必填,需要使用的 JS 接口列表
openTagList: ["wx-open-launch-app"],
});
const btn = document.getElementById("launch-btn");
btn.addEventListener("launch", function (e) {
alert("success");
});
btn.addEventListener("error", function (e) {
alert("fail" + JSON.stringify(e.detail));
});
通过wx.config调用返回的是 config:ok
但是点击开放标签后,触发了error的回调。错误信息如下:{
"errMsg":"launch:fail",
"appId":"wx90117b3dff95512e"
}
是根据官网文档进行配置好了。网页地址:
https://tmjzdh5.malicn.com/pages/cia/subPackage/articleDetail/index?id=2077730648629466112
你好,