wx-open-launch-weapp 不展示按钮?
发布于 7 年前 作者 aguo 4049 次浏览 来自 官方Issues
<template>
  <wx-open-launch-weapp
    id="launch-btn"
    username="gh_bbc1673996b8"
    path="/pages/index/index.html"
    @ready="launchAppReady"
  >
    <script type="text/wxtag-template">
  <style>.btn { padding12px }</style>
  <button class="btn">打开小程序</button>
    </script>
  </wx-open-launch-weapp>
</template>

<script>
 wx.config({
              betatrue,
              // debug: true, // 开启调试模式
              appId: appid, // 必填,公众号的唯一标识
              timestamp: timestamp, // 必填,生成签名的时间戳
              nonceStr: nonceStr, // 必填,生成签名的随机串
              signature: nonceStr, // 必填,签名,见附录1
              jsApiList: [
                "updateAppMessageShareData",
                "updateTimelineShareData"
              ],
              openTagList: ["wx-open-launch-app"// 可选,需要使用的开放标签列表,例如['wx-open-launch-app']
            });

            wx.ready(function() {
              console.log(11111111111);
            });
            wx.error(function(res{
              console.log(res);
            });
</script>

1 回复

你好,麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的测试链接

回到顶部