Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
22cafda1
Commit
22cafda1
authored
Nov 12, 2018
by
xinyuandu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
引导界面路由
parent
84a91710
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
114 additions
and
21 deletions
+114
-21
Index.php
application/app/controller/Index.php
+10
-0
app_jump.js
public/app/js/app_jump.js
+70
-19
detaila_tl.js
public/app/js/detaila_tl.js
+34
-2
No files found.
application/app/controller/Index.php
View file @
22cafda1
...
@@ -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
()
{
{
...
...
public/app/js/app_jump.js
View file @
22cafda1
...
@@ -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) {
...
...
public/app/js/detaila_tl.js
View file @
22cafda1
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment