Authored by lijing

获取日期缓存bug

... ... @@ -233,7 +233,7 @@ exports.travel = function(req, res, next) {
exports.adviser = function(req, res, next) {
Object.assign(responseData, {
let resData = Object.assign({}, responseData, {
pageHeader: headerModel.setNav({
navTitle: '潮流顾问'
}),
... ... @@ -249,7 +249,7 @@ exports.adviser = function(req, res, next) {
};
trendModel.adviser(params).then((result) => {
res.render('trend/adviser', Object.assign(responseData, result));
res.render('trend/adviser', Object.assign(resData, result));
}).catch(next);
};
... ... @@ -356,7 +356,7 @@ exports.packageDetail = function(req, res, next) {
exports.cutter = function(req, res, next) {
Object.assign(responseData, {
let resData = Object.assign({}, responseData, {
pageHeader: headerModel.setNav({
navTitle: req.query.cutterName
}),
... ... @@ -372,7 +372,7 @@ exports.cutter = function(req, res, next) {
};
trendModel.cutter(params).then((result) => {
res.render('trend/cutter', Object.assign(responseData, result));
res.render('trend/cutter', Object.assign(resData, result));
}).catch(next);
};
... ... @@ -457,7 +457,7 @@ exports.chosenStyle = function(req, res, next) {
};
exports.chosenTime = function(req, res, next) {
Object.assign(responseData, {
let resData = Object.assign({}, responseData, {
pageHeader: headerModel.setNav({
navTitle: '选择时间'
}),
... ... @@ -472,7 +472,7 @@ exports.chosenTime = function(req, res, next) {
};
trendModel.chosenTime(params).then((result) => {
res.render('trend/chosen-time', Object.assign(responseData, result));
res.render('trend/chosen-time', Object.assign(resData, result));
}).catch(next);
};
... ...