shopAdd.js 1.24 KB
module.exports = function (app){
    app.get("/supplier/store/index", "shop.Index", function (req,res){
        this.$extend={
            gridurl:'/supplier/store/indexPage',
            authority:'{"btn":false,"info":"info","create":true,"operationStatus":1,"checkStatusArr":"100,200,900"}',
            add:true,
            pagetitle:{
                level1title:"店铺管理",
                level2title:"创建店铺管理",
                level3title:"创建店铺列表"
            },
            searchStatus:[
                {value:"100",name:"暂存"},
                {value:"200",name:"待审核"},
                {value:"900",name:"驳回"}
            ]
        };
    });

    app.get("/supplier/store/update/:shopsId", "shop.Edit", function (req,res){
        this.$extend={
            pageTitel:"修改店铺",
            action:'/store/update'
        }
    });
    
    app.get("/supplier/store/info/:shopsId", "shop.Edit", function (req,res){
        this.$extend={
            pageTitel:"创建店铺",
            action:'/store/add',
            data:{
                shopId:0
            }
        }
    });

    app.get("/supplier/store/add", "shop.Info");
    
    //添加店铺
    app.post("/store/add","shopAdd_addShops");
}