limit.js
2.05 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
module.exports = {
'/limit/queryProductList': function (req, res) {
res.json({
data: {
list: [{
'name': 'Hello',
'hotSort': 1,
'notSaleSort': 1,
'cover': 'http://img11.static.yhbimg.com/goodsimg/2015/07/07/08/01315b5bbfd72bc5b59fa2fda6c28b9ae6.jpg',
'skn': '待定',
'price': '400',
'saleDate': '2015.1.2',
'store': 12,
'isSale': true,
'isHot': false,
'isOpen': true,
'id': 1231
},{
'name': 'Hello',
'hotSort': 1,
'notSaleSort': 1,
'cover': 'http://img11.static.yhbimg.com/goodsimg/2015/07/07/08/01315b5bbfd72bc5b59fa2fda6c28b9ae6.jpg',
'skn': '待定',
'price': '400',
'saleDate': '2015.1.2',
'store': 12,
'isSale': true,
'isHot': false,
'isOpen': true,
'id': 1231
},{
'name': 'Hello',
'hotSort': 1,
'notSaleSort': 1,
'cover': 'http://img11.static.yhbimg.com/goodsimg/2015/07/07/08/01315b5bbfd72bc5b59fa2fda6c28b9ae6.jpg',
'skn': '待定',
'price': '400',
'saleDate': '2015.1.2',
'store': 12,
'isSale': true,
'isHot': false,
'isOpen': true,
'id': 1231
}],
page: 1,
totalpage: 142,
size: 50,
total:1000
}
})
},
'/limit/newProduct': function (req, res) {
res.json({
code: 200,
message: ''
})
}
};