limit.js
1.31 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
exports.domain = require('../config/common.js').domain;
//路由配置
exports.res = [
{
//【限购商品】页面渲染
route: '/limit/product/index',
method: 'GET',
view: 'pages/limit/index',
isJsonRaw:true,
src: '/product/limit'
}, {
// 【限购商品】ajax分页
route: '/limit/product/page',
method: 'POST',
url: '/limit/queryProductList',
isJsonRaw:true
},{
// 【限购商品】添加页面渲染
route: '/limit/product/add',
method: 'GET',
view: 'pages/limit/add',
src: '/product/limit-add',
isJsonRaw:true
},{
// 【限购商品】ajax添加
route: '/limit/product/new',
method: 'POST',
url: '/limit/newProduct',
isJsonRaw:true,
params: [
{
name: 'batch',
type: 'Number'
},{
name: 'limitDate',
type: 'String'
},{
name: 'optionsStock',
type: 'number'
},{
name:'hotSale',
type: 'String'
},{
name: 'notSaleSort',
type: 'String'
}
]
}
];