index.html
8.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
<!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>