79 lines
1.9 KiB
HTML
79 lines
1.9 KiB
HTML
|
|
<!DOCTYPE html>
|
||
|
|
<html lang="en">
|
||
|
|
<head>
|
||
|
|
<meta charset="UTF-8">
|
||
|
|
<title>山洪责任人APP</title>
|
||
|
|
</head>
|
||
|
|
|
||
|
|
<style>
|
||
|
|
.tipsBox{
|
||
|
|
width:100vw;
|
||
|
|
height:100vh;
|
||
|
|
background: url(./img/qrCodeBg.png) 0 0 no-repeat;
|
||
|
|
background-size:cover;
|
||
|
|
text-align:center;
|
||
|
|
overflow:hidden;
|
||
|
|
}
|
||
|
|
.tipsBox .txt{
|
||
|
|
color: #fff;
|
||
|
|
font-size:2rem;
|
||
|
|
text-align:left;
|
||
|
|
padding:30px 0 0 30px;
|
||
|
|
box-sizing: border-box;
|
||
|
|
letter-spacing: 1px;
|
||
|
|
}
|
||
|
|
.tipsBox img{
|
||
|
|
max-width: 230px;
|
||
|
|
width: 30vw;
|
||
|
|
margin-top: 20vh;
|
||
|
|
}
|
||
|
|
.tipsBox p{
|
||
|
|
color: #fff;
|
||
|
|
font-size:3rem;
|
||
|
|
letter-spacing: 1px;
|
||
|
|
}
|
||
|
|
</style>
|
||
|
|
|
||
|
|
<body style="margin:0;padding:0">
|
||
|
|
<div class="tipsBox" id="downloadTipsBox">
|
||
|
|
<div class="txt">
|
||
|
|
<div>点击右上角: <b>...</b></div>
|
||
|
|
<br/>
|
||
|
|
<div>选择: <b>在浏览器中打开进行下载</b></div>
|
||
|
|
</div>
|
||
|
|
<img src="img/logo.png" />
|
||
|
|
<p>山洪责任人APP</p>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<script>
|
||
|
|
let isBrowser = false;
|
||
|
|
|
||
|
|
//微信浏览器 支付宝客户端
|
||
|
|
if ( /MicroMessenger/.test(window.navigator.userAgent)) {
|
||
|
|
isBrowser = false;
|
||
|
|
}else if ( /AlipayClient/.test(window.navigator.userAgent)) {
|
||
|
|
isBrowser = false;
|
||
|
|
}else{
|
||
|
|
isBrowser = true;
|
||
|
|
}
|
||
|
|
|
||
|
|
if(isBrowser){
|
||
|
|
// 获取用户代理字符串和平台信息
|
||
|
|
var userAgent = window.navigator.userAgent;
|
||
|
|
var platform = window.navigator.platform;
|
||
|
|
|
||
|
|
// 判断是否为iOS系统
|
||
|
|
if (/iPad|iPhone|iPod/.test(platform) && !window.MSStream) {
|
||
|
|
window.location.href = "https://itunes.apple.com/app/id6450688511";
|
||
|
|
}
|
||
|
|
// 判断是否为Android系统
|
||
|
|
else if (/Android/.test(userAgent)) {
|
||
|
|
window.open("http://223.75.53.141:8081/static/app/shzrr.release.latest.apk");
|
||
|
|
}else{
|
||
|
|
window.open("http://223.75.53.141:8081/static/app/shzrr.release.latest.apk");
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|
||
|
|
</script>
|
||
|
|
</body>
|
||
|
|
</html>
|