brand.js
2.5 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/*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:"修改成功"});
}
}*/