entrance.js
2.23 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
/**
* Created by ty on 2016/3/22.
* 入口管理
*/
//exports.domain = require('../config/common.js').domain;
exports.domain = "http://172.16.6.127:8088/platform";
exports.res = [
{//入口信息管理界面
route:'/operations/entrance/index1',
method: 'GET',
view: 'pages/product/entrance',
src: '/product/entrance'
},
{//入口列表
route: '/operations/entrance/selectEntranceList',
method: 'POST',
url:'/entrance/selectEntranceList',
params: [
{name: "platform", type:"string"},
{name: "status", type:"string"},
{name: "page", type:"number"}
]
},
{//添加入口
route: '/operations/entrance/insertEntrance',
method: 'POST',
url: '/entrance/insertEntrance',
params: [
{name: "entryName", type:"string"},
{name: "clickBeforeImg", type:"string"},
{name: "clickAfterImg", type:"string"},
{name: "url", type:"string"},
{name: "platform", type:"string"},
{name: "orderBy", type:"string"},
{name: "status", type:"string"},
{name: "zipUrl", type:"string"},
{name: "channelId", type:"string"},
{name: "gender", type:"string"}
]
},
{//修改入口
route: '/operations/entrance/updateEntrance',
method: 'POST',
url: '/entrance/updateEntrance',
params: [
{name: "id", type:"number"},
{name: "entryName", type:"string"},
{name: "clickBeforeImg", type:"string"},
{name: "clickAfterImg", type:"string"},
{name: "url", type:"string"},
{name: "platform", type:"string"},
{name: "orderBy", type:"string"},
{name: "status", type:"string"},
{name: "zipUrl", type:"string"},
{name: "channelId", type:"string"},
{name: "gender", type:"string"}
]
},
{//更改入口状态
route: '/operations/entrance/publishEntrance',
method: 'POST',
url: '/entrance/publishEntrance',
params: [
{name: "id", type: "number"},
{name: "status", type: "string"}
]
}
];