Commit 6944b4bb authored by xishifeng's avatar xishifeng

下载页面修改2

parent 1e16eef0
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<meta http-equiv="X-UA-Compatible" content="IE=10" />
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" />
<meta name="Keywords" content="" />
<meta name="Description" content="" />
<link rel="stylesheet" href="/app/css/common.css">
<link rel="stylesheet" href="/app/css/detail_zyy.css">
<link rel="stylesheet" href="/app/css/xiazai.css">
</head>
<body>
<div class="header_seat"></div>
<div class="headerbox">
<img alt="" id="app_ban">
<!-- 按键-->
<a href="javascript:;" id="android_link" class="img_a" style="display:none"><img src="/app/images/android_download.png" alt=""></a>
<a href="https://itunes.apple.com/cn/app/id1326696107" id="ios_link" class="img_a2" style="display:none"><img src="/app/images/iphone_download.png" alt=""></a>
</div>
<!--编辑器输出-->
<!-- android-->
<footer onclick='cancleshare()' style='' id="footer_and" class="footer_xia">
<div style='width: 100%;' class='fl'>
<img id="andimg" src="/app/images/xiazai.png">
</div>
</footer>
<!-- iso-->
<footer onclick='cancleshare()' id="footerid_ios" class="footer_xia">
</footer>
<script src="/app/js/jquery.js"></script>
<script src="/app/js/common.js" charset="UTF-8"></script>
<script>
window.onload = function() {
$('#app_ban').attr('src','/app/images/bg_download.png');
$('title').html('下载');
$('.xiazai-p-fuju').show();
$.ajax({
type: "post",
url: "/app/getVersionNo",
timeout: 10000,
dataType: "json",
beforeSend: function() {},
success: function(data) {
$('#android_link').attr('href',data.data.app_path);
},
error: function() {
alert("暂无最新app链接")
},
complete: function(xhr, textStatus){
if(textStatus === "timeout"){
//处理超时的逻辑
alert("请求超时");
}
}
});
var u = navigator.userAgent;
// alert(u);
if (u.indexOf('Android') > -1 || u.indexOf('Linux') > -1) { //安卓手机
//alert("安卓手机");
if (u.indexOf('MicroMessenger') > -1) {
$("#footer_and").show();
}
$(".img_a").css("top", "9rem").show();
//alert(123);
} else if (u.indexOf('iPhone') > -1) { //苹果手机
//alert("苹果手机");
if (u.indexOf('MicroMessenger') > -1) {
}
$(".img_a2").css("top", "9rem").show();
} else if (u.indexOf('Windows Phone') > -1) { //winphone手机
// alert("winphone手机");
$("#footer_and").show();
} else if (u.indexOf('Windows NT') > -1) { //pc端
//alert('pc');
$(".img_a2,.img_a").show();
}
}
function cancleshare() {
$(".footer_xia").hide();
}
//从location.href里获取参数
function getUrlParam(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
var r = decodeURI(window.location.search).substr(1).match(reg);
if(r != null) return unescape(r[2]);
return null;
}
</script>
</body>
</html>
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
<meta http-equiv="X-UA-Compatible" content="IE=10" />
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" />
<meta name="Keywords" content="" />
<meta name="Description" content="" />
<link rel="stylesheet" href="/app/css/common.css">
<link rel="stylesheet" href="/app/css/xiazai.css">
</head>
<body>
<div class="header_seat"></div>
<div class="headerbox">
<img alt="" id="app_ban">
<!-- 按键-->
<a href="javascript:;" id="android_link" class="img_a" style="display:none"><img src="/app/images/android_download.png" alt=""></a>
<a href="https://itunes.apple.com/cn/app/fu-ju-hao-fang-an-chang-gong-ju/id1292445456?l=en&mt=8" id="ios_link" class="img_a2" style="display:none"><img src="/app/images/iphone_download.png" alt=""></a>
</div>
<!--编辑器输出-->
<!-- android-->
<footer onclick='cancleshare()' style='' id="footer_and" class="footer_xia">
<div style='width: 100%;' class='fl'>
<img id="andimg" src="/app/images/xiazai.png">
</div>
</footer>
<!-- iso-->
<footer onclick='cancleshare()' id="footerid_ios" class="footer_xia">
</footer>
<script src="/app/js/jquery-1122-min.js" charset="utf-8"></script>
<script src="/app/js/common.js" charset="utf-8"></script>
<script>
window.onload = function() {
$('#app_ban').attr('src','/app/images/bg_download.png');
$('title').html('下载');
$('.xiazai-p-fuju').show();
$.ajax({
type: "post",
url: ServerHostTempC+"/AppTab5/versions",
timeout: 10000,
dataType: "json",
beforeSend: function() {},
success: function(data) {
$('#android_link').attr('href',data.apk_url);
},
error: function() {
},
complete: function(xhr, textStatus){
if(textStatus === "timeout"){
//处理超时的逻辑
alert("请求超时");
}
}
});
var u = navigator.userAgent;
// alert(u);
if (u.indexOf('Android') > -1 || u.indexOf('Linux') > -1) { //安卓手机
//alert("安卓手机");
if (u.indexOf('MicroMessenger') > -1) {
$("#footer_and").show();
}
$(".img_a").css("top", "9rem").show();
//alert(123);
} else if (u.indexOf('iPhone') > -1) { //苹果手机
//alert("苹果手机");
if (u.indexOf('MicroMessenger') > -1) {
}
$(".img_a2").css("top", "9rem").show();
} else if (u.indexOf('Windows Phone') > -1) { //winphone手机
// alert("winphone手机");
$("#footer_and").show();
} else if (u.indexOf('Windows NT') > -1) { //pc端
//alert('pc');
$(".img_a2,.img_a").show();
}
}
function cancleshare() {
$(".footer_xia").hide();
}
</script>
</body>
</html>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment