tryInfo.js
1.79 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
/**
* Created by JiangMin on 2016/3/22.
* 试穿信息管理
*/
//exports.domain = require('../config/common.js').domain;
exports.domain = 'http://172.16.6.162:8088/platform'; //李建
//exports.domain = 'http://192.168.102.216:8180/platform'; //测试环境
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/info/:productSkn',
method: 'GET',
view: 'pages/meterManage/info',
src: '/meterManage/info'
},
// 获取商品详情数据
{
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'
}
];