operations.activitytemplate.js
2.67 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
71
72
73
74
75
76
77
78
/**
* Created by ty on 2016/7/4.
* 活动模板管理
*/
module.exports=function(app) {
/*活动模板首页*/
app.get("/operations/activitytemplate/index","operations.activitytemplate.Index", function () {
this.$extend = {
moduleName: "活动模板管理",
pageName: "活动模板管理"
}
});
/*活动模板添加页*/
app.get("/operations/activitytemplate/add","operations.activitytemplate.Edit", "resourceManage_getUrlAction", function (response) {
this.$extend = {
moduleName: "活动模板管理",
pageName: "添加活动模板",
type: "add",
url: "/activityTemplate/addTemplate",
data: response.data
}
});
/*活动模板编辑*/
app.get("/operations/activitytemplate/edit/:id","operations.activitytemplate.Edit","resourceManage_getUrlAction", function (response,req) {
this.$extend = {
moduleName: "活动模板管理",
pageName: "编辑活动模板",
type: "edit",
id: req.params.id,
url: "/activityTemplate/updateTemplate",
data: response.data
}
});
/*活动模板编辑*/
app.get("/operations/activitytemplate/product/:id","operations.activitytemplate.Product", function (req) {
this.$extend = {
moduleName: "模板商品管理",
pageName: "模板商品管理",
id: req.params.id,
url: req.originalUrl
}
});
/*查询模板列表接口*/
app.post("/activityTemplate/selectTemplateList","activitytemplate_selectTemplateList");
/*添加模板接口*/
app.post("/activityTemplate/addTemplate","activitytemplate_addTemplate");
/*获取单个模板接口*/
app.post("/activityTemplate/getTemplate","activitytemplate_getTemplate");
/*更新模板接口*/
app.post("/activityTemplate/updateTemplate","activitytemplate_updateTemplate");
/*开启模板接口*/
app.post("/activityTemplate/publishTemplate","activitytemplate_publishTemplate");
/*关闭模板接口*/
app.post("/activityTemplate/closeTemplate","activitytemplate_closeTemplate");
/*根据条件查询活动商品列表接口*/
app.post("/activityTemplate/getProductListByCondition","activitytemplate_getProductListByCondition");
/*插入活动商品信息接口*/
app.post("/activityTemplate/insertProduct","activitytemplate_insertProduct");
/*更新商品信息接口*/
app.post("/activityTemplate/updateProduct","activitytemplate_updateProduct");
/*删除商品信息接口*/
app.post("/activityTemplate/delOneProduct","activitytemplate_delOneProduct");
}