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
a11e5b80
Commit
a11e5b80
authored
Nov 16, 2018
by
xinyuandu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new
parent
74d2a8f2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
16 deletions
+23
-16
share_detail.html
application/index/view/share_shop/share_detail.html
+1
-1
app_jump.js
public/app/js/app_jump.js
+16
-9
detaila_tl.js
public/app/js/detaila_tl.js
+5
-5
performance_ranking.js
public/resource/js/performance_ranking.js
+1
-1
No files found.
application/index/view/share_shop/share_detail.html
View file @
a11e5b80
...
...
@@ -263,8 +263,8 @@
<!--<script src="/app/js/jquery.js"></script>-->
<script
src=
"/app/js/jquery-1122-min.js"
charset=
"UTF-8"
></script>
<script
src=
"/app/js/swiper.js"
></script>
<script
src=
"/app/js/app_jump.js"
></script>
<script
src=
"/app/js/common.js"
charset=
"utf-8"
></script>
<script
src=
"/app/js/app_jump.js"
></script>
<script
src=
"/app/js/detaila_tl.js?new1"
></script>
<script
src=
"/app/js/jquery.cookie.js"
></script>
<script
src=
"/app/js/Tab_min.js"
charset=
"utf-8"
></script>
...
...
public/app/js/app_jump.js
View file @
a11e5b80
...
...
@@ -87,22 +87,24 @@ function jumpEvent(){
var
params
=
"?"
+
window
.
location
.
href
.
split
(
'?'
)[
1
]
$
(
'#jump_link'
).
click
(
function
(
e
){
if
(
$
(
'#jump_link'
).
attr
(
"data-phone"
)
==
'true'
?
true
:
false
){
if
(
JSON
.
parse
(
$
(
'#open_id'
).
val
()).
is_user
==
'true'
){
if
(
device
.
isIos
())
{
console
.
log
(
navigator
.
userAgent
.
toLowerCase
().
match
(
/MicroMessenger/i
)
!=
'micromessenger'
)
if
(
navigator
.
userAgent
.
toLowerCase
().
match
(
/MicroMessenger/i
)
!=
'micromessenger'
)
{
alert
(
'externalCallTLC://AppOpenShopDetail/'
+
id
);
window
.
location
.
href
=
'externalCallTLC://AppOpenShopDetail/'
+
id
;
window
.
setTimeout
(
function
(){
location
.
href
=
ServerHostTempC
+
_clientType
===
'b'
?
'/app_broker/download_b'
:
'/app.php/app/download_c'
},
10000
);
//
window.setTimeout(function(){
//
location.href = ServerHostTempC + _clientType==='b'?'/app_broker/download_b':'/app.php/app/download_c'
//
},10000);
}
else
{
location
.
href
=
"yindaoIos"
+
params
}
}
else
if
(
device
.
isAndroid
()){
}
else
if
(
device
.
isAndroid
())
{
if
(
navigator
.
userAgent
.
toLowerCase
().
match
(
/MicroMessenger/i
)
!=
'micromessenger'
)
{
window
.
location
.
href
=
'tlscheme://tlhost/tongtonglian/open'
+
params
;
window
.
setTimeout
(
function
(){
location
.
href
=
ServerHostTempC
+
_clientType
===
'b'
?
'/app_broker/download_b'
:
'/app.php/app/download_c'
},
1000
);
//
window.setTimeout(function(){
//
location.href = ServerHostTempC + _clientType==='b'?'/app_broker/download_b':'/app.php/app/download_c'
//
},1000);
}
else
{
location
.
href
=
"yindaoAndroid"
+
params
...
...
@@ -110,8 +112,13 @@ function jumpEvent(){
}
else
{
};
}
else
{
var
user_id
=
JSON
.
parse
(
$
(
'#open_id'
).
val
()).
user_id
;
//从url获取的商铺id
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 + _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
;
}
e
.
preventDefault
();
e
.
stopPropagation
();
...
...
public/app/js/detaila_tl.js
View file @
a11e5b80
...
...
@@ -333,13 +333,13 @@
location
.
href
=
ServerHost
+
'/app/dist/#/shopList'
;
});
};
$
(
'#jump_link'
).
attr
(
"data-phone"
,
JSON
.
parse
(
$
(
'#open_id'
).
val
()).
is_user
)
jumpEvent
();
//添加跳转app页面事件
}
})();
//
$(document).ready(function(){
$
(
document
).
ready
(
function
(){
// console.log("12312321321312321132")
// //window.location.href = 'https://www.baidu.com';
//
...
...
@@ -361,5 +361,5 @@
// console.log($('#open_id').val())
// console.log(JSON.parse($('#open_id').val()));
// console.log(JSON.parse($('#open_id').val()).id)
// $('#jump_link').attr("data-phone" , JSON.parse($('#open_id').val()).is_user)
//})
\ No newline at end of file
$
(
'#jump_link'
).
attr
(
"data-phone"
,
JSON
.
parse
(
$
(
'#open_id'
).
val
()).
is_user
)
})
\ No newline at end of file
public/resource/js/performance_ranking.js
View file @
a11e5b80
...
...
@@ -241,7 +241,7 @@ define (['doT', 'ckfinder','ckfinderStart', 'css!style/home.css',"datetimepicker
loadTableData
:
function
(){
var
that
=
performanceRanking
;
var
date
=
new
Date
();
var
time
=
"("
+
date
.
getFullYear
()
+
"."
+
(
date
.
getMonth
()
+
1
)
+
".1-"
+
(
date
.
getMonth
()
+
1
)
+
date
.
getDate
()
+
")"
;
var
time
=
"("
+
date
.
getFullYear
()
+
"."
+
(
date
.
getMonth
()
+
1
)
+
".1-"
+
(
date
.
getMonth
()
+
1
)
+
"."
+
date
.
getDate
()
+
")"
;
$
(
'#table-time'
).
text
(
time
);
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
var
id
=
user_info_obj
.
id
;
...
...
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