收藏
回答

wx-open-launch-weapp在javascript不显示是怎么回事?

wx-open-launch-weapp在javascript不显示是怎么回事?

代码是按照官网文档写的,直接把官网文档代码粘贴进去也不显示


<wx-open-launch-weapp
  id="launch-btn"
  username="gh_xxxxxxxx"
  path="pages/home/index.html?user=123&action=abc"
>
  <template>
    <style>.btn { padding: 12px }</style>
    <button class="btn">打开小程序</button>
  </template>
</wx-open-launch-weapp>


回答关注问题邀请回答
收藏

16 个回答

  • zhangyaoci
    zhangyaoci
    2020-08-18

    请问解决了吗

    2020-08-18
    有用
    回复
  • 🇲 🇷 .🇦 🇳
    🇲 🇷 .🇦 🇳
    2020-07-31

    我也遇到了同样的问题。html页面,加<template></template>就不显示了,不论真机、网页、PC微信网页都不显示

    2020-07-31
    有用
    回复 12
    • :)
      :)
      2020-07-31
      <wx-open-launch-weapp id="launch-btn2" username="" path="">
         <script type="text/wxtag-template">
          <style>
           .btn {
            width: 375px;
            height: 50px;
            font-size: 16px;
           }
          </style>
          <button class="btn">打开小程序</button>
         </script>
        </wx-open-launch-weapp>


      试下这个,我这边在真机上可以看到
      2020-07-31
      回复
    • 🇲 🇷 .🇦 🇳
      🇲 🇷 .🇦 🇳
      2020-07-31回复:)
      我这样写了还是不行
      2020-07-31
      回复
    • :)
      :)
      2020-07-31回复🇲 🇷 .🇦 🇳
      config的配置都没问题吗
      2020-07-31
      回复
    • 🇲 🇷 .🇦 🇳
      🇲 🇷 .🇦 🇳
      2020-07-31回复:)
      config:ok,配置没问题
      2020-07-31
      回复
    • :)
      :)
      2020-07-31回复🇲 🇷 .🇦 🇳
      这个是我在真机上看到的效果
      2020-07-31
      回复
    查看更多(7)
  • Hedgehog
    Hedgehog
    2020-07-24

    请问解决了吗


    2020-07-24
    有用
    回复 2
    • :)
      :)
      2020-07-31
      <wx-open-launch-weapp id="launch-btn2" username="" path="">
         <script type="text/wxtag-template">
          <style>
           .btn {
            width: 375px;
            height: 50px;
            font-size: 16px;
           }
          </style>
          <button class="btn">打开小程序</button>
         </script>
        </wx-open-launch-weapp>
      试下这个,我这边在真机上可以看到
      2020-07-31
      回复
    • 🍧
      🍧
      2021-01-11回复:)
      我这样写也是无法显示
      2021-01-11
      回复
  • 疯狂的小辣椒
    疯狂的小辣椒
    2020-07-22

    你好,提供下服务号的appid和问题链接。

    2020-07-22
    有用
    回复 11
    查看更多(6)
  • 微喵网络
    微喵网络
    2020-07-22

    在开发者工具里调试看看

    2020-07-22
    有用
    回复 1
    • :)
      :)
      2020-07-22
      调试了,没有报错信息,就是按钮无法显示
      2020-07-22
      回复
  • 拾忆
    拾忆
    2020-07-22

    你贴下你的完整代码截图,光从这个看不出什么问题来。

    2020-07-22
    有用
    回复 1
    • :)
      :)
      2020-07-22
      2020-07-22
      回复

正在加载...

登录 后发表内容
问题标签