开放标签wx-open-launch-weapp标签的按钮不显示?
发布于 6 年前 作者 ykong 7206 次浏览 来自 官方Issues
  wx.config({
            debug: true, 
            appId: data.appId,
            timestamp: data.timestamp,
            nonceStr: data.nonceStr,
            signature: data.signature,
            jsApiList: ["onMenuShareAppMessage""scanQRCode""startRecord"], // 这边的方法是能正常调用的
            openTagList: ["wx-open-launch-weapp"], // 可选,需要使用的开放标签列表,例如['wx-open-launch-app']
          });

H5跳转至小程序,按照文档的例子写的,没使用框架,config那边显示的是ok,说明注入成功了,然后wx.ready(()=>{})这个方法也走进去了,jsAPi也能正常使用,但是就按钮出不来,标签里的都没被渲染出来,不知道标签那出了什么问题,不管是模拟器还是真机都不行。

  <body>
    <div class="box">
      <wx-open-launch-weapp
        id="launch-btn"
        username="gh_c2561e9808dc"
        path="pages/my/index"
      >
        <template>
          <button>打开小程序</button>
        </template>
      </wx-open-launch-weapp>
    </div>
  </body>

H5链接:http:/print.jiqinyun.com/html/signin/jump.html 
1 回复

也没其他提示或者说权限有误,就是按钮显示不了

回到顶部