Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohoblk-wap
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
沈志敏
9 years ago
Commit
c8a1ed9db9eb5c3c885f513b97ab56c9c529f74f
1 parent
bb1dcce7
fix bug
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
16 deletions
public/js/common/intercept-click.js
public/js/common/intercept-click.js
View file @
c8a1ed9
...
...
@@ -197,12 +197,6 @@ const matchHeader = (path, qs, titleMap) => {
return
header
;
}
if
(
/
\/
me
\/
service$/
.
test
(
path
))
{
header
=
titleMap
[
1
];
header
.
title
.
des
=
'Yoho!Blk在线客服'
;
return
header
;
}
if
(
/
\/
me
\/
feedback$/
.
test
(
path
))
{
header
=
titleMap
[
3
];
header
.
title
.
des
=
'意见反馈'
;
...
...
@@ -219,13 +213,6 @@ const matchHeader = (path, qs, titleMap) => {
return
header
;
}
// 处理 feature.yoho.cn 等域名下的站外链接
if
(
/^
(
https
?
:
)?\/\/
/i
.
test
(
path
)
&&
!
/yohoblk
\.
com/
.
test
(
path
))
{
header
=
titleMap
[
1
];
header
.
title
.
des
=
qs
.
title
||
''
;
return
header
;
}
return
header
;
};
...
...
@@ -280,10 +267,25 @@ const intercept = (url) => {
});
}
yoho
.
goNewPage
(
{
const
args
=
{
header
:
matchHeader
(
path
,
qs
,
titleMap
),
url
:
/^
(
https
?
:
)?\/\/
/i
.
test
(
url
)
?
url
:
origin
+
url
});
}
if
(
/
\/
me
\/
service$/
.
test
(
path
))
{
args
.
header
=
titleMap
[
1
];
args
.
header
.
title
.
des
=
'Yoho!Blk在线客服'
;
args
.
showLoading
=
'no'
;
}
// 处理 feature.yoho.cn 等域名下的站外链接
if
(
/^
(
https
?
:
)?\/\/
/i
.
test
(
path
)
&&
!
/m
\.
yohoblk
\.
com/
.
test
(
path
))
{
args
.
header
=
titleMap
[
1
];
args
.
header
.
title
.
des
=
qs
.
title
||
''
;
args
.
showLoading
=
'no'
;
}
yoho
.
goNewPage
(
args
);
}
else
{
location
.
href
=
url
;
}
...
...
@@ -292,4 +294,4 @@ const intercept = (url) => {
module
.
exports
=
{
defaultTitleMap
,
intercept
};
};
\ No newline at end of file
...
...
Please
register
or
login
to post a comment