Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-blk
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
1
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
姜枫
9 years ago
Commit
26fa52702b6d2ed184cd8780845d45d2888f30bc
1 parent
9c23c02c
fix bug 829
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
apps/product/controllers/query.js
apps/product/controllers/query.js
View file @
26fa527
...
...
@@ -17,6 +17,7 @@ const Query = {
index
:
(
req
,
res
,
next
)
=>
{
let
q
=
req
.
query
;
let
query
=
q
.
query
||
''
;
let
channel
=
req
.
cookies
.
_Channel
||
req
.
query
.
_Channel
||
'men'
;
q
.
page
=
parseInt
(
q
.
page
||
1
,
10
);
q
.
order
=
q
.
order
||
's_n_desc'
;
...
...
@@ -36,7 +37,7 @@ const Query = {
if
(
result
&&
result
.
code
===
200
&&
result
.
data
)
{
let
data
=
camelCase
(
result
.
data
);
let
nav
=
[
DataHelper
.
getChannelNav
()];
let
nav
=
[
DataHelper
.
getChannelNav
(
channel
)];
nav
.
push
({
name
:
query
?
`
"${query}"
共
$
{
data
.
total
}
个结果`
:
`共
$
{
data
.
total
}
个结果`
...
...
Please
register
or
login
to post a comment