shop.shopDecoration.js
2.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
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");
}