marketing.CouponSend.js
2.18 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
/**
* Created by yoho on 2016/6/20.
*/
module.exports = function (app) {
/*************************************发券管理*************************************/
//列表页
app.get("/market/couponSend/index", "marketing.CouponSend.Index",function(){
this.$extend={
moduleName:'营销管理',
pageName:'发券管理'
}
});
//优惠券列表
app.post("/coupon/querySendCouponList", "CouponSend_querySendCouponList");
//单个优惠券
//app.post("/coupon/getCouponDetailById", "CouponSend_getCouponDetailById");
//发券页
app.get("/market/couponSend/send/:param", "marketing.CouponSend.Send",function(){
this.$extend={
moduleName:'营销管理',
pageName:'发券'
}
});
//手工发券
app.post("/coupon/sendCoupon", "CouponSend_sendCoupon");
//文件上传重发
app.post("/couponSendInfo/sendAgainById", "CouponSend_sendAgainById");
//发放记录页
app.get("/market/couponSend/sendHistory/:param", "marketing.CouponSend.SendHistory",function(){
this.$extend={
moduleName:'营销管理',
pageName:'发放记录'
}
});
//使用记录页
app.get("/market/couponSend/useHistory/:param", "marketing.CouponSend.UseHistory",function(){
this.$extend={
moduleName:'营销管理',
pageName:'使用记录'
}
});
//查询用户券列表
//app.post("/couponLogs/queryUserCouponLogsList", "CouponSend_queryUserCouponLogsList");
//查询文件发券列表
app.post("/couponSendInfo/getListByCouponId", "CouponSend_getListByCouponId");
//公开券页面
app.get("/market/couponSend/pCouponSn/:param", "marketing.CouponSend.PublicCoupon",function(){
this.$extend={
moduleName:'营销管理',
pageName:'公开券'
}
});
//公开券列表
app.post("/pCouponSn/queryCouponSnList", "CouponSend_queryCouponSnList");
//发券异常列表查询
app.post("/couponSendError/query", "CouponSend_couponSendError");
//重新请求发券
app.post("/couponSendError/retrySend", "CouponSend_retrySend");
};