收藏
回答

wx-open-launch-app在vue2中按钮不展示使用template按钮展示但无效?

      
        
          
            <style>.btn { padding: 12px }</style>
            <button class="btn">App内查看</button>
          
        

          wx.config({
            debug: true, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印
            appId: 'xxxxxx', // 必填,公众号的唯一标识
            timestamp: res.data.timestamp, // 必填,生成签名的时间戳
            nonceStr: res.data.noncestr, // 必填,生成签名的随机串
            signature: res.data.signature,// 必填,签名
            jsApiList: ['chooseWXPay'], // 必填,需要使用的JS接口列表,没有就随便填一个
            openTagList: ['wx-open-launch-app',],//必填, 要申请的开放标签名称
          })
          wx.ready(() => {
                  alert('ready')
          })
          wx.error(function(res) {
            alert('出错了:' + res.errMsg); //wx.config配置错误,会弹出窗口哪里错误,然后根据微信文档查询即可。
          });
              // 监听error 函数
              handleErrorFn (e) {
                alert('1')
                // 跳转失败
                console.log(JSON.stringify(e), '跳转失败')
                download() // 这里跳转App下载页面
              },
              // 监听launch 函数
              handleLaunchFn (e) {
                alert(1)
                // 跳转成功
                console.log(JSON.stringify(e), '跳转成功')
              },
    

这里的第一个问题是为什么开放标签在微信开发者工具1.06.2312222中没给开放标签的回应

第二个问题是为什么跑通了也没有标签

https://test.adazon.cn/test_h5atui/#/promotion?secretData=7EthMYFImEu5IZRO4Vi%2Bun4%2Bec2ooJa%2BTugxSuo%2BlCwM%2BdTYoxrYLvkNnBw85NNr&articleId=11061&timeStamp=8b0d99c2236a41b5fa55c7167c2150cb

复现链接如上

问题已解决 ,内网穿透不能测这个鬼东西

最后一次编辑于  01-08
回答关注问题邀请回答
收藏

2 个回答

登录 后发表内容