H5无法跳转小程序

发布于 6 年前作者 gang794173 次浏览最后编辑 6 年前来自 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 回复
hanping
hanping1 楼5 年前

贴代码,打开debug看报错

ganghuang
ganghuang2 楼5 年前
<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>
ucheng
ucheng3 楼5 年前

认证过吗

gang41
gang414 楼4 年前

UNIAPP社区问:)