You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

82 lines
2.8 KiB
HTML

<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<meta name="applicable-device" content="mobile">
<link href="__CSS__/download/common.css" rel="stylesheet" >
<link href="__CSS__/download/download.css" rel="stylesheet" >
</head>
<body>
<div class="container" style="height: 100vh;">
<div class="wrap">
<div class="inner">
<div class="downloadbox">
<img src="__IMG__/img_guide@3x.png" id="right_click" class="right_click">
<img src="{$logo_name}" class="h5_icon" >
<h1 class="title">{$app_name}</h1>
<p class="version">最新版本:{$version_name}</p>
<div class="butnbox">
<eq name="system" value="1">
<a href="itms-services://?action=download-manifest&url={$data.plist_url}" class="butn" id="jsdownload"><img src="__IMG__/guide_btn_ios.png" class="icon"><span>iPhone版下载</span></a>
<else/>
<a href="{$data.file_url}" class="butn" id="jsdownload"><img src="__IMG__/guide_btn_android.png" class="icon"><span>Android版下载</span></a>
</eq>
<p class="size">大小:{$data.file_size}</p>
</div>
</div>
</div>
</div>
</div>
<script>
window.onload = function(){
var b = document.getElementById('right_click');
if(is_weixin() && is_android()){
b.style.display = 'block';
}
var a = document.getElementById('jsdownload');
a.addEventListener('click', function () {
if(is_weixin()) {
if(is_android()) {
alert('请用安卓浏览器下载');return false;
}
}
var html = '<span class="iconbox"><i class="icon-down"></i></span><span class="textbox">正在下载<i>.</i><i>.</i><i>.</i></span>';
var name = a.className;
if (name.indexOf('disabled')<0) {
name += ' disabled';
a.className = name;
a.innerHTML = html;
}
});
}
function is_weixin(){
var ua = navigator.userAgent.toLowerCase();
return ua.match(/MicroMessenger/i)=="micromessenger";
}
function is_android() {
var ua = navigator.userAgent.toLowerCase();
return ua.indexOf('android') > -1 || ua.indexOf('linux') > -1
}
</script>
</body>
</html>