收藏
回答

wx-open-launch-app 的使用,微信网页打开移动端app?

// 配置微信 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 才能正常使用吗

目前, 微信开发者平台已经注册了公众号和移动应用,绑定关系还需要在开放平台绑定吗?

回答关注问题邀请回答
收藏

2 个回答

  • 社区技术运营专员--许涛
    社区技术运营专员--许涛
    01-13

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

    01-13
    有用
    回复 2
  • 智能回答 智能回答 本次回答由AI生成
    01-12
    有用
    回复 1
    • 1974
      1974
      01-14
      公众号订阅号能拉起吗
      01-14
      回复
登录 后发表内容