proPhoto.js
1.61 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
/**
* Created by JiangMin on 2016/3/22.
* 产品图片管理
*/
exports.domain = require('../config/common.js').domain;
exports.res = [
//主界面
{
route: '/shotManage/proPhoto/index',//访问路由
method: 'GET',//方法
view: 'pages/shotManage/proPhoto',//视图
src: '/shotManage/proPhoto'//控制层
},
//api请求数据
{
route: '/shotManage/proPhoto/index2',
method: 'POST',
url: '/productPhoto/queryProductPhotoList',
params: [
//查询参数
{name: 'productSkn', type: 'Number'},
{name: 'productSkc', type: 'Number'},
{name: 'productSku', type: 'Number'},
{name: 'startTime', type: 'Number'},
{name: 'endTime', type: 'Number'},
//分页参数
{name: 'page', type: 'Number'},
{name: 'size', type: 'Number'}
]
},
//编辑图片
{
route: '/shotManage/proPhoto/add',
method: 'POST',
url: '/productPhoto/addProductBatchPhoto',
params: [
{name: 'productSkn', type: 'Number'},
{name: 'productSkc', type: 'Number'},
{name: 'productSku', type: 'Number'},
{name: 'ids', type: 'string'},
{name: 'productPhotoAddStrList', type: 'string'}
]
}
//编辑图片
//{
// route: '/shotManage/proPhoto/update',
// method: 'POST',
// url: '/productPhoto/updateProductPhoto',
// params: [
// {name: 'productSkn', type: 'Number'},
// {name: 'ids', type: 'string'}
// ]
//}
];