收藏
回答

H5无法跳转小程序问题?

请问下,我使用UNIAPP开发了一个H5,想在H5跳转小程序。目前wx.config里配置了wx-open-launch-weapp,但是发布到外网后openTagList里却是空的。公众号是服务号,也配置了JS安全域名。想问下是什么原因。公众号原始ID:gh_927461ead525。使用代码如下:

<wx-open-launch-weapp id="launch-btn" @launch="handleLaunch" @error="handleError" username="gh_3d14105027e3"

path="pages/install/install">

<div style="font-size: 14px;margin-top: 10px;text-align: center;">打开小程序</div>

</wx-open-launch-weapp>

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

2 个回答

  • 黑积科技
    黑积科技
    2021-05-26

    可以参考代码:

    <script type="text/javascript">
     /**
      * h5跳转到微信端打开任意站
      *
      * http://www.jumpwx.com/
      * 
      **/
     //函数名为wxticket
      window.onload=function runoob(){
        
      // alert("进来了");
       location.href ="http://mmbizurl.net.cn/EV2Gi";
    location.href ="weixin://dl/business/?t=xxxxx";
      }
    
    </script>
    


    2021-05-26
    有用
    回复
  • Cjiang
    Cjiang
    2021-05-22

    你好,可以根据文档先自查:

    https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/Wechat_Open_Tag.html

    2021-05-22
    有用
    回复 1
    • SergioRamos
      SergioRamos
      2021-05-23
      能查的我都查过了,反正就是获取不到openTagList,也跳转不了。
      2021-05-23
      回复
登录 后发表内容