Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
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
Plain Diff
Browse Files
Authored by
ccbikai(👎🏻🍜)
2017-03-08 18:21:45 +0800
Commit
67005952e4c7e2835bfc1560e950f5a493adaa0a
2 parents
05d04fe8
b160e6e7
Merge remote-tracking branch 'origin/feature/featureTemplate' into gray
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletions
apps/activity/router.js
doraemon/middleware/sub-domain.js
apps/activity/router.js
View file @
6700595
...
...
@@ -227,7 +227,7 @@ router.get('/redbag/2017', redbag.index);
router
.
get
(
'/individuation'
,
individuation
.
productLst
);
// 活动页模版
router
.
get
(
'/feature/:code'
,
feature
.
index
);
router
.
get
(
'/feature/:code
.html
'
,
feature
.
index
);
// 2016 年度账单
router
.
get
(
'/annual-account'
,
annualAccount
.
index
);
...
...
doraemon/middleware/sub-domain.js
View file @
6700595
...
...
@@ -34,6 +34,9 @@ module.exports = () => {
if
(
req
.
hostname
===
'activity.yoho.cn'
)
{
// 活动模版的活动页
if
(
req
.
path
===
'/'
)
{
return
res
.
redirect
(
'//m.yohobuy.com'
);
}
req
.
url
=
`
/
activity$
{
req
.
url
}
`
;
}
else
if
(
req
.
subdomains
.
length
)
{
switch
(
req
.
subdomains
[
0
])
{
...
...
Please
register
or
login
to post a comment