Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
周少峰
8 years ago
Commit
218cf8151b9fb1ff13788b014b96df1dcb01dd21
2 parents
96e9bbeb
7bab6651
Merge branch 'release/5.4' into gray
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
apps/product/models/newArrive-service.js
public/js/product/newArrive.page.js
apps/product/models/newArrive-service.js
View file @
218cf81
...
...
@@ -148,9 +148,10 @@ const _proListHandler = (data, params) => {
*/
const
index
=
(
req
)
=>
{
let
channel
=
req
.
query
.
channel
||
req
.
cookies
.
_Channel
||
'boys'
;
let
channel
=
req
.
yoho
.
channel
;
let
params
=
{
yh_channel
:
channelMap
[
channel
].
yh_channel
,
channel
:
channel
,
uid
:
req
.
user
.
uid
||
''
};
...
...
@@ -317,10 +318,11 @@ const index = (req) => {
* @returns {Promise.<TResult>}
*/
const
getRecList
=
(
req
)
=>
{
let
channel
=
req
.
query
.
channel
||
req
.
cookies
.
_Channel
||
'boys'
;
let
channel
=
req
.
yoho
.
channel
;
let
params
=
{
yh_channel
:
channelMap
[
channel
].
yh_channel
,
channel
:
channel
,
uid
:
req
.
user
.
uid
||
''
};
...
...
public/js/product/newArrive.page.js
View file @
218cf81
...
...
@@ -183,7 +183,7 @@ $(document).pjax('.foot-pager .pager > a, .catagory-navs li.active > a', '#pjax-
});
$
(
document
).
pjax
(
'.catagory-navs li:not(.active) > a'
,
'#pjax-container'
,
{
url
:
'?
'
,
url
:
'?
channel='
+
window
.
queryString
().
channel
,
timeout
:
2000
});
...
...
Please
register
or
login
to post a comment