promotion.js
1.32 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
module.exports = function (app){
app.get("/promotionInfo/index", "customService.promotion.Index", function (req,res){
this.$extend={
moduleName:"营销管理",
pageName:"促销管理"
}
});
//新增促销基本信息
app.get("/promotionInfo/addNew", "customService.promotion.Add", function (req,res){
this.$extend={
moduleName:"营销管理",
pageName:"促销编辑"
}
});
//促销编辑页
app.get("/promotionInfo/edit/:param", "customService.promotion.Edit","promotion_getPromotionInfo", function (rs,req,res){
this.$extend={
moduleName:"营销管理",
pageName:"促销编辑",
action: '/promotion/update',
data:rs.data
};
return rs.data;
});
//促销列表
app.post("/promotionInfo/list","promotion_getPromotionInfoList");
//新增促销信息
app.post("/promotionInfo/add","promotion_addPromotionInfo");
//编辑促销信息
app.post("/promotionInfo/update","promotion_updatePromotionInfo");
//删除促销信息
app.post("/promotionInfo/delete","promotion_deletePromotionInfo");
//参数-促销条件
//参数-促销操作
//参数- 促销限制
//参数-互斥促销
//参数-促销显示
}