// 配置微信 JS-SDK
const configParams = {
debug: true, // 开启调试模式,便于查看错误信息
appId: WechatConfig.appId, // 公众号appid
timestamp: data.timestamp,
nonceStr: data.nonceStr,
signature: data.signature,
// 如果后续需要调用微信 JS API,可以在这里添加
// 例如:分享、定位、支付等功能
jsApiList: [
],
openTagList: ['wx-open-launch-app'] // 需要使用的开放标签列表
}
<wx-open-launch-app
id="launch-btn"
appid="${WechatConfig.appIdMobile}" // 移动端appid
extinfo='{"path":"/home/home"}'
style="display: block; width: 324px; height: 64px; background-image: url(${imageUrl}); background-size: contain; background-position: center; background-repeat: no-repeat; border-radius: 50px; box-shadow: 4px 8px 8px rgba(0, 0, 0, 0.2);"
>
<div style="color: #001044; font-size: 16px; font-weight: 600; text-align: center; line-height: 64px; position: relative; bottom: 5px">${buttonText}</div>
</wx-open-launch-app>
微信js-sdk初始化, 标签使用如上。sdk日志输出 {errMsg: "config:ok", jsApiList: Array(0), openTagList: Array(0)}, 但是点击按钮没有相应,
难道预期是需要日志输出中openTagList有 wx-open-launch-app 才能正常使用吗
目前, 微信开发者平台已经注册了公众号和移动应用,绑定关系还需要在开放平台绑定吗?

你好,需要使用已认证的服务号