...
|
...
|
@@ -14,12 +14,12 @@ const renderData = { |
|
|
|
|
|
exports.index = (req, res) => {
|
|
|
outletModel.getContent().then(result => {
|
|
|
res.render('outlet', Object.assign({}, renderData, result));
|
|
|
res.render('outlet', Object.assign(renderData, result));
|
|
|
});
|
|
|
};
|
|
|
|
|
|
exports.getGoodsList = (req, res) => {
|
|
|
var queryParam = req.query;
|
|
|
|
|
|
res.send(queryParam);
|
|
|
exports.activity = (req, res) => {
|
|
|
outletModel.getActivity().then(result => {
|
|
|
res.render('outlet/activity', Object.assign(renderData, result));
|
|
|
});
|
|
|
}; |
...
|
...
|
|