1、已核对微信公众号AppID:wxef25f758e91d3bac 正常!
2、已核对微信开放平台移动应用AppID:wx26c05d5d5814393f 正常!
3、已核对微信开放平台-->公众号绑定:正常!
4、已核对微信公众号JS接口安全域名及业务域名,授权域名,白名单:正常!
5、已核对微信公众号以及微信开放平台主体信息:正常同一主体!
6、 {errMsg: "config:ok”}--》wx.config配置项: 正常!
7、已核对wx-open-launch-app弹出显示按钮:正常!
8、wx.checkJsApi-->{"checkResult":{"wx-open-launch-app":false},"errMsg":"checkJsApi:ok"}:false未知!
9、已用收藏连接跳转方式:无效;通过生成连接二维码,扫码打开:无效!
10、wx-open-launch-app显示按钮点击:报错如下;
<wx-open-launch-app
class="launch-button"
id="launch-btn"
appid="wxef25f758e91d3bac"
:extinfo="app.url"
@launch="onWxLaunch"
@error="onWxError"
@ready='onWxReady'
>
<script type="text/wxtag-template">
<style>
.btn{
width: 320px;
background: #EE6C41;
border:0;
color: #fff;
text-align: center;
height: 50px;
font-size:18px;
font-weight:600;
line-height: 50px;
border-radius:20px;
outline:none;
}
</style>
<button class="btn">APP内查看</button>
</script>
</wx-open-launch-app>
onWxError报错:
{type: "error",
timeStamp: 5863.000000012107,
detail: {},
target: {id: "", offsetLeft: 0, offsetTop: 0, dataset: {}},
currentTarget: {
id: "launch-btn", offsetLeft: 40, offsetTop: 25, dataset: {}},
touches: [],
changedTouches: [],
preventDefault: preventDefault(),
stopPropagation: stopPropagation(),
mp: {@warning: "mp is deprecated",
type: "error", timeStamp: 5863.000000012107,
detail: (Circular Object),
target: (Circular Object),
currentTarget: (Circular Object),
touches: (Circular Array),
changedTouches: (Circular Array),
preventDefault: preventDefault(),
stopPropagation: stopPropagation()}, _processed: true}
看看appid绑的是不是开放平台的appid'
解决了吗
检查 wx.config() 的 jsApiList 和 openTagList 配置项,其中 jsApiList 有帖子称即使不需要用到,也要随意指定一个。
[
"onMenuShareTimeline",
"onMenuShareAppMessage",
"quot;wx-open-launch-app"
],
openTagList:
[ "wx-open-launch-app"];
wx.config是没问题的,现在通过应用宝微下载可以打开APP,wx-open-launch-app但这个API 无法直接打开APP