Showing
1 changed file
with
0 additions
and
72 deletions
server/stub/config/brand.js
deleted
100644 → 0
1 | -/*module.exports = { | ||
2 | - '/getBrandList': function(req, res) { | ||
3 | - var page = 1; | ||
4 | - if (req.body.page) { | ||
5 | - page = req.body.page; | ||
6 | - } | ||
7 | - res.json({ | ||
8 | - code: 200, | ||
9 | - data: { | ||
10 | - list: [{ | ||
11 | - id: '1', | ||
12 | - brandIco: 'http://img10.static.yhbimg.com/brandLogo/2016/01/18/03/01f7e2adcbe8701d1b3f367157820ea59f.jpg?imageMogr2/thumbnail/60x60/extent/60x60/background/d2hpdGU=/position/center/quality/90', | ||
13 | - brandNameCn: '心飞扬', | ||
14 | - brandNameEn: 'xinfeiyang', | ||
15 | - brandLevel: 'KA', | ||
16 | - brandTonality: '0', | ||
17 | - createTime: '2016-01-18 11:18:20', | ||
18 | - status: 1 | ||
19 | - }, { | ||
20 | - id: '2', | ||
21 | - brandIco: 'http://img13.static.yhbimg.com/brandLogo/2016/01/14/08/02ba05d8de88846dd34787e9780afb408a.jpg?imageMogr2/thumbnail/60x60/extent/60x60/background/d2hpdGU=/position/center/quality/90', | ||
22 | - brandNameCn: 'A.A.SPECTRUM', | ||
23 | - brandNameEn: 'A.A.SPECTRUM', | ||
24 | - brandLevel: 'C', | ||
25 | - brandTonality: '0', | ||
26 | - createTime: '2016-01-14 16:34:42', | ||
27 | - status: 0 | ||
28 | - }], | ||
29 | - page: page, | ||
30 | - totalPage: 20, | ||
31 | - size: 50, | ||
32 | - total: 1000 | ||
33 | - } | ||
34 | - }) | ||
35 | - }, | ||
36 | - '/brand/editBrand': function(req, res) { | ||
37 | - res.json({ | ||
38 | - code: 200, | ||
39 | - message: '操作成功' | ||
40 | - }); | ||
41 | - }, | ||
42 | - '/interface/brand/info':function(req, res){ | ||
43 | - var JSON={ | ||
44 | - "brandName":"nike", | ||
45 | - "brandNameEn":"aaaa", | ||
46 | - "brandDomain":"yoho", | ||
47 | - "brandIco":"http://static.yohobuy.com/newheader/img/logo_e.png", | ||
48 | - "brandLevel":"KA", | ||
49 | - "promotionLevel":"2", | ||
50 | - "mainCategory":"2", | ||
51 | - "brandHeadstream":"2", | ||
52 | - "brandTypes":"2", | ||
53 | - "saleType":"2", | ||
54 | - "brandUrl":"www.baidu.com", | ||
55 | - "brandIntro":"xxxxxx", | ||
56 | - "brandOutline":"xxxxx", | ||
57 | - "brandFounder":"jay", | ||
58 | - "brandStyle":"街头|暗黑", | ||
59 | - "brandNature":"4", | ||
60 | - "brandTonality":"xxxx", | ||
61 | - "id":"1" | ||
62 | - }; | ||
63 | - res.json(JSON); | ||
64 | - return; | ||
65 | - }, | ||
66 | - '/interface/brand/add':function(req, res){ | ||
67 | - res.json({code:200,message:"添加成功"}); | ||
68 | - }, | ||
69 | - '/interface/brand/update':function(req, res){ | ||
70 | - res.json({code:200,message:"修改成功"}); | ||
71 | - } | ||
72 | -}*/ |
-
Please register or login to post a comment