Commit 22cafda1 authored by xinyuandu's avatar xinyuandu

引导界面路由

parent 84a91710
...@@ -32,6 +32,16 @@ class Index ...@@ -32,6 +32,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,23 +79,71 @@ function readUrlIos(isFutang, fn){ ...@@ -79,23 +79,71 @@ 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 {
//自动跳转app设置 }
// if(device.isIos()) { // if(device.isIos()) {
// readUrlIos(_ft, function(_url){ // readUrlIos(_ft, function(_url){
// window.location = _url; // window.location.href = _url;
// }); // });
// } else if(device.isAndroid()) { // } else if(device.isAndroid()) {
// readUrlAndroid(_ft, function(_url){ // readUrlAndroid(_ft, function(_url){
...@@ -103,7 +151,10 @@ function jumpEvent(){ ...@@ -103,7 +151,10 @@ function jumpEvent(){
// }); // });
// } else { // } else {
// console.log("other device"); // console.log("other device");
//
// } // }
//
//点立即打开之后的事件 //点立即打开之后的事件
// $('#jump_link').click(function(e) { // $('#jump_link').click(function(e) {
......
...@@ -325,3 +325,35 @@ ...@@ -325,3 +325,35 @@
jumpEvent(); //添加跳转app页面事件 jumpEvent(); //添加跳转app页面事件
} }
})(); })();
$(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