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
a9944efb
Commit
a9944efb
authored
Jun 19, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
办公楼详情
parent
6fcb619d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
103 deletions
+4
-103
app_office_jump.js
public/app/js/app_office_jump.js
+1
-103
detaila_office_tl.js
public/app/js/detaila_office_tl.js
+3
-0
No files found.
public/app/js/app_office_jump.js
View file @
a9944efb
...
...
@@ -6,36 +6,6 @@ function readUrlAndroid(isFutang, fn) {
var
_rt
=
''
;
var
_headerMarks
=
'tlscheme'
;
_rt
=
_headerMarks
+
'://tlhost/tonglian/open'
;
// if(_pathname.indexOf('details_tl.html') >= 0) {
// //楼盘详情
// var _houseid = getUrlParam('id');
// var _housename = getUrlParam('housename');
// _rt = _headerMarks + '://tlhost/tonglian/open?id=' + _houseid + '&name=' + _housename;
// }else if(_pathname.indexOf('news2_app.html') >= 0){
// var _newstype = getUrlParam('newstype');
// var _id = getUrlParam('id');
// var _name = getUrlParam('name');
// if(_newstype == '1'){
// //商学院里的新闻
// _rt = _headerMarks + '://tlhost/tonglian/open?url=' + _href + '&name=' + _name;
//
// }else{
// //头条详情里的新闻
// _rt = _headerMarks + '://tlhost/tonglian/open?id=' + _id + '&name=' + _name;
// }
// }else if(_pathname.indexOf('money_banner.html') >= 0){
// //banner 在线结佣
// _rt = _headerMarks + '://tlhost/tonglian/open?url='+ _href +'&name=在线结佣';
// }else if(_pathname.indexOf('poster_intro.html') >= 0){
// //海报设计,海报制作
// _rt = _headerMarks + '://tlhost/tonglian/open?url='+ _href +'&name=海报设计';
// }else if(_pathname.indexOf('invite_intro.html') >= 0){
// //邀好友
// _rt = _headerMarks + '://tlhost/tonglian/open?url='+ _href +'&name=邀好友';
// }else if(_pathname.indexOf('come_intro.html') >= 0){
// //进场红包
// _rt = _headerMarks + '://tlhost/tonglian/open?url='+ _href +'?down_hide=1&name=进场红包';
// }
return
fn
(
_rt
);
}
...
...
@@ -49,47 +19,17 @@ function readUrlIos(isFutang, fn){
var
_search
=
_search_temp
.
replace
(
'&share=1'
,
''
);
var
_rt
=
''
;
// var _headerMarks = 'tonglianjituan';
var
_headerMarks
=
'tlscheme'
;
// _rt = _headerMarks + '://tlhost/tonglian/open';
// if(isFutang == '1'){
// _headerMarks = 'futangchina';
// }
//
// if(_pathname.indexOf('money_banner.html') >= 0){
// //banner 在线结佣
// _rt = _headerMarks + '://admin.tonglianjituan.com' + _pathname + '?url='+ _href +'&name=在线结佣';
// }else if(_pathname.indexOf('poster_intro.html') >= 0){
// //海报设计,海报制作
// _rt = _headerMarks + '://admin.tonglianjituan.com' + _pathname + '?url='+ _href +'&name=海报设计';
// }else if(_pathname.indexOf('invite_intro.html') >= 0){
// //邀好友
// _rt = _headerMarks + '://admin.tonglianjituan.com' + _pathname + '?url='+ _href +'&name=邀好友';
// }else if(_pathname.indexOf('come_intro.html') >= 0){
// //进场红包
// _rt = _headerMarks + '://admin.tonglianjituan.com' + _pathname + '?url='+ _href +'&name=进场红包';
// }else{
// _rt = _headerMarks + '://admin.tonglianjituan.com' + _pathname + _search;
// }
//
return
fn
(
_rt
);
}
function
jumpEvent
(){
function
jumpEvent
(){
//同联
var
_clientType
=
getUrlParam
(
'client'
);
var
id
=
getUrlParam
(
'id'
);
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');
}*/
var
params
=
"?"
+
window
.
location
.
href
.
split
(
'?'
)[
1
]
$
(
'#jump_link'
).
click
(
function
(
e
){
console
.
log
(
JSON
.
parse
(
$
(
'#open_id'
).
val
()).
is_user
)
if
(
JSON
.
parse
(
$
(
'#open_id'
).
val
()).
is_user
){
// if ( navigator.userAgent.toLowerCase().match(/MicroMessenger/i)=='micromessenger' ) {
console
.
log
(
"true console"
)
if
(
device
.
isIos
())
{
console
.
log
(
navigator
.
userAgent
.
toLowerCase
().
match
(
/MicroMessenger/i
)
!=
'micromessenger'
)
...
...
@@ -138,8 +78,6 @@ function jumpEvent(){
var
referrer
=
_clientType
===
'b'
?
20
:
10
;
var
union_id
=
JSON
.
parse
(
$
(
'#open_id'
).
val
()).
wx_union_id
;
var
device_id
=
JSON
.
parse
(
$
(
'#open_id'
).
val
()).
device_id
;
// location.href = ServerHostTempC + "/app/dist/index.html#/inviteRegister?" + "inviteRegister";
// location.href = ServerHostTempC + _clientType==='b'?'/app_broker/download_b':'/app.php/app/download_c'
location
.
href
=
ServerHostTempC
+
'/app/dist/index.html#/inviteRegister?referrer_id='
+
user_id
+
'&referrer_source='
+
referrer
+
'&device_id='
+
device_id
+
'&wx_union_id='
+
union_id
;
}
}
...
...
@@ -147,45 +85,5 @@ function jumpEvent(){
e
.
stopPropagation
();
});
// 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");
//
// }
//
//点立即打开之后的事件
// $('#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);
// });
}
public/app/js/detaila_office_tl.js
View file @
a9944efb
...
...
@@ -200,6 +200,9 @@
localStorage
.
setItem
(
'shop_list_b_user_img'
,
_name_img
);
location
.
href
=
ServerHost
+
'/app/dist/#/shopList'
;
});
}
else
{
//c端显示推荐人
};
$
(
'#jump_link'
).
attr
(
"data-phone"
,
JSON
.
parse
(
$
(
'#open_id'
).
val
()).
is_user
)
...
...
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