html52.com
我爱小程序-开发者交流社区

小程序webview 如何使用wx-open-launch-weapp?

 <div class="home">测试按钮
          <wx-open-launch-weapp
            id="launch-btn"
            username="gh_579f93fee087"
            @launch="handleLaunchFn"
            @error="handleErrorFn"
          >
            <script type="text/wxtag-template">
              <style>.wx-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="wx-btn">跳转小程序</button>
            </script>
          </wx-open-launch-weapp>

        </div>

在微信网页里打开是可以的,但webview的小程序里按钮不显示是为什么啊

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

真正的个人免签约支付接口

云免签H5支付