official-account 在安卓端进行真机调试的时候不显示
发布于 5 年前 作者 xia91 11081 次浏览 来自 问答
  • 当前 Bug 的表现(可附上截图)
  • 预期表现

在安卓端希望显示该组件

  • 复现路径

进入含有该组件的页面

  • 提供一个最简复现 Demo

<official-account binderror="_handleOfficialAccountError" bindload="_handleOfficialAccountError"></official-account>

// 关注公众号组件加载失败

  _handleOfficialAccountError (detail) {

    console.log(’=>>>>’)

    console.log(detail)

    console.log(’<<<<=’)

  }

2 回复

你好,基础库2.7.0后,需要扫描小程序码才可以,具体请参考:https://developers.weixin.qq.com/miniprogram/dev/component/official-account.html

回到顶部