brand.js 2.5 KB
/*module.exports = {
    '/getBrandList': function(req, res) {
        var page = 1;
        if (req.body.page) {
            page = req.body.page;
        }
        res.json({
            code: 200,
            data: {
                list: [{
                    id: '1',
                    brandIco: 'http://img10.static.yhbimg.com/brandLogo/2016/01/18/03/01f7e2adcbe8701d1b3f367157820ea59f.jpg?imageMogr2/thumbnail/60x60/extent/60x60/background/d2hpdGU=/position/center/quality/90',
                    brandNameCn: '心飞扬',
                    brandNameEn: 'xinfeiyang',
                    brandLevel: 'KA',
                    brandTonality: '0',
                    createTime: '2016-01-18 11:18:20',
                    status: 1
                }, {
                    id: '2',
                    brandIco: 'http://img13.static.yhbimg.com/brandLogo/2016/01/14/08/02ba05d8de88846dd34787e9780afb408a.jpg?imageMogr2/thumbnail/60x60/extent/60x60/background/d2hpdGU=/position/center/quality/90',
                    brandNameCn: 'A.A.SPECTRUM',
                    brandNameEn: 'A.A.SPECTRUM',
                    brandLevel: 'C',
                    brandTonality: '0',
                    createTime: '2016-01-14 16:34:42',
                    status: 0
                }],
                page: page,
                totalPage: 20,
                size: 50,
                total: 1000
            }
        })
    },
    '/brand/editBrand': function(req, res) {
        res.json({
            code: 200,
            message: '操作成功'
        });
    },
    '/interface/brand/info':function(req, res){
        var JSON={
            "brandName":"nike",
            "brandNameEn":"aaaa",
            "brandDomain":"yoho",
            "brandIco":"http://static.yohobuy.com/newheader/img/logo_e.png",
            "brandLevel":"KA",
            "promotionLevel":"2",
            "mainCategory":"2",
            "brandHeadstream":"2",
            "brandTypes":"2",
            "saleType":"2",
            "brandUrl":"www.baidu.com",
            "brandIntro":"xxxxxx",
            "brandOutline":"xxxxx",
            "brandFounder":"jay",
            "brandStyle":"街头|暗黑",
            "brandNature":"4",
            "brandTonality":"xxxx",
            "id":"1"
        };
        res.json(JSON);
        return;
    },
    '/interface/brand/add':function(req, res){
        res.json({code:200,message:"添加成功"});
    },
    '/interface/brand/update':function(req, res){
        res.json({code:200,message:"修改成功"});
    }
}*/