...
|
...
|
@@ -8,10 +8,6 @@ |
|
|
const mRoot = '../models';
|
|
|
const outlets = require(`${mRoot}/outlets`);
|
|
|
|
|
|
// 开发用模拟数据
|
|
|
// const simuOutlets = require(`${mRoot}/simu-outlets`);
|
|
|
// const outletsSimulation = require('../models/simulation');
|
|
|
|
|
|
/**
|
|
|
* outlets 首页
|
|
|
* @param {[type]} req [description]
|
...
|
...
|
@@ -26,8 +22,6 @@ exports.index = (req, res) => { |
|
|
|
|
|
let channel = req.query.channel || req.cookies._Channel || 'boys';
|
|
|
|
|
|
// 首页模拟数据
|
|
|
// resData.result = simuOutlets.index();
|
|
|
outlets.getOutletsIndexData(req.query, channel).then(result => {
|
|
|
resData.result = result;
|
|
|
resData.headerData = result.headerData;
|
...
|
...
|
@@ -52,8 +46,6 @@ exports.channel = (req, res) => { |
|
|
page: 'outlets'
|
|
|
};
|
|
|
|
|
|
// 首页模拟数据
|
|
|
// resData = outletsSimulation.outletBanner();
|
|
|
outlets.getOutletsChannelData(req.query, req.params.channel).then(result => {
|
|
|
res.render('outlets/channel', Object.assign(resData, result));
|
|
|
}).catch(() => {
|
...
|
...
|
|