limitcode.js
2.29 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
exports.domain = require('../config/common.js').domain;
//路由配置
exports.res = [
{
route: '/limit/index',
method: 'GET',
view: 'pages/limitcode/index',
src: '/limitcode/index',
noApi: true,
data: {
pageTitle: '限购码列表',
createUrl: '/limit/code/add',
gridurl:'/limit/code/ajax/index'
}
},
{
route: '/limit/code/ajax/index',
method: 'POST',
url: '/limitCode/getLimitCodeList',
isJsonRaw:true,
params: [
{name: 'page', type: 'Number'},
{name: 'size', type: 'Number'}
]
},
{
//添加限购码页面
route: '/limit/code/add',
method: 'GET',
view: 'pages/limitcode/edit',
data: {
action:"/limit/code/ajax/add",
type:"add",
data:{
reqDepartment: "零售运营部/平台运营",
}
},
src:'/limitcode/edit'
},{
route:'/limit/code/ajax/add',
method:'POST',
url:'/limitCode/addLimitCode',
params:[
{name:"name",type:"String"},
{name:"limitTimes",type:"Number"},
{name:"reqDepartment",type:"String"},
{name:"limitDateFrom",type:"String"},
{name:"limitDateTo",type:"String"},
{name:"describe",type:"String"},
{name:"userUseLimit",type:"Number"},
{name:"userTypeLimit",type:"Number"},
//{name:"limitSkn",type:"String"},
{name:"creatorName",type:"String"},
{name:"creatorId",type:"Number"},
{name:"status",type:"Number"}
]
}
,{
route: '/limit/code/info/:id',
method: 'GET',
view: 'pages/limitcode/info',
url:"/limitCode/getLimitCode",
isJsonRaw: true,
params: [
{name: 'id',type: 'String'}
]
},{//审核限购码接口
route: '/limit/code/auditLimitCode',
method: 'GET',
view: 'pages/limitcode/info',
url:"/limitCode/auditLimitCode",
isJsonRaw: true,
params: [
{name: 'id',type: 'Number'},
{name: 'status',type: 'Number'},
{name: 'reason',type: 'String'}
]
}
]