tryInfo.js
1.46 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
/**
* Created by JiangMin on 2016/3/22.
* 试穿信息管理
*/
exports.domain = require('../config/common.js').domain;
exports.res = [
//主界面
{
route: '/meterManage/tryInfo/index',//访问路由
method: 'GET',//方法
view: 'pages/meterManage/tryInfo',//视图
src: '/meterManage/tryInfo'//控制层
},
//api请求数据
{
route: '/meterManage/tryInfo/index2',
method: 'POST',
url: '/productExtraInfo/queryProdExtraList',
params: [
{name: 'productSkn', type: 'Number'},
{name: 'productSku', type: 'Number'},
{name: 'productName', type: 'String'},
{name: 'page', type: 'Number'},
{name: 'size', type: 'Number'}
]
},
{
// 获取具体试穿数据
route: '/meterManage/tryInfo/info1',
method: 'POST',
url: '/productExtraInfo/queryProdExtraInfo',
params: [
{name: 'productSkn', type: 'Number'}
]
},
//保存试穿信息
{
route: '/meterManage/tryInfo/add',
method: 'POST',
url: '/productExtraInfo/saveProdExtraInfo',
params: [
{name: 'productSkn', type: 'Number'},
{name: 'productModelTry', type: 'String'}
]
},
//上传excel文件
{
route: '/meterManage/tryInfo/batch',
method: 'GET',
view: 'pages/meterManage/batch',
src: '/meterManage/batch'
}
];