H5无法跳转小程序
发布于 4 年前 作者 gang79 3891 次浏览 来自 官方Issues

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

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

4 回复

贴代码,打开debug看报错

<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>

认证过吗

UNIAPP社区问:)

回到顶部