127 lines
3.7 KiB
PHP
Executable File
127 lines
3.7 KiB
PHP
Executable File
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>在浏览器打开</title>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="color-scheme" content="light dark">
|
|
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0,viewport-fit=cover">
|
|
<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">
|
|
<script src="/static/js/jquery-3.7.0.min.js"></script>
|
|
<style type="text/css">
|
|
*{
|
|
margin:0;
|
|
padding:0;
|
|
}
|
|
#topyd{
|
|
width: 100%;
|
|
margin:0 auto;
|
|
position: fixed;
|
|
top: 0;
|
|
}
|
|
#topyd img{
|
|
max-width: 100%;
|
|
}
|
|
|
|
#centeryd{
|
|
width: 320px;
|
|
margin:180px auto 0;
|
|
}
|
|
|
|
#centeryd img{
|
|
max-width: 320px;
|
|
}
|
|
|
|
#bottomyd{
|
|
width: 320px;
|
|
margin:30px auto 0;
|
|
}
|
|
|
|
#bottomyd p{
|
|
text-align: center;
|
|
font-size: 18px;
|
|
color: #174ded;
|
|
font-weight: bold;
|
|
}
|
|
</style>
|
|
<script type="text/javascript">
|
|
var weixin = 0;
|
|
var isios = 0;
|
|
function whatBrowser() {
|
|
var userAgent = navigator.userAgent.toLowerCase();
|
|
if (userAgent.indexOf('iphone') != -1 ||
|
|
userAgent.indexOf('ipad') != -1 ||
|
|
userAgent.indexOf('ipod') != -1 ||
|
|
(userAgent.indexOf('safari') != -1 && userAgent.indexOf('android') == -1) ||
|
|
userAgent.indexOf('ios') != -1) {
|
|
|
|
if (userAgent.indexOf('micromessenger') != -1 || userAgent.indexOf('mqqbrowser') != -1 || userAgent.indexOf('qq/') != -1) {
|
|
weixin = 1;
|
|
isios = 1;
|
|
} else {
|
|
window.location.href = '{{$ios_link}}';
|
|
}
|
|
|
|
} else if (userAgent.indexOf('android') != -1) {
|
|
|
|
if (userAgent.indexOf('micromessenger') != -1 || userAgent.indexOf('qq/') != -1) {
|
|
weixin = 1;
|
|
} else {
|
|
window.location.href = '{{$android_link}}';
|
|
}
|
|
|
|
} else {
|
|
window.location.href = '{{$android_link}}';
|
|
}
|
|
}
|
|
whatBrowser()
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<!-- 顶部引导 -->
|
|
<div id="topyd"></div>
|
|
|
|
<!-- 中部引导 -->
|
|
<div id="centeryd">
|
|
<img src="/static/image/iosydt.jpg">
|
|
</div>
|
|
|
|
<!-- 底部引导 -->
|
|
<div id="bottomyd">
|
|
<p>请在浏览器打开访问</p>
|
|
</div>
|
|
</body>
|
|
|
|
<!-- 判断浏览器 -->
|
|
<script>
|
|
var isWeixin = weixin;
|
|
var isAndroid = !isios;
|
|
var isios = isios;
|
|
|
|
// 判断是不是在微信客户端打开
|
|
if(isWeixin) {
|
|
// 判断是在Android的微信客户端还是Ios的微信客户端
|
|
if (isios) {
|
|
// 是在Ios的微信客户端
|
|
$("#topyd").html("<img src='/static/image/ios.jpg'/>");
|
|
$("#centeryd").html("<img src='/static/image/iosydt.jpg'/>");
|
|
}else{
|
|
// 是在Android的微信客户端
|
|
$("#topyd").html("<img src='/static/image/android.jpg'/>");
|
|
$("#centeryd").html("<img src='/static/image/androidydt.jpg'/>");
|
|
}
|
|
} else {
|
|
// 不是微信客户端,直接可以访问链接
|
|
var url = "";
|
|
if (isios == 1) {
|
|
url = '{{$ios_link}}';
|
|
} else {
|
|
url = '{{$android_link}}';
|
|
}
|
|
location.href=url;
|
|
}
|
|
</script>
|
|
</html>
|