limit.js
4.64 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
exports.domain = require('../config/common.js').domain;
//exports.domain = 'http://172.16.6.240:8088/platform/';//王书生
//exports.domain = 'http://172.16.6.182:8080/yohobuy-platform-web'; //曹燕
//路由配置
exports.res = [{
//【限购商品】页面渲染
route: '/limit/product/index',
method: 'GET',
view: 'pages/limit/index',
src: '/product/limit'
}, {
// 【限购商品】ajax分页
route: '/limitProduct/getLimitProductList',
method: 'POST',
url: '/limitProduct/getLimitProductList',
params: [
{name: 'hotFlag', type: 'Number'},
{name: 'saleFlag', type: 'Number'},
{name: 'showFlag', type: 'Number'},
{name: 'productName', type: 'String'},
{name: 'productSkn', type: 'String'},
{name: 'page', type: 'Number'},
{name: 'size', type: 'Number'}
]
}, {
// 【限购商品】添加页面渲染
route: '/limit/product/add',
method: 'GET',
view: 'pages/limit/add',
src: '/product/limit-add',
data: {
data: {
limitProductType:"1",
hotFlag:"0"
},
action: '/limitProduct/addLimitProduct'
}
}, {
// 【限购商品】ajax添加
route: '/limitProduct/addLimitProduct',
method: 'POST',
url: '/limitProduct/addLimitProduct',
params: [
{name: 'productName', type: 'String'},
{name: 'attachmentContent', type: 'String'},
{name: 'batchNo', type: 'Number'},
{name: 'dayFlag', type: 'Number'},
{name: 'saleTimeStr', type: 'String'},
{name: 'hotFlag', type: 'Number'},
{name: 'orderBy', type: 'Number'},
{name: 'notSaleOrderBy', type: 'Number'},
{name: 'limitProductType', type: 'Number'},
{name: 'activityId', type: 'Number'}
]
}, {
route: '/limit/edit/:id',
method: 'GET',
view: 'pages/limit/add',
url: '/limitProduct/getLimitProduct',
data: {
action: "/limitProduct/updateLimitProduct",
type: "update"
},
src: '/product/limit-add',
params: [
{name: "id", type: "String"}
]
}, {
route: '/limitProduct/updateLimitProduct',
method: 'POST',
url: '/limitProduct/updateLimitProduct',
params: [
{name: 'id', type: 'Number'},
{name: 'productName', type: 'String'},
{name: 'attachmentContent', type: 'String'},
{name: 'batchNo', type: 'Number'},
{name: 'saleTimeStr', type: 'String'},
{name: 'hotFlag', type: 'Number'},
{name: 'orderBy', type: 'Number'},
{name: 'notSaleOrderBy', type: 'Number'},
{name: 'dayFlag', type: 'Number'},
{name: 'showFlag', type: 'Number'},
{name: 'status', type: 'Number'},
{name: 'limitProductType', type: 'Number'},
{name: 'activityId', type: 'Number'}
]
}, {
route: '/limitProduct/getCountByStatus',
method: 'POST',
url: '/limitProduct/getCountByStatus',
params: [
{name: 'hotFlag', type: 'Number'},
{name: 'saleFlag', type: 'Number'},
{name: 'showFlag', type: 'Number'},
{name: 'productName', type: 'String'},
{name: 'productSkn', type: 'String'}
]
}, {
route: '/limitProduct/auditLimitProduct',
method: 'POST',
url: '/limitProduct/auditLimitProduct',
params: [
{name: 'id', type: 'Number'},
{name: 'showFlag', type: 'Number'},
{name: 'hotFlag', type: 'Number'},
{name: 'orderBy', type: 'Number'},
{name: 'notSaleOrderBy', type: 'Number'}
]
}, {
route: '/limitProduct/deleteLimitProduct',
method: 'POST',
url: '/limitProduct/deleteLimitProduct',
params: [
{name: 'id', type: 'Number'}
]
}, {
route: '/limitProduct/checkBatchNoExist',
method: 'POST',
url: '/limitProduct/checkBatchNoExist',
params: [
{name: 'batchNo', type: 'Number'},
{name: 'id', type: 'Number'}
]
},{
route:'/limitCode/checkLimitCodeByBatchNo',
method:'POST',
url:'/limitCode/checkLimitCodeByBatchNo',
params:[
{name:"batchNo",type:'Number'},
{name:"id",type:"Number"}
]
}, {
route: '/limit/batch/export',
method: 'POST',
url: '/batch/export',
params: [
{name: 'queryConf', type: 'String'},
{name: 'type', type: 'String'}
]
},{
route:'/DrawlineActivityRest/checkActivityIdExists',
method:'POST',
url:'/DrawlineActivityRest/checkActivityIdExists',
params:[
{name:"activityId",type:"Number"}
]
},{
route:'/limitProduct/checkActivityIdNoExist',
method:'POST',
url:'/limitProduct/checkActivityIdNoExist',
params:[
{name:"activityId",type:"Number"},
{name:"id",type:"Number"}
]
}];