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
db1840a5
Commit
db1840a5
authored
Jan 05, 2018
by
xishifeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
楼盘详情分享下载链接更改
parent
d7c0758a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
36 deletions
+38
-36
app_jump.js
public/app/js/app_jump.js
+38
-36
No files found.
public/app/js/app_jump.js
View file @
db1840a5
...
...
@@ -77,7 +77,9 @@ function readUrlIos(isFutang, fn){
}
function
jumpEvent
(){
var
_ft
=
getUrlParam
(
'ft'
);
console
.
log
(
'下载页'
);
// location.href = 'xiazai.html';
// 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');
...
...
@@ -85,41 +87,41 @@ function jumpEvent(){
// }
//自动跳转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"
);
}
//
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
)
{
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"
);
}
var
t
=
Date
.
now
();
setTimeout
(
function
()
{
if
(
Date
.
now
()
-
t
<
1200
)
{
// if(_ft == '1'){
// location.href = 'xiazai.html?ft=1';
// }else{
location
.
href
=
'xiazai.html'
;
// }
}
},
1000
);
});
//
$('#jump_link').click(function(e) {
//
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");
//
}
//
//
var t = Date.now();
//
setTimeout(function() {
//
if(Date.now() - t < 1200) {
//
//
if(_ft == '1'){
//
//
location.href = 'xiazai.html?ft=1';
//
//
}else{
//
location.href = 'xiazai.html';
//
//
}
//
}
//
}, 1000);
//
});
}
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