<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"/> <script> var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?512876eb272195f3c9f59fee58a1d2f8"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })(); </script> <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"> <meta content="telephone=no" name="format-detection"> <meta name="wap-font-scale" content="no"> <meta http-equiv="Cache" content="no-cache"> <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" /> <meta http-equiv="Pragma" content="no-cache" /> <meta http-equiv="Expires" content="0" /> <title class="title">奶茶直播</title> <link rel="stylesheet" href="css/base.css"> <link rel="stylesheet" href="css/layer.css"> <link rel="stylesheet" href="css/index.css?v=20190827"> <link rel="stylesheet" href="css/phone.css"> <script src="lib/fsize.js"></script> <style> .layui-layer-ico { display: none !important; } .layui-layer { box-shadow: none !important; } .yourclass { background: rgba(0, 0, 0, 0) !important; border-radius: 0rem !important; } .layui-layer-page .layui-layer-content { /*border-radius: 0.4rem !important;*/ } .yourclass2 { border-radius: 0rem !important; background: rgba(0, 0, 0, 0) !important; } .yourclass2 .layui-layer-content { border-radius: 0rem !important; } .Safari{ display: none; top: 0; left: 0; position: fixed; width: 10rem; height: 100vh; background: rgba(0,0,0,0.8); z-index: 1000; } .Safari img{ width: 10rem; } .foot_bot{ margin: 0 auto; width: 10rem; text-align: center; font-size: 0.3rem; color: #FED361; line-height: 0.6rem; } .foot_bot a{ color: #FED361; } </style> </head> <body style="background: #B0CDD8;"> <div class="bg"> <!-- <div class="banner"></div> --> <div class="down-btn"></div> </div> <div class="Safari"> <img src="images/Safari.png" alt=""> </div> </body> <script src="lib/jquery-3.1.1.min.js"></script> <script src="layer-v3.1.0/layer/layer.js"></script> <script> $ip = 'http://test.api.lvdou66.com:8036/'; //$ip = "https://zhiboweb.ishuaji.cn/"; cdn = 'http://zhibocdn.ishuaji.cn/comm'; $ws='ws://114.55.165.186:12306/ws?test=1'; //$ws='wss://zhiboweb.ishuaji.cn/ws?test=1' var bbb = location.href; var data = url_get_params(bbb) if (sessionStorage.kkk == undefined) { sessionStorage.kkk = data.token; //t sessionStorage.bbb = data.uid; //u sessionStorage.version=data.appversion; sessionStorage.checkstatus=data.checkstatus if(data.roomID!=undefined&&data.roomID!='undefined'){ sessionStorage.roomId=data.roomID; }else{ sessionStorage.roomId=data.roomId; } } function url_get_params(url_path) { var url = url_path; var theRequest = new Object(); if (url.indexOf("?") != -1) { var str = url.substr(url.indexOf("?") + 1); strs = str.split("&"); for (var i = 0; i < strs.length; i++) { theRequest[strs[i].split("=")[0]] = unescape(strs[i].split("=")[1]); } } return theRequest; } if (bbb.indexOf("http://localhost:63342") > -1) { sessionStorage.bbb = 23736699; sessionStorage.kkk = 'debug' } //ajax设置默认参数 $.ajaxSetup({ global: false, type: 'get', data: { uid: sessionStorage.bbb, token: sessionStorage.kkk }, dataType: "JSON" }) var windowScale=document.body.clientHeight/document.body.clientWidth if(windowScale>1.8){ $(".bg").addClass("bg-long"); $(".banner").css("margin-top","4rem"); $(".down-btn").css("margin-top","0.85rem"); } $(".down-btn").on("click", function () { isWeiXin() }) //直接跳转 var ua = window.navigator.userAgent.toLowerCase() if(ua.match(/MicroMessenger/i) == 'micromessenger'){ if (/iphone|ipad|ipod/.test(ua)) { // window.location.href='https://testflight.apple.com/join/i9KDdYAQ' } else if (/android/.test(ua)) { // window.location.href='https://a.app.qq.com/o/simple.jsp?pkgname=com.show.tealive' $(".Safari img").attr("src","images/an.png") $(".Safari").fadeIn(350) } }else{ $(".Recharge").show() } //点击跳转 function isWeiXin(){ var ua = window.navigator.userAgent.toLowerCase(); /******在微信里面******/ if(ua.match(/MicroMessenger/i) == 'micromessenger'){ if (/iphone|ipad|ipod/.test(ua)) { // window.location.href='https://apps.apple.com/cn/app/id1474079572' // window.location.href='https://testflight.apple.com/join/i9KDdYAQ' window.location.href='tfHelp.html' } else if (/android/.test(ua)) { $(".Safari img").attr("src","images/an.png") $(".Safari").fadeIn(350) // window.location.href='https://a.app.qq.com/o/simple.jsp?pkgname=com.show.tealive' } } /*****不在微信里面*****/ else{ var ua = navigator.userAgent.toLowerCase(); if (/iphone|ipad|ipod/.test(ua)) { window.location.href='tfHelp.html' // if(sessionStorage.checkstatus!='undefined'||sessionStorage.bbb!='undefined'){ // var obj={ // "cid": 5, // "reqCode": new Date().getTime(), // "data": { // "url":"https://testflight.apple.com/join/i9KDdYAQ", // } // } // var obj2=JSON.stringify(obj); // appCollaboration(obj2) // } // else { // window.location.href='https://testflight.apple.com/join/i9KDdYAQ' // } } else if (/android/.test(ua)) { window.location.href="http://www.guodongshow.com"; }else{ window.location.href="http://www.guodongshow.com"; } // return false; } } $(".Safari").on("click", function () { $(".Safari").fadeOut(500) }) function appCollaboration(msg) { var ua = window.navigator.userAgent.toLowerCase(); try{ if (/iphone|ipad|ipod/.test(ua)) { window.webkit.messageHandlers.appCollaboration.postMessage(msg); }else if(/android/.test(ua)){ window.yazhai.appCollaboration(msg); } }catch (e){} } $(".Safari").on("click", function () { $(".Safari").fadeOut(500) }) //客户端回调结果 function appCallback(msg) { console.log(msg); } function imgdragstart(){return false;} for(i in document.images)document.images[i].ondragstart=imgdragstart; function add0(m){return m<10?'0'+m:m} // var betEnd = new Date(new Date().getFullYear(), new Date().getMonth(), new Date().getDate(), new Date().getHours(), 41, 59).getTime(); function appCollaboration(msg) { var sUserAgent = navigator.userAgent.toLowerCase(); var bIsIpad = sUserAgent.match(/ipad/i) == "ipad"; var bIsIphoneOs = sUserAgent.match(/iphone os/i) == "iphone os"; var bIsMidp = sUserAgent.match(/midp/i) == "midp"; var bIsUc7 = sUserAgent.match(/rv:1.2.3.4/i) == "rv:1.2.3.4"; var bIsUc = sUserAgent.match(/ucweb/i) == "ucweb"; var bIsAndroid = sUserAgent.match(/android/i) == "android"; var bIsCE = sUserAgent.match(/windows ce/i) == "windows ce"; var bIsWM = sUserAgent.match(/windows mobile/i) == "windows mobile"; if (!(bIsIpad|| bIsIphoneOs || bIsMidp || bIsUc7 || bIsUc || bIsAndroid || bIsCE || bIsWM) ){ } else if(bIsAndroid){ window.yazhai.appCollaboration(msg); }else if(bIsIphoneOs||bIsIpad){ window.webkit.messageHandlers.appCollaboration.postMessage(msg); } } //客户端回调结果 function appCallback(msg) { console.log(msg); } </script> </html>