couponActivity.js
1.21 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
/**
* Created by ty on 2016/6/23.
* 优惠券活动
*/
module.exports=function(app) {
/*优惠券活动主界面*/
app.get("/couponActivity/index","operations.couponActivity.Index", function () {
this.$extend = {
moduleName: "优惠券活动管理",
pageName: "活动列表"
}
});
/*优惠券活动编辑界面*/
app.get("/couponActivity/index/update/:id","operations.couponActivity.Edit", function () {
this.$extend = {
moduleName: "优惠券活动管理",
pageName: "编辑活动"
}
});
/*优惠券活动添加界面*/
app.get("/couponActivity/index/add","operations.couponActivity.Add", function () {
this.$extend = {
moduleName: "优惠券活动管理",
pageName: "添加活动"
}
});
/*api请求数据*/
app.post("/couponActivity/queryList","couponActivity_queryList");
/*修改优惠券活动*/
app.post("/couponActivity/update","couponActivity_update");
/*单个优惠券活动查询*/
app.post("/couponActivity/queryById","couponActivity_queryById");
/*新增优惠券活动*/
app.post("/couponActivity/add","couponActivity_add");
}