<html>
|
<title> 高铁站行李寄存管理系统 </title>
|
<body>
|
<div id="content">ss</div>
|
</body>
|
</html>
|
<script type="text/javascript">
|
var ifr = document.createElement('iframe');
|
ifr.style.display = 'none';
|
var flag = getPlatform();
|
if (flag == 1) {
|
android_download();
|
}
|
if (flag == 2) {
|
ios_download();
|
}
|
|
|
function getPlatform() {
|
var result = 0;
|
var url = window.location.search;
|
if (url.indexOf("?") != -1) {
|
result = url.substr(url.indexOf("=") + 1);
|
}
|
document.getElementById("content").innerHTML=result
|
return result;
|
}
|
|
/*var ua = navigator.userAgent.split("(")[1].split(")")[0];
|
document.getElementById("content").innerHTML=ua
|
var brand = "";
|
var phone = [/IPHONE/gi, /huawei/gi, /mi/gi, /v1/gi, /OPPO/gi, /vivo/gi, /pcg/gi, /vivo/gi,];
|
if (phone[0].test(ua)) {
|
brand = "iPhone";
|
window.location.href = "https://apps.apple.com/cn/app/xxxxxxxxxx";
|
} else if (phone[1].test(ua)) {
|
brand = "HUAWEI";
|
ifr.src = 'appmarket://details?id=你的应用包名';
|
} else if (phone[2].test(ua)) {
|
brand = "小米";
|
ifr.src = 'mimarket://details?id=你的应用包名';
|
} else if (phone[3].test(ua) || phone[5].test(ua) || phone[7].test(ua)) {
|
brand = "vivo";
|
ifr.src = 'vivomarket://details?id=你的应用包名';
|
} else if (phone[4].test(ua) || phone[6].test(ua)) {
|
brand = "OPPO";
|
ifr.src = 'oppomarket://details?packagename=你的应用包名';
|
} else {
|
brand = "Android";
|
ifr.src = '';
|
}*/
|
function ios_download() {
|
window.location.href = "https://apps.apple.com/cn/app/xxxxxxx";
|
}
|
function is_weixin() {
|
var ua = navigator.userAgent.toLowerCase();
|
if (ua.match(/MicroMessenger/i) == "micromessenger") {
|
return true;
|
} else {
|
return false;
|
}
|
}
|
function android_download() {
|
if (is_weixin()) {
|
ICEICE(".weixin_notice").style.display = "block";
|
var url = window.location.href;
|
if (url.indexOf("source") <= 0) {
|
history.pushState("", "", url + "?source=1");
|
}
|
} else {
|
if (ifr.src.indexOf('hgxx') > -1) {
|
document.body.appendChild(ifr);
|
|
|
setTimeout(function() {
|
if(ifr.src.indexOf('appmarket') > -1){
|
window.location.href = "https://appstore.huawei.com/app/xxxxxxx";
|
} else if(ifr.src.indexOf('mimarket') > -1){
|
window.location.href = "http://app.mi.com/details?id=你的应用包名&ref=search";
|
}else {
|
window.location.href = "https://a.app.qq.com/o/simple.jsp?pkgname=你的应用包名";
|
}
|
},1000);
|
} else {
|
window.location.href = "https://a.app.qq.com/o/simple.jsp?pkgname=你的应用包名";
|
}
|
}
|
}
|
</script>
|