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
陈轩
2016-12-20 13:46:15 +0800
Commit
50e3b1d929d3bf9e467d380a6459cb0c0c7d54ae
2 parents
fabcbf21
bb88ec87
Merge branch 'release/5.3' of
http://git.yoho.cn/fe/yohobuywap-node
into release/5.3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
2 deletions
apps/product/views/partial/search/list.hbs
doraemon/middleware/set-yoho-data.js
apps/product/views/partial/search/list.hbs
View file @
50e3b1d
...
...
@@ -139,7 +139,6 @@
{{>
common
/
goods
}}
{{/
@root
.
firstPageGoodsList
}}
</div>
<div
class=
"search-divide"
>
正在加载...
</div>
<div
class=
"default-goods container clearfix"
></div>
<div
class=
"new-goods container clearfix"
></div>
<div
class=
"sale-goods container clearfix"
></div>
...
...
doraemon/middleware/set-yoho-data.js
View file @
50e3b1d
...
...
@@ -13,7 +13,7 @@ module.exports = () => {
pageChannel
:
{}
};
let
ua
=
req
.
get
(
'User-Agent
'
).
toLowerCase
();
let
ua
=
(
req
.
get
(
'User-Agent'
)
||
'
'
).
toLowerCase
();
const
channel
=
req
.
query
.
channel
||
req
.
cookies
.
_Channel
||
'boys'
;
...
...
Please
register
or
login
to post a comment