Showing
5 changed files
with
187 additions
and
0 deletions
1 | +/** | ||
2 | + * Created by ty on 2016/7/4. | ||
3 | + * 活动模板管理 | ||
4 | + */ | ||
5 | + | ||
6 | +module.exports=function(app) { | ||
7 | + | ||
8 | + /*活动模板首页*/ | ||
9 | + app.get("/operations/activitytemplate/index","operations.activitytemplate.Index", function () { | ||
10 | + this.$extend = { | ||
11 | + moduleName: "活动模板管理", | ||
12 | + pageName: "活动模板管理" | ||
13 | + } | ||
14 | + }); | ||
15 | + | ||
16 | + /*活动模板添加页*/ | ||
17 | + app.get("/operations/activitytemplate/add","operations.activitytemplate.Edit", "resourceManage_getUrlAction", function (response) { | ||
18 | + this.$extend = { | ||
19 | + moduleName: "活动模板管理", | ||
20 | + pageName: "添加活动模板", | ||
21 | + type: "add", | ||
22 | + url: "/activityTemplate/addTemplate", | ||
23 | + data: response.data | ||
24 | + } | ||
25 | + }); | ||
26 | + | ||
27 | + /*活动模板编辑*/ | ||
28 | + app.get("/operations/activitytemplate/edit/:id","operations.activitytemplate.Edit","resourceManage_getUrlAction", function (response,req) { | ||
29 | + this.$extend = { | ||
30 | + moduleName: "活动模板管理", | ||
31 | + pageName: "编辑活动模板", | ||
32 | + type: "edit", | ||
33 | + id: req.params.id, | ||
34 | + url: "/activityTemplate/updateTemplate", | ||
35 | + data: response.data | ||
36 | + } | ||
37 | + }); | ||
38 | + | ||
39 | + /*活动模板编辑*/ | ||
40 | + app.get("/operations/activitytemplate/product/:id","operations.activitytemplate.Product", function (req) { | ||
41 | + this.$extend = { | ||
42 | + moduleName: "模板商品管理", | ||
43 | + pageName: "模板商品管理", | ||
44 | + id: req.params.id, | ||
45 | + url: req.originalUrl | ||
46 | + } | ||
47 | + }); | ||
48 | + | ||
49 | + /*查询模板列表接口*/ | ||
50 | + app.post("/activityTemplate/selectTemplateList","activitytemplate_selectTemplateList"); | ||
51 | + | ||
52 | + /*添加模板接口*/ | ||
53 | + app.post("/activityTemplate/addTemplate","activitytemplate_addTemplate"); | ||
54 | + | ||
55 | + /*获取单个模板接口*/ | ||
56 | + app.post("/activityTemplate/getTemplate","activitytemplate_getTemplate"); | ||
57 | + | ||
58 | + /*更新模板接口*/ | ||
59 | + app.post("/activityTemplate/updateTemplate","activitytemplate_updateTemplate"); | ||
60 | + | ||
61 | + /*开启模板接口*/ | ||
62 | + app.post("/activityTemplate/publishTemplate","activitytemplate_publishTemplate"); | ||
63 | + | ||
64 | + /*关闭模板接口*/ | ||
65 | + app.post("/activityTemplate/closeTemplate","activitytemplate_closeTemplate"); | ||
66 | + | ||
67 | + /*根据条件查询活动商品列表接口*/ | ||
68 | + app.post("/activityTemplate/getProductListByCondition","activitytemplate_getProductListByCondition"); | ||
69 | + | ||
70 | + /*插入活动商品信息接口*/ | ||
71 | + app.post("/activityTemplate/insertProduct","activitytemplate_insertProduct"); | ||
72 | + | ||
73 | + /*更新商品信息接口*/ | ||
74 | + app.post("/activityTemplate/updateProduct","activitytemplate_updateProduct"); | ||
75 | + | ||
76 | + /*删除商品信息接口*/ | ||
77 | + app.post("/activityTemplate/delOneProduct","activitytemplate_delOneProduct"); | ||
78 | +} |
server/controllers/operations.icon.js
0 → 100644
1 | +/** | ||
2 | + * Created by ty on 2016/7/5. | ||
3 | + * app图标管理 | ||
4 | + */ | ||
5 | + | ||
6 | +module.exports=function(app) { | ||
7 | + | ||
8 | + /*图标管理首页*/ | ||
9 | + app.get("/operations/icon/index","operations.icon.Index", function () { | ||
10 | + this.$extend = { | ||
11 | + moduleName: "图标管理", | ||
12 | + pageName: "图标管理" | ||
13 | + } | ||
14 | + }); | ||
15 | + | ||
16 | + /*列表*/ | ||
17 | + app.post("/icon/getList","icon_getList"); | ||
18 | + | ||
19 | + /*添加图标*/ | ||
20 | + app.post("/icon/addIcon","icon_addIcon"); | ||
21 | + | ||
22 | + /*根据ID获取图标信息*/ | ||
23 | + app.post("/icon/getOneIcon","icon_getOneIcon"); | ||
24 | + | ||
25 | + /*更新图标信息*/ | ||
26 | + app.post("/icon/updateIcon","icon_updateIcon"); | ||
27 | + | ||
28 | + /*开启图标入口*/ | ||
29 | + app.post("/icon/publishIcon","icon_publishIcon"); | ||
30 | + | ||
31 | + /*关闭图标信息入口*/ | ||
32 | + app.post("/icon/closeIcon","icon_closeIcon"); | ||
33 | +} |
server/controllers/operations.webshare.js
0 → 100644
1 | +/** | ||
2 | + * Created by ty on 2016/7/6. | ||
3 | + * 活动分享管理 | ||
4 | + */ | ||
5 | + | ||
6 | +module.exports = function (app) { | ||
7 | + | ||
8 | + /*活动分享管理首页*/ | ||
9 | + app.get("/operations/webshare/index", "operations.webshare.Index", function () { | ||
10 | + this.$extend = { | ||
11 | + moduleName: "活动分享管理", | ||
12 | + pageName: "活动分享列表管理" | ||
13 | + } | ||
14 | + }); | ||
15 | + | ||
16 | + /*添加活动分享页面*/ | ||
17 | + app.get("/operations/webshare/add", "operations.webshare.Edit", function () { | ||
18 | + this.$extend = { | ||
19 | + moduleName: "活动分享管理", | ||
20 | + pageName: "添加活动分享", | ||
21 | + url: "/webShare/addWebShare" | ||
22 | + } | ||
23 | + }); | ||
24 | + | ||
25 | + /*编辑活动分享*/ | ||
26 | + app.get("/operations/webshare/edit/:id", "operations.webshare.Edit", function (req) { | ||
27 | + this.$extend = { | ||
28 | + moduleName: "活动分享管理", | ||
29 | + pageName: "编辑活动分享", | ||
30 | + id: req.params.id, | ||
31 | + url: "/webShare/updateWebShare" | ||
32 | + } | ||
33 | + }); | ||
34 | + | ||
35 | + /*首页列表*/ | ||
36 | + app.post("/webShare/getWebShareList", "webshare_getWebShareList"); | ||
37 | + | ||
38 | + /*新增活动分享 [注意在shareImage加上客户端需要的imageView参数]*/ | ||
39 | + app.post("/webShare/addWebShare", "webshare_addWebShare"); | ||
40 | + | ||
41 | + /*更新活动分享*/ | ||
42 | + app.post("/webShare/updateWebShare", "webshare_updateWebShare"); | ||
43 | + | ||
44 | + /*根据id查询数据*/ | ||
45 | + app.post("/webShare/selectWebShare", "webshare_selectWebShare"); | ||
46 | +} |
server/controllers/operations.ziplist.js
0 → 100644
1 | +/** | ||
2 | + * Created by ty on 2016/7/5. | ||
3 | + * app图片包 | ||
4 | + */ | ||
5 | + | ||
6 | +module.exports=function(app) { | ||
7 | + | ||
8 | + /*图片包首页*/ | ||
9 | + app.get("/operations/icon/ziplist","operations.ziplist.Index", function () { | ||
10 | + this.$extend = { | ||
11 | + moduleName: "图片包管理", | ||
12 | + pageName: "图片包管理" | ||
13 | + } | ||
14 | + }); | ||
15 | + | ||
16 | + /*列表*/ | ||
17 | + app.post("/icon/getZipList","ziplist_getZipList"); | ||
18 | + | ||
19 | + /*上传图片包*/ | ||
20 | + app.post("/icon/addZip","ziplist_addZip"); | ||
21 | + | ||
22 | + /*启用图片包*/ | ||
23 | + app.post("/icon/publishZip","ziplist_publishZip"); | ||
24 | + | ||
25 | + /*关闭图片包*/ | ||
26 | + app.post("/icon/closeZip","ziplist_closeZip"); | ||
27 | +} |
@@ -57,4 +57,7 @@ module.exports=function(app) { | @@ -57,4 +57,7 @@ module.exports=function(app) { | ||
57 | 57 | ||
58 | /*根据 ids 查询活动*/ | 58 | /*根据 ids 查询活动*/ |
59 | app.post("/resources/querySpecialActivityByIDs","resourceManage_querySpecialActivityByIDs"); | 59 | app.post("/resources/querySpecialActivityByIDs","resourceManage_querySpecialActivityByIDs"); |
60 | + | ||
61 | + /*验证领券码*/ | ||
62 | + app.post("/coupon/batchCheckCoupons","resourceManage_batchCheckCoupons"); | ||
60 | } | 63 | } |
-
Please register or login to post a comment