请问下,我使用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>
可以参考代码:
<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>
你好,可以根据文档先自查:
https://developers.weixin.qq.com/doc/offiaccount/OA_Web_Apps/Wechat_Open_Tag.html