promotion.js 1.39 KB
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
        };
        console.log("促销编辑页 rs:"+rs+" rs.data is "+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");

    //参数-促销条件
    
    //参数-促销操作

    //参数- 促销限制

    //参数-互斥促销

    //参数-促销显示

}