收藏
回答

微信浏览器打开h5页面使用wx-open-launch-weapp不显示?

2022年3月份左右 该按钮能正常显示,但是最近公司服务器更换了后,这个按钮无法显示;

  1. 之前的代码为:


  <wx-open-launch-weapp

          id="launch-weapp1"

          username="gh_518c42c65952"

          :path="path"

          @launch="onLaunch"

          @error="onError"

          style=" width: 230px;

        display: block;"

        >

          <script type="text/wxtag-template">

            <p

              class="btn"

              style=" box-sizing: border-box;

                padding: 12px;

                width: 230px;

                background-color: #00a4ff;

                border-radius: 4px;

                color: #fff;

                text-align: center;

                font-size: 16px;

                border: none;"

            >

              开通无感支付

            </p>

          </script>

        </wx-open-launch-weapp>


2 微信配置的地方为:

    getWxConfig({ url: url })

      .then(res => {

        // eslint-disable-next-line no-undef

        wx.config({

          debug: true, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印

          appId: res.data.app_id, // 必填,公众号的唯一标识

          timestamp: res.data.time_stamp, // 必填,生成签名的时间戳

          nonceStr: res.data.nonce_str, // 必填,生成签名的随机串

          signature: res.data.pay_sign, // 必填,签名

          jsApiList: ['closeWindow'], // 必填,需要使用的JS接口列表

          openTagList: ['wx-open-subscribe', 'wx-open-launch-weapp'] // 可选,需要使用的开放标签列表,例如['wx-open-launch-app']

        })

      })

      .catch(err => {

        console.log(err)

      })

  },


3.微信审核是在规定时间内的,没有到期

4.jweixin也是用的1.6.0

5.目前始终无法显示 wx-open-launch-weapp 标签 ,在真机上element都有这个标签,但是页面上始终无法看到这个按钮,请帮忙查看一下具体是什么原因,非常紧急


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

2 个回答

  • 社区技术运营专员--许涛
    社区技术运营专员--许涛
    2022-10-12

    你好, appId: res.data.app_id, // 必填,公众号的唯一标识

    APPID是什么呢?

    2022-10-12
    有用
    回复
  • Windྉ
    Windྉ
    02-23

    请问解决了吗,我也是这种的不显示

    02-23
    有用
    回复
登录 后发表内容