wx-open-launch-app 标签里面的内容不显示,怎么处理?
发布于 4 年前 作者 lei38 3949 次浏览 来自 问答
    <wx-open-launch-weapp
      id="xxx"
      username="gh_xxxxxxxxx"
      path="pages/index/index.html"
      @ready="btnReady"
      @launch="btnLaunch"
      @error="btnError"
    >
      <script type="text/wxtag-template">
        <style>
          .btn {
            width300px;
            height100px;
            min-height100px;
            line-height100px;
            text-align: center;
            color#444;
            font-size14px;
            display: inline-block;
            background#fff100;
            border-radius100px;
            border0;
            padding0 10px;
          }
        </style>
        <button class="btn" >打开小程序</button>
      </script>
    </wx-open-launch-weapp>
1 回复

js部分写了吗

回到顶部