...
|
...
|
@@ -5,8 +5,9 @@ |
|
|
* Time: 10:03
|
|
|
*/
|
|
|
'use strict';
|
|
|
const _ = require('lodash');
|
|
|
const helpers = global.yoho.helpers;
|
|
|
|
|
|
// const _ = require('lodash');
|
|
|
// const helpers = global.yoho.helpers;
|
|
|
const mRoot = '../models';
|
|
|
const brandModel = require(`${mRoot}/brand`);
|
|
|
|
...
|
...
|
@@ -16,7 +17,7 @@ const brandModel = require(`${mRoot}/brand`); |
|
|
const component = {
|
|
|
|
|
|
/* 品牌店铺页面 */
|
|
|
brand: (req, res, next) => {
|
|
|
brand: (req, res) => {
|
|
|
let params = req.query;
|
|
|
|
|
|
brandModel.getBrandData(params).then(result => {
|
...
|
...
|
@@ -26,36 +27,6 @@ const component = { |
|
|
result: result
|
|
|
});
|
|
|
});
|
|
|
},
|
|
|
letterList: (req, res, next) => {
|
|
|
res.json(
|
|
|
[
|
|
|
{
|
|
|
id: 'A',
|
|
|
name: 'A'
|
|
|
},
|
|
|
{
|
|
|
id: 'B',
|
|
|
name: 'B'
|
|
|
},
|
|
|
{
|
|
|
id: 'C',
|
|
|
name: 'C'
|
|
|
},
|
|
|
{
|
|
|
id: 'D',
|
|
|
name: 'D'
|
|
|
},
|
|
|
{
|
|
|
id: 'E',
|
|
|
name: 'E'
|
|
|
},
|
|
|
{
|
|
|
id: 'F',
|
|
|
name: 'F'
|
|
|
}
|
|
|
]
|
|
|
);
|
|
|
}
|
|
|
};
|
|
|
|
...
|
...
|
|