CINXE.COM

正在跳转

<!DOCTYPE html> <html> <head> <title>正在跳转</title> <meta http-equiv="X-UA-Compatible" content="IE=Edge" /> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, target-densitydpi=medium-dpi" /> </head> <body> <style> body { font-family: 微软雅黑; background: #f2f2f2; height: 100%; } .box { width: 100%; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; color: #030a26a6; } .title { font-size: 16px; line-height: 24px; font-weight: 500; } .text { padding-top: 6px; font-size: 14px; line-height: 20px; } .img { display: block; margin: 0 auto 16px; } .img1 { width: 125px; height: 60px; } .img2 { width: 160px; height: 160px; } a { color: #4a70ff; } iframe { position: absolute; left: -9999px; } </style> <div id="main" class="box"> <img class="img img1" src="https://bqq.gtimg.com/CDN/source/images/wpa/wpa-qq.png" /> <div class="title">该链接会唤起QQ</div> <div class="text"> 若无法正常跳转请先 <a id="update_link" href="javascript:;">升级QQ </a> </div> </div> <div id="wxTips" class="box" style="display: none"> <img class="img img2" src="https://bqq.gtimg.com/CDN/source/images/wpa/wpa-404.png" /> <div class="text"> 微信浏览器暂不支持<br />点击右上角“···”在默认浏览器中打开 </div> </div> <script src="https://tam.cdn-go.cn/aegis-sdk/latest/aegis.min.js"></script> <script> window._getUrlParam = function (name, href, noDecode) { var re = new RegExp("(?:\\?|#|&)" + name + "=([^&]*)(?:$|&|#)", "i"), m = re.exec(href || location.href); var ret = m ? m[1] : ""; return !noDecode ? decodeURIComponent(ret) : ret; }; window.__uin = window._getUrlParam("uin"); window.aegis = new Aegis({ id: "PJo86c1JyqVv9bqW6e", // 上报 id uin: window.__uin, // 用户唯一 ID(可选) reportApiSpeed: false, // 接口测速 reportAssetSpeed: false, // 静态资源测速 spa: true, // spa 应用页面跳转的时候开启 pv 计算 hostUrl: "https://rumt-zh.com", version: "1.0.0", }); window.switchTip = function (id) { document.getElementById("main").style.display = "none"; document.getElementById(id).style.display = "block"; }; </script> <script> var g = { isHTML: "1", tuin: "821212359", openid: "", appid: "0", reportEvent(eName) { aegis.reportEvent({ name: eName, // 必填 ext1: window.__uin, }); }, // closeWindow: function () { // if (g.isHTML == "JS") { // return; // } // var browserName = navigator.appName; // if (browserName == "Netscape") { // window.open("", "_self", ""); // window.close(); // } else if (browserName == "Microsoft Internet Explorer") { // window.opener = null; // window.open("", "_top"); // window.top.close(); // } // }, checkActiveX: function () { var kXmlHttp = null; try { if (typeof XMLHttpRequest != "undefined") { kXmlHttp = new XMLHttpRequest(); return true; } } catch (e) {} var aVersionhs = [ "MSXML2.XMLHttp.3.0", "MSXML2.XMLHttp.6.0", "MSXML2.XMLHttp", "Microsoft.XMLHttp", "MSXML2.XMLHttp.5.0", "MSXML2.XMLHttp.4.0", ]; for (var i = 0; i < aVersionhs.length; i++) { try { kXmlHttp = new ActiveXObject(aVersionhs[i]); return true; } catch (e) {} } return false; }, checkBrowser: function (rp) { var ua = navigator.userAgent.toLowerCase(), browser, version, match = /(chrome)[ \/]([\w.]+)/.exec(ua) || /(webkit)[ \/]([\w.]+)/.exec(ua) || /(opera)(?:.*version)?[ \/]([\w.]+)/.exec(ua) || /(msie) ([\w.]+)/.exec(ua) || (ua.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+))?/.exec(ua)) || []; browser = match[1] || ""; version = match[2] || "0"; this.ie = browser == "msie"; this.chrome = browser == "chrome"; this.webkit = browser == "webkit"; this.firefox = browser == "mozilla"; this.opera = browser == "opera"; this.browserVersion = parseInt(version, 10); }, // tryPlugin: function (plugin) { // var plugin = "application/" + plugin; // if (navigator.mimeTypes[plugin]) { // var obj = document.createElement("embed"); // obj.type = plugin; // obj.style.width = "0px"; // obj.style.height = "0px"; // document.body.appendChild(obj); // try { // ok = obj.InitActiveX("TimwpDll.TimwpCheck"); // } catch (e) { // // g.webChat(); // return false; // } // if (ok) { // var qqver = obj.GetHummerQQVersion(); // if (!qqver) { // // g.webChat(); // return false; // } // return true; // } else { // // g.webChat(); // return false; // } // } else { // // g.webChat(); // return false; // } // }, webChat: function () {}, }; var init = function () { var tencentSeries = "tencent://message/?Menu=yes&Site=qq&uin=821212359&Service=201&sigT=c76f629432aa3906126c63a0a34eca7a8d96a71904cdaec62da1f2038f2e48b26b1a276af36e14990196ac6a487e0969&sigU=570f4d1fcf9f4be48c31078f2a8be2efb5e1a8e1dc8c431308c7d7cd3eb5e2865c3a84140a198e99"; var mobileSeries = "mqqwpa://im/chat?chat_type=wpa&uin=821212359&version=1&src_type=web&web_src="; g.sigt = tencentSeries.replace(/^\S+sigT=/g, "").replace(/&\S+$/g, ""); g.sigu = tencentSeries.replace(/^\S+sigU=/g, "").replace(/&\S+$/g, ""); g.checkBrowser(); var ua = navigator.userAgent.toLowerCase(); var p; if (ua.indexOf("android") > -1) { p = "android"; } else if ( ua.indexOf("iphone") > -1 || ua.indexOf("ipad") > -1 || ua.indexOf("ipod") > -1 ) { p = "ios"; } else if ( ua.indexOf("windows phone") > -1 || ua.indexOf("wpdesktop") > -1 ) { p = "winphone"; } else { p = "pc"; } var android = p === "android", ios = p === "ios", qq = /qq/.test(ua), wechat = /micromessenger/.test(ua); var mobile_q_jump = { android: "//im.qq.com", ios: "itms-apps://itunes.apple.com/cn/app/qq-2011/id444934666?mt=8", winphone: "//www.windowsphone.com/zh-cn/store/app/qq/b45f0a5f-13d8-422b-9be5-c750af531762", pc: "//im.qq.com", }; window.goDownload = function () { var jumpUrl = mobile_q_jump[p]; if (jumpUrl) window.open(jumpUrl, "_self"); }; document.getElementById("update_link").onclick = window.goDownload; // 平台区分 if (ios || android) { // 移动平台 var startTime, jumpDownload = false, domainRegExp = new RegExp( "^(http|https)://(.*?[^/\\?#])($|/|\\?|#(.*))" ), host = "", scheme = mobileSeries; var proxy_frame = document.createElement("iframe"); proxy_frame.style.display = "none"; host = domainRegExp.exec(document.referrer); if (host) { host = host[2]; } function versionCompare(currVer, promoteVer) { currVer = currVer || "0.0.0"; promoteVer = promoteVer || "0.0.0"; if (currVer == promoteVer) return true; var currVerArr = currVer.split("."); var promoteVerArr = promoteVer.split("."); var len = Math.max(currVerArr.length, promoteVerArr.length); for (var i = 0; i < len; i++) { var proVal = ~~promoteVerArr[i], curVal = ~~currVerArr[i]; if (proVal < curVal) { return true; } else if (proVal > curVal) { return false; } } return false; } var wechatInfo = navigator.userAgent.match( /MicroMessenger\/([\d\.]+)/i ); // if (wechatInfo && versionCompare(wechatInfo[1], "6.5.6")) { if (wechatInfo) { // bindWxEvent(scheme); switchTip("wxTips"); } else { if (this.chrome) { window.location = scheme; } else if (android) { proxy_frame.src = scheme; proxy_frame.onload = function () { jumpDownload = true; goDownload(); }; setTimeout(function () { document.body.appendChild(proxy_frame); }, 200); } else { // 新版IOS不支持frame方式 location.href = scheme; } } startTime = +new Date(); // 失败则跳下载 // 新版IOS不支持frame方式,打开失败,需要用户手动点击下载 if (ios) { } else { timer = setTimeout(function () { if (jumpDownload) { return; } else { goDownload(); } }, 1500); } } else { // PC Web // 本地QQ能力检查 if (g.ie) { if (window.ActiveXObject) { try { var PTLoginCtrl = new ActiveXObject( "SSOAxCtrlForPTLogin.SSOForPTLogin2" ); var vInitData = PTLoginCtrl.CreateTXSSOData(); PTLoginCtrl.InitSSOFPTCtrl(0, vInitData); var vOptData = PTLoginCtrl.CreateTXSSOData(); var vResult = PTLoginCtrl.DoOperation(2, vOptData); var vAccountList = vResult.GetArray("PTALIST"); if (vResult != null) { g.reportEvent("ie-vResult"); var uListSize = vAccountList.GetSize(); if (uListSize > 0) { g.reportEvent("ie-uListSize>0"); } else { g.reportEvent("ie-uListSize<=0"); } } } catch (e) {} } } else { if (navigator.mimeTypes["application/nptxsso"]) { try { var obj = document.createElement("embed"), ok; obj.type = "application/nptxsso"; obj.style.width = "0px"; obj.style.height = "0px"; document.body.appendChild(obj); ok = obj.InitPVANoST(); if (ok) { g.reportEvent("nptxsso-InitPVANoST"); var count = obj.GetPVACount(); if (count > 0) { g.reportEvent("nptxsso-InitPVANoST-GetPVACount>0"); } else { g.reportEvent("nptxsso-InitPVANoST-GetPVACount<=0"); } } } catch (e) {} } } if (!g.ie) { // if (g.firefox || (g.chrome && g.browserVersion < 23) || g.webkit) { // if (!g.tryPlugin("qscall-plugin")) { // // return; // } // } else if (g.chrome) { // if (!g.tryPlugin("npchrome-plugin")) { // // return; // } // } else if (g.opera) { // // g.webChat(); // return; // } var iframe = document.createElement("iframe"); iframe.setAttribute("frameborder", "0", 0); iframe.src = tencentSeries; document.body.appendChild(iframe); // window.setTimeout(function () { // g.closeWindow(); // }, 2000); } else { //ie // if (!g.checkActiveX()) { // g.webChat(); // return; // } try { var cpTimwp = new ActiveXObject("TimwpDll.TimwpCheck"); if (cpTimwp) { window.location = tencentSeries; // window.setTimeout(g.closeWindow, 200); return; } } catch (e) { window.location = tencentSeries; // g.webChat(); } } } }; init(); </script> </body> </html>