operations.webshare.js
1.38 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
/**
* Created by ty on 2016/7/6.
* 活动分享管理
*/
module.exports = function (app) {
/*活动分享管理首页*/
app.get("/operations/webshare/index", "operations.webshare.Index", function () {
this.$extend = {
moduleName: "活动分享管理",
pageName: "活动分享列表管理"
}
});
/*添加活动分享页面*/
app.get("/operations/webshare/add", "operations.webshare.Edit", function () {
this.$extend = {
moduleName: "活动分享管理",
pageName: "添加活动分享",
url: "/webShare/addWebShare"
}
});
/*编辑活动分享*/
app.get("/operations/webshare/edit/:id", "operations.webshare.Edit", function (req) {
this.$extend = {
moduleName: "活动分享管理",
pageName: "编辑活动分享",
id: req.params.id,
url: "/webShare/updateWebShare"
}
});
/*首页列表*/
app.post("/webShare/getWebShareList", "webshare_getWebShareList");
/*新增活动分享 [注意在shareImage加上客户端需要的imageView参数]*/
app.post("/webShare/addWebShare", "webshare_addWebShare");
/*更新活动分享*/
app.post("/webShare/updateWebShare", "webshare_updateWebShare");
/*根据id查询数据*/
app.post("/webShare/selectWebShare", "webshare_selectWebShare");
}