shop.shopDecoration.js 2.65 KB
module.exports = function (app) {

    /******************************店铺管理列表*************************************/

    app.get("/supplier/shop/decoration", "shop.DecorationList", function (req,res){
		this.$extend={
            moduleName:"店铺管理",
            pageName:"店铺装修管理"
        };
	});

    //店铺列表
    app.post("/shop/ShopsDecoratorRest/findShopsDecorator","shopDecoration_findShopsDecorator");

    //yoho关店
    app.post("/supplier/store/closeShops","shopDecoration_closeShops");

    //yoho开店
    app.post("/supplier/store/openShops","shopDecoration_openShops");

    //blk关店
    app.post("/supplier/store/closeBlkShops","shopDecoration_closeBlkShops");

    //blk开店
    app.post("/supplier/store/openBlkShops","shopDecoration_openBlkShops");

    /******************************yoho装修*************************************/

    //yoho店铺装修,编辑,查看,审核
    app.get("/supplier/store/decorationDetail/:shopsId/:shopType/:operate/", "shop.Decoration");

    //yoho店铺装修详情
    app.post("/shop/ShopsDecoratorRest/findShopsDecoratorDetail","shopDecoration_findShopsDecoratorDetail");

    //yoho店铺装修保存,提交审核
    app.post("/shop/ShopsDecoratorRest/saveShopsDecorator","shopDecoration_saveShopsDecorator");

    //热销
    app.post("/shop/ShopsDecoratorRest/findHotProductList","shopDecoration_findHotProductList");

    //最新
    app.post("/shop/ShopsDecoratorRest/findNewProductList","shopDecoration_findNewProductList");

    // 根据 SKN 查询商品
    app.post("/shop/ShopsDecoratorRest/findProductBySKN","shopDecoration_findProductBySKN");

    /******************************BLK装修*************************************/

    //blk店铺装修编辑
    app.get("/shop/decoration/blkEdit/:shopsId", "shop.DecorationBLK", "shopDecoration_findBlkShopsDecoratorDetail", function (data,req,res){
        data.operation = 1;
        return data;
    });

    //blk店铺装修查看
    app.get("/shop/decoration/blkView/:shopsId", "shop.DecorationBLK", "shopDecoration_findBlkShopsDecoratorDetail", function (data,req,res){
        data.operation = 0;
        return data;
    });

    //blk店铺装修审核
    app.get("/shop/decoration/blkCheck/:shopsId", "shop.DecorationBLK", "shopDecoration_findBlkShopsDecoratorDetail", function (data,req,res){
        data.operation = 2;
        return data;
    });

    //BLK店铺装修保存,提交审核
    app.post("/shop/decoration/saveBlkShopsDecorator","shopDecoration_saveBlkShopsDecorator");

    //获取店铺下的BLK商品
    app.post("/shop/decoration/findBlkProductByShopsId","shopDecoration_findBlkProductByShopsId");

}