...
|
...
|
@@ -6,73 +6,73 @@ |
|
|
module.exports=function(app) {
|
|
|
|
|
|
/*活动模板首页*/
|
|
|
// app.get("/operations/activitytemplate/index","operations.activitytemplate.Index", function () {
|
|
|
// this.$extend = {
|
|
|
// moduleName: "活动模板管理",
|
|
|
// pageName: "活动模板管理"
|
|
|
// }
|
|
|
// });
|
|
|
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/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/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.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/selectTemplateList","activitytemplate_selectTemplateList");
|
|
|
|
|
|
// /*添加模板接口*/
|
|
|
// app.post("/activityTemplate/addTemplate","activitytemplate_addTemplate");
|
|
|
/*添加模板接口*/
|
|
|
app.post("/activityTemplate/addTemplate","activitytemplate_addTemplate");
|
|
|
|
|
|
// /*获取单个模板接口*/
|
|
|
// app.post("/activityTemplate/getTemplate","activitytemplate_getTemplate");
|
|
|
/*获取单个模板接口*/
|
|
|
app.post("/activityTemplate/getTemplate","activitytemplate_getTemplate");
|
|
|
|
|
|
// /*更新模板接口*/
|
|
|
// app.post("/activityTemplate/updateTemplate","activitytemplate_updateTemplate");
|
|
|
/*更新模板接口*/
|
|
|
app.post("/activityTemplate/updateTemplate","activitytemplate_updateTemplate");
|
|
|
|
|
|
// /*开启模板接口*/
|
|
|
// app.post("/activityTemplate/publishTemplate","activitytemplate_publishTemplate");
|
|
|
/*开启模板接口*/
|
|
|
app.post("/activityTemplate/publishTemplate","activitytemplate_publishTemplate");
|
|
|
|
|
|
// /*关闭模板接口*/
|
|
|
// app.post("/activityTemplate/closeTemplate","activitytemplate_closeTemplate");
|
|
|
/*关闭模板接口*/
|
|
|
app.post("/activityTemplate/closeTemplate","activitytemplate_closeTemplate");
|
|
|
|
|
|
// /*根据条件查询活动商品列表接口*/
|
|
|
// app.post("/activityTemplate/getProductListByCondition","activitytemplate_getProductListByCondition");
|
|
|
/*根据条件查询活动商品列表接口*/
|
|
|
app.post("/activityTemplate/getProductListByCondition","activitytemplate_getProductListByCondition");
|
|
|
|
|
|
// /*插入活动商品信息接口*/
|
|
|
// app.post("/activityTemplate/insertProduct","activitytemplate_insertProduct");
|
|
|
/*插入活动商品信息接口*/
|
|
|
app.post("/activityTemplate/insertProduct","activitytemplate_insertProduct");
|
|
|
|
|
|
// /*更新商品信息接口*/
|
|
|
// app.post("/activityTemplate/updateProduct","activitytemplate_updateProduct");
|
|
|
/*更新商品信息接口*/
|
|
|
app.post("/activityTemplate/updateProduct","activitytemplate_updateProduct");
|
|
|
|
|
|
// /*删除商品信息接口*/
|
|
|
// app.post("/activityTemplate/delOneProduct","activitytemplate_delOneProduct");
|
|
|
/*删除商品信息接口*/
|
|
|
app.post("/activityTemplate/delOneProduct","activitytemplate_delOneProduct");
|
|
|
} |
...
|
...
|
|