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
Email Patches
Plain Diff
Browse Files
Authored by
mark
8 years ago
Commit
1ea9eb225d84609b385b839d4924ddc347f08ccd
1 parent
8477c4f0
增加seven-product模板
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
apps/channel/controllers/index.js
apps/channel/controllers/index.js
View file @
1ea9eb2
...
...
@@ -19,7 +19,7 @@ exports.index = (req, res, next) => {
channelModel
.
getContent
(
channelType
).
then
(
data
=>
{
// channel为空不缓存
var
clone
=
data
[
'channel'
][
3
][
'recommend'
][
'tplrecommend'
][
0
][
'products'
][
0
];
var
obj
=
{
'channel'
:
{
'seven'
:
{
'sevendata'
:
[{
'products'
:
[
clone
,
clone
,
clone
,
clone
,
clone
,
clone
,
clone
]}]}
},
...
...
@@ -27,9 +27,9 @@ exports.index = (req, res, next) => {
'page'
:
'channel'
,
'pageType'
:
'boys'
};
if
(
_
.
isEmpty
(
data
.
channel
))
{
res
.
set
(
'Cache-Control'
,
'no-cache'
);
}
if
(
_
.
isEmpty
(
data
.
channel
))
{
res
.
set
(
'Cache-Control'
,
'no-cache'
);
}
res
.
render
(
'channel'
,
obj
);
}).
catch
(
next
);
};
...
...
Please
register
or
login
to post a comment