Commit 1e16eef0 authored by xishifeng's avatar xishifeng

下载页面修改

parent be6aca52
...@@ -52,9 +52,9 @@ class Index ...@@ -52,9 +52,9 @@ class Index
{ {
return view('index/agreement_app'); return view('index/agreement_app');
} }
public function download() public function download_c()
{ {
return view('index/download'); return view('index/download_c');
} }
public function more_pingjia() public function more_pingjia()
{ {
......
<!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();
//0是c端,2是b端
$.ajax({
type: "get",
url: ServerHostTempC+"/api/getVersionNo",
timeout: 10000,
dataType: "json",
data: {
'type': 0
},
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>
...@@ -105,9 +105,9 @@ class Index ...@@ -105,9 +105,9 @@ class Index
return view('index/imagebody'); return view('index/imagebody');
} }
public function xiazai() public function download_b()
{ {
return view('index/xiazai'); return view('index/download_b');
} }
public function __construct() public function __construct()
......
<!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();
//0是c端,2是b端
$.ajax({
type: "get",
url: ServerHostTempC+"/api/getVersionNo",
timeout: 10000,
dataType: "json",
data: {
'type': 2
},
beforeSend: function() {},
success: function(data) {
$('#android_link').attr('href',data.data.app_path);
},
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>
...@@ -21,7 +21,7 @@ Route::group('app', [ ...@@ -21,7 +21,7 @@ Route::group('app', [
'share_register' => [ 'app/index/share_register', [ 'method' => 'get' ] ], 'share_register' => [ 'app/index/share_register', [ 'method' => 'get' ] ],
'agreement' => [ 'app/index/agreement', [ 'method' => 'get' ] ], 'agreement' => [ 'app/index/agreement', [ 'method' => 'get' ] ],
'agreement_app' => [ 'app/index/agreement_app', [ 'method' => 'get' ] ], 'agreement_app' => [ 'app/index/agreement_app', [ 'method' => 'get' ] ],
'download' => [ 'app/index/download', [ 'method' => 'get' ] ], 'download_c' => [ 'app/index/download_c', [ 'method' => 'get' ] ],
'getShopDetails' => [ 'app/index/getShopDetail', [ 'method' => 'get | post' ] ], 'getShopDetails' => [ 'app/index/getShopDetail', [ 'method' => 'get | post' ] ],
'getVersionNo' => [ 'app/index/getVersionNo', [ 'method' => 'get | post' ] ], 'getVersionNo' => [ 'app/index/getVersionNo', [ 'method' => 'get | post' ] ],
'feed' => [ 'app/index/feed', [ 'method' => 'get' ] ] 'feed' => [ 'app/index/feed', [ 'method' => 'get' ] ]
...@@ -47,7 +47,7 @@ Route::group('app_broker', [ ...@@ -47,7 +47,7 @@ Route::group('app_broker', [
'timeline_pc' => [ 'app_broker/index/timeline_pc', [ 'method' => 'get' ] ], 'timeline_pc' => [ 'app_broker/index/timeline_pc', [ 'method' => 'get' ] ],
'customerinfo_customer_add' => [ 'app_broker/index/customerinfo_customer_add', [ 'method' => 'get' ] ], 'customerinfo_customer_add' => [ 'app_broker/index/customerinfo_customer_add', [ 'method' => 'get' ] ],
'customerinfo_details_new' => [ 'app_broker/index/customerinfo_details_new', [ 'method' => 'get' ] ], 'customerinfo_details_new' => [ 'app_broker/index/customerinfo_details_new', [ 'method' => 'get' ] ],
'xiazai' => [ 'app_broker/index/xiazai', [ 'method' => 'get' ] ], 'download_b' => [ 'app_broker/index/download_b', [ 'method' => 'get' ] ],
'imagebody' => [ 'app_broker/index/imagebody', [ 'method' => 'get' ] ], 'imagebody' => [ 'app_broker/index/imagebody', [ 'method' => 'get' ] ],
]); ]);
......
...@@ -82,8 +82,7 @@ function jumpEvent(){ ...@@ -82,8 +82,7 @@ function jumpEvent(){
$('#jump_link').click(function(e){ $('#jump_link').click(function(e){
e.preventDefault(); e.preventDefault();
e.stopPropagation(); e.stopPropagation();
var _ym = (~ServerHost.indexOf('estate.'))?'https://admin.tonglianjituan.com/mobile4.0/xiazai.html':'https://develop.tonglianjituan.com/mobile4.0/xiazai.html'; location.href = ServerHostTempC + _clientType==='b'?'/app_broker/download_b':'/app.php/app/download_c'
location.href = _clientType==='b'?_ym:'download';
}); });
// var _ft = getUrlParam('ft'); // var _ft = getUrlParam('ft');
......
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