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
06a97155
Commit
06a97155
authored
Nov 13, 2018
by
xinyuandu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
朋友圈换新app功能
parent
299edcea
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
41 additions
and
35 deletions
+41
-35
share_detail.html
application/index/view/share_shop/share_detail.html
+1
-1
yindao_android.html
application/index/view/share_shop/yindao_android.html
+12
-0
yindao_ios.html
application/index/view/share_shop/yindao_ios.html
+13
-0
app_jump.js
public/app/js/app_jump.js
+13
-34
detaila_tl.js
public/app/js/detaila_tl.js
+2
-0
No files found.
application/index/view/share_shop/share_detail.html
View file @
06a97155
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
</head>
</head>
<body
style=
"background: #FFFFFF"
>
<body
style=
"background: #FFFFFF"
>
<input
type=
"hidden"
id=
"open_id"
value=
{$data}
>
<input
type=
"hidden"
id=
"open_id"
value=
{$data}
/
>
<header
class=
"m_part1_w"
>
<header
class=
"m_part1_w"
>
<div
class=
"u_btn1b"
onclick=
"window.history.go(-1)"
style=
"margin-top:0.1rem"
><span
style=
""
><i
class=
"icon-angle-left"
style=
"font-size:0.65rem"
></i></span></div>
<div
class=
"u_btn1b"
onclick=
"window.history.go(-1)"
style=
"margin-top:0.1rem"
><span
style=
""
><i
class=
"icon-angle-left"
style=
"font-size:0.65rem"
></i></span></div>
<div
class=
"lp-bunner"
>
<div
class=
"lp-bunner"
>
...
...
application/index/view/share_shop/yindao_android.html
View file @
06a97155
...
@@ -15,5 +15,17 @@
...
@@ -15,5 +15,17 @@
<div
style=
"width:100%;height:100%"
>
<div
style=
"width:100%;height:100%"
>
<image
style=
"width:100%;height:80%;position:fixed;top:5%;left:0px;z-index:10000;"
src=
"/app/images/android@2x.png"
/>
<image
style=
"width:100%;height:80%;position:fixed;top:5%;left:0px;z-index:10000;"
src=
"/app/images/android@2x.png"
/>
</div>
</div>
<script
src=
"/app/js/jquery-1122-min.js"
charset=
"UTF-8"
></script>
<script>
$
(
document
).
ready
(
function
(){
console
.
log
(
"yindao"
)
var
params
=
"?"
+
window
.
location
.
href
.
split
(
'?'
)[
1
];
if
(
navigator
.
userAgent
.
toLowerCase
().
match
(
/MicroMessenger/i
)
!=
'micromessenger'
)
{
location
.
href
=
"shareShop"
+
params
;
}
else
{
console
.
log
(
"wechart net"
);
}
})
</script>
</body>
</body>
</html>
</html>
application/index/view/share_shop/yindao_ios.html
View file @
06a97155
...
@@ -15,5 +15,18 @@
...
@@ -15,5 +15,18 @@
<div
style=
"width:100%;height:100%"
>
<div
style=
"width:100%;height:100%"
>
<image
style=
"width:100%;height:80%;position:fixed;top:5%;left:0px;z-index:10000;"
src=
"/app/images/ios@2x.png"
/>
<image
style=
"width:100%;height:80%;position:fixed;top:5%;left:0px;z-index:10000;"
src=
"/app/images/ios@2x.png"
/>
</div>
</div>
<script
src=
"/app/js/jquery-1122-min.js"
charset=
"UTF-8"
></script>
<script>
$
(
document
).
ready
(
function
(){
console
.
log
(
"yindao"
)
var
params
=
"?"
+
window
.
location
.
href
.
split
(
'?'
)[
1
]
if
(
navigator
.
userAgent
.
toLowerCase
().
match
(
/MicroMessenger/i
)
!=
'micromessenger'
)
{
console
.
log
(
window
.
location
);
location
.
href
=
"shareShop"
+
params
;
}
else
{
console
.
log
(
"wechart net"
)
}
})
</script>
</body>
</body>
</html>
</html>
public/app/js/app_jump.js
View file @
06a97155
...
@@ -36,7 +36,6 @@ function readUrlAndroid(isFutang, fn) {
...
@@ -36,7 +36,6 @@ function readUrlAndroid(isFutang, fn) {
// //进场红包
// //进场红包
// _rt = _headerMarks + '://tlhost/tonglian/open?url='+ _href +'?down_hide=1&name=进场红包';
// _rt = _headerMarks + '://tlhost/tonglian/open?url='+ _href +'?down_hide=1&name=进场红包';
// }
// }
console
.
log
(
_rt
)
return
fn
(
_rt
);
return
fn
(
_rt
);
}
}
...
@@ -77,7 +76,6 @@ function readUrlIos(isFutang, fn){
...
@@ -77,7 +76,6 @@ function readUrlIos(isFutang, fn){
}
}
function
jumpEvent
(){
function
jumpEvent
(){
console
.
log
(
'下载页'
);
var
_clientType
=
getUrlParam
(
'client'
);
var
_clientType
=
getUrlParam
(
'client'
);
var
_ft
=
getUrlParam
(
'ft'
);
var
_ft
=
getUrlParam
(
'ft'
);
...
@@ -86,38 +84,36 @@ function jumpEvent(){
...
@@ -86,38 +84,36 @@ function jumpEvent(){
$
(
'.fix_area_top>p>span:nth-of-type(2)'
).
html
(
'请下载福堂中国APP'
);
$
(
'.fix_area_top>p>span:nth-of-type(2)'
).
html
(
'请下载福堂中国APP'
);
$
(
'#jump_link>img'
).
attr
(
'src'
,
'images/pbl_dakai_ft.png'
);
$
(
'#jump_link>img'
).
attr
(
'src'
,
'images/pbl_dakai_ft.png'
);
}
}
var
params
=
"?"
+
window
.
location
.
href
.
split
(
'?'
)[
1
]
$
(
'#jump_link'
).
click
(
function
(
e
){
$
(
'#jump_link'
).
click
(
function
(
e
){
console
.
log
(
$
(
'#jump_link'
).
attr
(
"data-phone"
));
if
(
$
(
'#jump_link'
).
attr
(
"data-phone"
)
==
'true'
?
true
:
false
){
if
(
$
(
'#jump_link'
).
attr
(
"data-phone"
)
==
'true'
?
true
:
false
){
console
.
log
(
device
.
isIos
());
alert
(
"123"
);
if
(
device
.
isIos
())
{
if
(
device
.
isIos
())
{
console
.
log
(
navigator
.
userAgent
.
toLowerCase
().
match
(
/MicroMessenger/i
)
)
if
(
navigator
.
userAgent
.
toLowerCase
().
match
(
/MicroMessenger/i
)
!=
'micromessenger'
)
{
if
(
navigator
.
userAgent
.
toLowerCase
().
match
(
/MicroMessenger/i
)
!=
'micromessenger'
)
{
readUrlIos
(
_ft
,
function
(
_url
){
/*
readUrlIos(_ft, function(_url){
window.location.href = _url;
window.location.href = _url;
});
});*/
window
.
location
.
href
=
'tlscheme://tlhost/tongtonglian/open'
+
params
;
window
.
setTimeout
(
function
(){
window
.
setTimeout
(
function
(){
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'
},
2
000
);
},
10
000
);
}
else
{
}
else
{
location
.
href
=
"yindao
_ios.html"
location
.
href
=
"yindao
Ios"
+
params
}
}
}
else
if
(
device
.
isAndroid
()){
}
else
if
(
device
.
isAndroid
()){
if
(
navigator
.
userAgent
.
toLowerCase
().
match
(
/MicroMessenger/i
)
!=
'micromessenger'
)
{
if
(
navigator
.
userAgent
.
toLowerCase
().
match
(
/MicroMessenger/i
)
!=
'micromessenger'
)
{
readUrlAndroid
(
_ft
,
function
(
_url
){
/*readUrlAndroid(_ft, function(_url){
console
.
log
(
_url
);
window.location.href = _url;
window.location.href = _url;
});
});*/
window
.
location
.
href
=
'tlscheme://tlhost/tongtonglian/open'
+
params
;
window
.
setTimeout
(
function
(){
window
.
setTimeout
(
function
(){
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'
},
2000
);
},
1000
);
}
else
{
}
else
{
location
.
href
=
"yindao
_android.html"
location
.
href
=
"yindao
Android"
+
params
}
}
}
else
{
}
else
{
console
.
log
(
"12312312312312"
);
};
};
}
else
{
}
else
{
// location.href = ServerHostTempC + "/app/dist/index.html#/inviteRegister?" + "inviteRegister";
// location.href = ServerHostTempC + "/app/dist/index.html#/inviteRegister?" + "inviteRegister";
...
@@ -127,24 +123,7 @@ function jumpEvent(){
...
@@ -127,24 +123,7 @@ function jumpEvent(){
e
.
stopPropagation
();
e
.
stopPropagation
();
});
});
if
(
navigator
.
userAgent
.
toLowerCase
().
match
(
/MicroMessenger/i
)
!=
'micromessenger'
)
{
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"
);
}
window
.
setTimeout
(
function
(){
location
.
href
=
ServerHostTempC
+
_clientType
===
'b'
?
'/app_broker/download_b'
:
'/app.php/app/download_c'
},
2000
);
}
else
{
}
// if(device.isIos()) {
// if(device.isIos()) {
// readUrlIos(_ft, function(_url){
// readUrlIos(_ft, function(_url){
// window.location.href = _url;
// window.location.href = _url;
...
...
public/app/js/detaila_tl.js
View file @
06a97155
...
@@ -335,6 +335,7 @@
...
@@ -335,6 +335,7 @@
}
}
})();
})();
$
(
document
).
ready
(
function
(){
$
(
document
).
ready
(
function
(){
console
.
log
(
"12312321321312321132"
)
console
.
log
(
"12312321321312321132"
)
//window.location.href = 'https://www.baidu.com';
//window.location.href = 'https://www.baidu.com';
...
@@ -354,6 +355,7 @@ $(document).ready(function(){
...
@@ -354,6 +355,7 @@ $(document).ready(function(){
}
}
});
});
console
.
log
(
$
(
'#open_id'
).
val
())
console
.
log
(
JSON
.
parse
(
$
(
'#open_id'
).
val
()));
console
.
log
(
JSON
.
parse
(
$
(
'#open_id'
).
val
()));
console
.
log
(
JSON
.
parse
(
$
(
'#open_id'
).
val
()).
id
)
console
.
log
(
JSON
.
parse
(
$
(
'#open_id'
).
val
()).
id
)
$
(
'#jump_link'
).
attr
(
"data-phone"
,
JSON
.
parse
(
$
(
'#open_id'
).
val
()).
is_user
)
$
(
'#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