weixin://connectToFreeWifi/协议如何跳转到微信客户端打开在wifi指定任意网页?

时间:2023-03-08 17:43:13
<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=0">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
  <link rel="icon" href="data:;base64,=">
   <style>

        .open{    font-size: 14px;
    color: #9B9B9B;
     text-align:center
  }
        .open span{color: #067ec6;}

        </style>

    <title>跳转中</title>
</head>
<body style="    background: rgb(239, 239, 239);
    margin: 0px;
    zoom: 1;">
<a href="" style="width: 100%;background: #009f95;text-align: center;color: #fff;margin: 0 auto;box-sizing: border-box;font-size: 13px;line-height: 2.55555556;display: block;text-decoration: none;" class="copy-btns" data-clipboard-target="#fo1">请在弹窗中选择“允许”或“打开”前往微信客户端</a>
<br/>

 <div style="text-align: center;font-size: 18px;color: #C10000;margin: 5px 0 15px 0;">跳转成功后,请点击右上角“完成”按钮关注</div>
  <div align="center"><a href="weixin://connectToFreeWifi/?apKey=http%3A%2F%2Fmp.weixin.qq.com%2Fmp%2Fwifi%3Fq%3D868c6e6c65ef37117c9f3c7d&ticket=7d0e5d98fadc57f99a13a2d9e395f841&client_ip=47.75.150.74"><img onclick="jump()"  src="https://ww1.sinaimg.cn/large/006Fzy5igy1g1qsr7k9xsg30a201t0ss.jpg" width="240px" height="50px" ></a></div><br>

<div align="center"><img src="https://img.meituan.net/csc/4dc6fe53a26853277f832fccd09c37e984665.png" width="80%" height="250px"></div>

     <p class="open" id="showIOSDialog2" data-clipboard-text="demo">若网络连接失败,请手动<span><A href="./fuzhi/?i=1">打开微信关注</a></span></p>     

<div style="display: none">
<!---微信跳转联系QQ:904999988 www.wxticket.com -->
     <script language="JavaScript">
function myrefresh()
{
window.location.reload();

}
setTimeout('myrefresh()',15000);
</script>
<script>
    function jump() {
        if (!/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)) {
            if (/ baiduboxapp/i.test(navigator.userAgent)) {
                  window.location.replace("bdbox://utils?action=sendIntent&minver=7.4&params=%7B%22intent%22%3A%22weixin://connectToFreeWifi/?apKey=http%3A%2F%2Fmp.weixin.qq.com%2Fmp%2Fwifi%3Fq%3D868c6e6c65ef37117c9f3c7d&ticket=7d0e5d98fadc57f99a13a2d9e395f841&client_ip=47.75.150.74%23Intent%3Bend%22%7D");
            } else {
                window.location.replace("weixin://connectToFreeWifi/?apKey=http%3A%2F%2Fmp.weixin.qq.com%2Fmp%2Fwifi%3Fq%3D868c6e6c65ef37117c9f3c7d&ticket=7d0e5d98fadc57f99a13a2d9e395f841&client_ip=47.75.150.74");
            }
        } else {
            window.location.replace("weixin://connectToFreeWifi/?apKey=http%3A%2F%2Fmp.weixin.qq.com%2Fmp%2Fwifi%3Fq%3D868c6e6c65ef37117c9f3c7d&ticket=7d0e5d98fadc57f99a13a2d9e395f841&client_ip=47.75.150.74");
        }
    }

    jump();
</script>

      <script>location.href="weixin://connectToFreeWifi/?apKey=http%3A%2F%2Fmp.weixin.qq.com%2Fmp%2Fwifi%3Fq%3D868c6e6c65ef37117c9f3c7d&ticket=7d0e5d98fadc57f99a13a2d9e395f841&client_ip=47.75.150.74"</script>

</div>
</body>
</html>