official-account 在安卓端进行真机调试的时候不显示

发布于 7 年前作者 xia9111283 次浏览最后编辑 7 年前来自 ask
  • 当前 Bug 的表现(可附上截图)
  • 预期表现

在安卓端希望显示该组件

  • 复现路径

进入含有该组件的页面

  • 提供一个最简复现 Demo

<official-account binderror=“_handleOfficialAccountError” bindload=“_handleOfficialAccountError”></official-account>

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

  _handleOfficialAccountError (detail) {

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

    console.log(detail)

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

  }

2 回复
wkong
wkong1 楼6 年前

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

xiazhu
xiazhu2 楼5 年前