wx-open-launch-app标签,ios可以跳转优麦医生app,安卓手机跳不了,报launch:fail,也安装了优麦医生app
<wx-open-launch-app
id="launch_sbtn"
appid="wx55fc3810462042b7"
>
<template>
<style>
.btn {
width: 300px;
height: 100px;
min-height: 100px;
line-height: 100px;
text-align: center;
color: #444;
font-size: 14px;
display: inline-block;
background: #fff100;
border-radius: 100px;
border: 0;
padding: 0 10px;
}
</style>
<div class="btn">App内查看</div>
</template>
</wx-open-launch-app>
var btn = document.getElementById('launch_sbtn');
btn.addEventListener('ready', function (e) {
console.log('ready');
});
btn.addEventListener('launch', function (e) {
console.log('success');
});
btn.addEventListener('error', function (e) {
console.log('fail', e.detail);
});
ready事件也出发了,就是点击按钮确认时跳不了,报错
http://app.umer.com.cn/com/open/app 是这个链接
请各位大佬和微信官方运营人员指点下,不胜感激!!!
现在还有问题吗
wx.config({
debug: true,
appId: "<%=signPack.appId -%>",
nonceStr: "<%=signPack.noncestr -%>",
timestamp: "<%=signPack.timestamp -%>",
signature: "<%=signPack.signature -%>",
jsApiList: ['updateAppMessageShareData'],
openTagList: ['wx-open-launch-app'] // 可选,需要使用的开放标签列表,例如['wx-open-launch-app']
});
wx.ready(function () {
var btn = document.getElementById('launch_sbtn');
btn.addEventListener('ready', function (e) {
console.log('ready');
});
btn.addEventListener('launch', function (e) {
console.log('success');
});
btn.addEventListener('error', function (e) {
console.log('fail', e.detail);
});
});
我想咨询下,怎么能够同时绑定ios和android的appid到服务号上呢?
因为文档里说只能绑定一个移动引用的appid
老马啊,这个问题在高版本系统又不行咯,🤮