Commit 22cafda1 authored by xinyuandu's avatar xinyuandu

引导界面路由

parent 84a91710
...@@ -31,6 +31,16 @@ class Index ...@@ -31,6 +31,16 @@ class Index
{ {
return view('index/share_detail'); return view('index/share_detail');
} }
public function yindao_android()
{
return view('index/yindao_android');
}
public function yindao_ios()
{
return view('index/yindao_ios');
}
public function share_register() public function share_register()
{ {
......
...@@ -79,31 +79,82 @@ function readUrlIos(isFutang, fn){ ...@@ -79,31 +79,82 @@ function readUrlIos(isFutang, fn){
function jumpEvent(){ function jumpEvent(){
console.log('下载页'); console.log('下载页');
var _clientType = getUrlParam('client'); var _clientType = getUrlParam('client');
var _ft = getUrlParam('ft');
if(_ft == '1'){
$('.fix_area_top>img:nth-of-type(2)').attr('src','images/pbl_logo_ft.png');
$('.fix_area_top>p>span:nth-of-type(2)').html('请下载福堂中国APP');
$('#jump_link>img').attr('src','images/pbl_dakai_ft.png');
}
$('#jump_link').click(function(e){ $('#jump_link').click(function(e){
if ($('#jump_link').attr("data-phone")){
console.log(device.isIos());
if(device.isIos()) {
if ( navigator.userAgent.toLowerCase().match(/MicroMessenger/i)!='micromessenger' ) {
readUrlIos(_ft, function(_url){
window.location.href = _url;
});
window.setTimeout(function(){
location.href = ServerHostTempC + _clientType==='b'?'/app_broker/download_b':'/app.php/app/download_c'
},2000);
} else {
location.href = "yindao_ios.html"
}
} else if (device.isAndroid()){
if ( navigator.userAgent.toLowerCase().match(/MicroMessenger/i)!='micromessenger' ) {
readUrlAndroid(_ft, function(_url){
console.log(_url);
window.location.href = _url;
});
window.setTimeout(function(){
location.href = ServerHostTempC + _clientType==='b'?'/app_broker/download_b':'/app.php/app/download_c'
},2000);
} else {
location.href = "yindao_android.html"
}
} else {
console.log("12312312312312");
};
} else {
location.href = ServerHostTempC + "/app/dist/index.html#/inviteRegister?" + "inviteRegister"
}
e.preventDefault(); e.preventDefault();
e.stopPropagation(); e.stopPropagation();
location.href = ServerHostTempC + _clientType==='b'?'/app_broker/download_b':'/app.php/app/download_c'
}); });
// var _ft = getUrlParam('ft'); if ( navigator.userAgent.toLowerCase().match(/MicroMessenger/i)!='micromessenger' ) {
// if(_ft == '1'){ if(device.isIos()) {
// $('.fix_area_top>img:nth-of-type(2)').attr('src','images/pbl_logo_ft.png'); readUrlIos(_ft, function(_url){
// $('.fix_area_top>p>span:nth-of-type(2)').html('请下载福堂中国APP'); window.location.href = _url;
// $('#jump_link>img').attr('src','images/pbl_dakai_ft.png'); });
// } } else if(device.isAndroid()) {
readUrlAndroid(_ft, function(_url){
window.location = _url;
});
} else {
console.log("other device");
}
window.setTimeout(function(){
location.href = ServerHostTempC + _clientType==='b'?'/app_broker/download_b':'/app.php/app/download_c'
},2000);
} else {
}
// if(device.isIos()) {
// readUrlIos(_ft, function(_url){
// window.location.href = _url;
// });
// } else if(device.isAndroid()) {
// readUrlAndroid(_ft, function(_url){
// window.location = _url;
// });
// } else {
// console.log("other device");
//
// }
//
//自动跳转app设置
// if(device.isIos()) {
// readUrlIos(_ft, function(_url){
// window.location = _url;
// });
// } else if(device.isAndroid()) {
// readUrlAndroid(_ft, function(_url){
// window.location = _url;
// });
// } else {
// console.log("other device");
// }
//点立即打开之后的事件 //点立即打开之后的事件
// $('#jump_link').click(function(e) { // $('#jump_link').click(function(e) {
......
...@@ -324,4 +324,36 @@ ...@@ -324,4 +324,36 @@
jumpEvent(); //添加跳转app页面事件 jumpEvent(); //添加跳转app页面事件
} }
})(); })();
\ No newline at end of file
$(document).ready(function(){
console.log("12312321321312321132")
//window.location.href = 'https://www.baidu.com';
$('#jump_link').attr("data-phone" , "110112119")
var phone = '';
$.ajax({
url: 'index/getWxInfoV2',
data: {
// 'house_id': _shangpuId,
//// 'site_area': _isC=='1'?1:3
// 'is_return_list': 1
},
type: "GET",
dataType: "json",
beforeSend: function() {},
success: function(data) {
// if ( data.phone ){
// phone = data.phone ;
// }
//
// $('#jump_link').attr("data-phone" , "110112119")
},
error: function() {
}
});
})
\ No newline at end of file
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