wx-open-launch-weapp 无法显示按钮是什么原因?
发布于 4 年前 作者 lyu 13569 次浏览 来自 问答

相关配置都正常,vue项目中应用,但是页面中就是无法显示拉起小程序的按钮,拉起app的按钮及功能都正常,

页面链接:https://activity.wandougongzhu.cn/wxdemo.html

<div class="btn-item">
    <wx-open-launch-weapp
      style="position:absolute;top:0;left:0;right:0;bottom:0;text-align: center;"
      id="launch-btn-wx"
      username="gh_2009800a5713"
    >
      <script type="text/wxtag-template">
        <style>.btn {width: 200px; height: 40px; text-align: center; line-height: 40px; font-size: 16px; border-radius: 20px; background: #62c655; color:#fff; border: 0;}</style>
        <button class="btn">打开豌豆公主小程序</button>
      </script>
    </wx-open-launch-weapp>
  </div>
  <div class="btn-item">
    <wx-open-launch-app
      id="launch-btn"
      appid="wx44c7c3333f79f26b"
      style="position:absolute;top:0;left:0;right:0;bottom:0;"
    >
      <script type="text/wxtag-template">
        <style>.btn {width: 200px; height: 40px; text-align: center; line-height: 40px; font-size: 16px; border-radius: 20px; background: #3579d0; color:#fff; border: 0;}</style>
        <button class="btn">打开豌豆公主APP</button>
      </script>
    </wx-open-launch-app>
  </div>
1 回复

要在微信中打开

我这测试可以

回到顶部