现象:个别用户的wx-open-launch-weapp不起效,大部分用户成功跳转小程序
系统:ios/15.1.1, micromessenger/8.0.7
过程:(跳转不起效的用户) wx.config配置ready触发,error没有触发;wx-open-launch-weapp标签的ready事件没有触发;用户点击,发现wx-open-launch-weapp父级click事件触发,wx-open-launch-weapp没有触发任何事件;
部分代码:
//(跳转不起效的用户)toMiniprogram触发,onReady、errorHandler、ifReLoad没有触发
<div class="btn-1" @click="toMiniprogram">
<div class="btn-text">马上提现</div>
<wx-open-launch-weapp
id="launch-btn"
:username="originalId"
:path="path"
@launch="ifReLoad"
@error="errorHandler"
@ready="onReady"
>
<div v-is="'script'" type="text/wxtag-template">
<div
style="
display: block;
width: 231px;
height: 64px;
border-radius: 32px;
font-size: 16px;
font-weight: 600;
color: #ff431e;
line-height: 64px;
text-align: center;
"
></div>
</div>
</wx-open-launch-weapp>
</div>
return new Promise((resolve, reject) => {
wx.config({
debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印
appId: res.app_id, // 必填,公众号的唯一标识
timestamp: res.timestamp, // 必填,生成签名的时间戳
nonceStr: res.nonce_str, // 必填,生成签名的随机串
signature: res.signature, // 必填,签名
jsApiList: ['wx-open-launch-weapp'], // 必填,需要使用的JS接口列表
openTagList: ['wx-open-launch-weapp'], // 可选,需要使用的开放标签列表,例如['wx-open-launch-app']
});
// 通过ready接口处理成功验证
wx.ready(function () {
console.log('ready');
resolve(true);
});
wx.error(function (err: Error) {
console.log('error', err);
reject(err);
});
});
提供下测试链接?你们能复现吗