outlet.js
873 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/**
* 频道页面
* @author: Bi Kai<kai.bi@yoho.cn>
* @date: 2016/05/09
*/
'use strict';
const outletModel = require('../models/outlet');
const renderData = {
module: 'product',
page: 'outlet'
};
exports.index = (req, res) => {
outletModel.getContent().then(result => {
res.render('outlet', Object.assign(renderData, result));
});
};
exports.activity = (req, res) => {
outletModel.getActivity().then(result => {
res.render('outlet/activity', Object.assign(renderData, result));
});
};
exports.willBeEnd = (req, res) => {
outletModel.willBeEnd().then(result => {
res.render('outlet/willBeEnd', Object.assign(renderData, result));
});
};
exports.willBeCome = (req, res) => {
outletModel.willBeCome().then(result => {
res.render('outlet/willBeCome', Object.assign(renderData, result));
});
};