brand.js 1.54 KB
/**
 * 品牌
 * @author: zxr<xiaoru.zhang@yoho.cn>
 * @date: 2016/7/8
 */

'use strict';
const brand = require('../models/brand');

const index = (req, res) => {

    brand.getListData().then((result) => {
        res.display('index', {
            module: 'brand',
            page: 'index',
            title: '品牌',
            brand: {
                nav: [
                    {
                        link: '//guang.yohobuy.com/index/index?type=0',
                        pathTitle: '首页',
                        name: 'MEN首页'
                    },
                    {
                        link: '/',
                        pathTitle: '品牌',
                        name: 'Brand品牌'
                    }
                ],
                tabs: [
                    {
                        url: '#',
                        name: '',
                        src: '#'
                    },
                    {
                        url: '#',
                        name: '',
                        src: '#'
                    },
                    {
                        url: '#',
                        name: '',
                        src: '#'
                    }
                ],
                category: result.category
            },

            helpers: {
                // import component, path depends on your project
                pagination: require('../../../doraemon/components/pagination/pagination').createPagination
            }
        });
    });
};

module.exports = {
    index // 组件demo页
};