product.js
2.67 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
module.exports = {
'/product/updateProductSort': function (req, res) {
res.json({
code: 200,
message: ''
})
},
'/product/class/addProductSort': function (req, res) {
res.json({
code: 200,
message: ''
})
},
'/product/getProductSort': function (req, res) {
res.json({
data: {
sortName: '上衣',
sortInitials: 'acccc',
orderBy: 10,
status: true
}
})
},
'/product/queryAllProductSortList': function (req, res) {
res.json({
data: [{
id: 1,
parentId: 0,
child: false,
sortLevel: 1,
sortName: '上衣',
sortInitials: 'abc',
orderBy: 100,
status: true
}]
})
},
'/product/queryProductSortList': function (req, res) {
res.json({
data: [{
"createTime": 0,
"gender": 3,
"id": 14,
"isHot": "N",
"orderBy": 2,
"parentId": 1,
"sortCode": "1,14,0",
"sortInitials": "bx",
"sortLevel": 2,
"sortName": "背心",
"status": 1,
"updateTime": 0
}]
})
},
'/product/attr': function (req, res) {
res.json({
list: [{
value: 1,
parentValue: 0,
isChild: false,
id: 1,
level: 1,
name: '上衣'
},{
value: 2,
parentValue: 1,
isChild: true,
id: 121,
level: 2,
name: '上衣'
},{
value: 3,
parentValue: 2,
isChild: true,
id: 1111,
level: 3,
name: '上衣'
},{
value: 4,
parentValue: 0,
isChild: false,
id: 21,
level: 1,
name: '上衣'
}]
})
},
'/product/getAttr': function (req, res) {
res.json({
data: {
attrName: '上衣',
saleType: 'acccc',
inputType: '键盘',
enableSelect: true,
enableSearch: true
}
})
},
'/product/addAttr': function (req, res) {
res.json({
code: 200,
message: ''
})
}
};