shopAdd.js
1.24 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
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");
}