Showing
5 changed files
with
148 additions
and
53 deletions
1 | module.exports = function (app){ | 1 | module.exports = function (app){ |
2 | - app.get("/erpproduct/brands/edit/:brandId", "shop.Edit", function (req,res){ | ||
3 | - this.$extend={ | ||
4 | - action: '/brand/edit' | ||
5 | - } | ||
6 | - }); | 2 | + app.get("/operations/helpcategory/index", "help.Category"); |
3 | + | ||
4 | + //所有帮助分类列表 | ||
5 | + app.post("/operations/helpcategory/getAllHelpCategory","helpCategory_getAllHelpCategory"); | ||
6 | + | ||
7 | + //添加帮助分类 | ||
8 | + app.post("/operations/helpcategory/addCategory","helpCategory_addCategory"); | ||
9 | + | ||
10 | + //保存修改帮助分类 | ||
11 | + app.post("/operations/helpcategory/updateHelpCategory","helpCategory_updateHelpCategory"); | ||
12 | + | ||
13 | + //删除帮助分类 | ||
14 | + app.post("/operations/helpcategory/deleteHelpCategory","helpCategory_deleteHelpCategory"); | ||
15 | + | ||
16 | + //帮助分类详情 | ||
17 | + app.post("/operations/helpcategory/getCategoryListByPid","helpCategory_getCategoryListByPid"); | ||
7 | } | 18 | } |
8 | 19 |
1 | module.exports = function (app){ | 1 | module.exports = function (app){ |
2 | - app.get("/operations/helpcategory/index", "shop.Edit", function (req,res){ | ||
3 | - this.$extend={ | ||
4 | - action: '/brand/edit' | ||
5 | - } | ||
6 | - }); | 2 | + app.get("/operations/helpcontent/index", "help.Content"); |
3 | + | ||
4 | + //帮助内容列表 | ||
5 | + app.post("/operations/helpcontent/getAllHelpContent","helpContent_getAllHelpContent"); | ||
6 | + | ||
7 | + //添加帮助内容 | ||
8 | + app.post("/operations/helpcontent/addHelpContent","helpContent_addHelpContent"); | ||
9 | + | ||
10 | + //保存编辑帮助内容 | ||
11 | + app.post("/operations/helpcontent/updateHelpContent","helpContent_updateHelpContent"); | ||
12 | + | ||
13 | + //删除帮助内容 | ||
14 | + app.post("/operations/helpcontent/deleteHelpContent","helpContent_deleteHelpContent"); | ||
15 | + | ||
16 | + //帮助内容详情 | ||
17 | + app.post("/operations/helpcontent/getHelpContentByCategoryId","helpContent_getHelpContentByCategoryId"); | ||
18 | + | ||
19 | + //二级帮助分类 | ||
20 | + app.post("/operations/helpcontent/getSecondCategoryList","helpContent_getSecondCategoryList"); | ||
21 | + | ||
22 | + //查询所有帮助分类 | ||
23 | + app.post("/operations/helpcontent/getAllHelpCategory","helpContent_getAllHelpCategory"); | ||
24 | + | ||
25 | + //查询帮助分类 | ||
26 | + app.post("/operations/helpcontent/getHelpCategory","helpContent_getHelpCategory"); | ||
7 | } | 27 | } |
1 | module.exports= { | 1 | module.exports= { |
2 | namespace: "helpCategory", | 2 | namespace: "helpCategory", |
3 | apis: { | 3 | apis: { |
4 | - | 4 | + getAllHelpCategory:{ |
5 | + title:"所有帮助分类列表", | ||
6 | + url:"/HelpCategoryRest/getAllHelpCategory", | ||
7 | + params:[] | ||
8 | + }, | ||
9 | + | ||
10 | + addCategory:{ | ||
11 | + title:"添加帮助分类", | ||
12 | + url:"/HelpCategoryRest/addCategory", | ||
13 | + params:[ | ||
14 | + {name: 'categoryName', type: 'String'}, | ||
15 | + {name: 'parentId', type: 'Number'}, | ||
16 | + {name: 'platform', type: 'String'} | ||
17 | + ] | ||
18 | + }, | ||
19 | + | ||
20 | + updateHelpCategory:{ | ||
21 | + title:"保存修改帮助分类", | ||
22 | + url:"/HelpCategoryRest/updateHelpCategory", | ||
23 | + params:[ | ||
24 | + {name: 'id', type: 'Number'}, | ||
25 | + {name: 'categoryName', type: 'String'}, | ||
26 | + {name: 'parentId', type: 'Number'}, | ||
27 | + {name: 'platform', type: 'String'} | ||
28 | + ] | ||
29 | + }, | ||
30 | + | ||
31 | + deleteHelpCategory:{ | ||
32 | + title:"删除帮助分类", | ||
33 | + url:"/HelpCategoryRest/deleteHelpCategory", | ||
34 | + params:[ | ||
35 | + {name: 'id', type: 'Number'}, | ||
36 | + {name: 'parentId', type: 'Number'} | ||
37 | + ] | ||
38 | + }, | ||
39 | + | ||
40 | + getCategoryListByPid:{ | ||
41 | + title:"帮助分类详情", | ||
42 | + url:"/HelpCategoryRest/getCategoryListByPid", | ||
43 | + params:[ | ||
44 | + {name: 'parentId', type: 'Number'} | ||
45 | + ] | ||
46 | + } | ||
5 | } | 47 | } |
6 | } | 48 | } |
1 | module.exports= { | 1 | module.exports= { |
2 | namespace: "helpContent", | 2 | namespace: "helpContent", |
3 | apis: { | 3 | apis: { |
4 | + getAllHelpContent:{ | ||
5 | + title:"帮助内容列表", | ||
6 | + url:"/HelpContentRest/getAllHelpContent", | ||
7 | + params:[ | ||
8 | + {name: 'categoryId', type: 'Number'}, | ||
9 | + {name: 'platform', type: 'string'} | ||
10 | + ] | ||
11 | + }, | ||
4 | 12 | ||
13 | + addHelpContent:{ | ||
14 | + title:"添加帮助内容", | ||
15 | + url:"/HelpContentRest/addHelpContent", | ||
16 | + params:[ | ||
17 | + {name: 'title', type: 'string'}, | ||
18 | + {name: 'categoryId', type: 'Number'}, | ||
19 | + {name: 'content', type: 'string'}, | ||
20 | + {name: 'platform', type: 'string'} | ||
21 | + ] | ||
22 | + }, | ||
23 | + | ||
24 | + updateHelpContent:{ | ||
25 | + title:"保存编辑帮助内容", | ||
26 | + url:"/HelpContentRest/updateHelpContent", | ||
27 | + params:[ | ||
28 | + {name: 'id', type: 'Number'}, | ||
29 | + {name: 'title', type: 'string'}, | ||
30 | + {name: 'categoryId', type: 'Number'}, | ||
31 | + {name: 'content', type: 'string'}, | ||
32 | + {name: 'platform', type: 'string'} | ||
33 | + ] | ||
34 | + }, | ||
35 | + | ||
36 | + deleteHelpContent:{ | ||
37 | + title:"删除帮助内容", | ||
38 | + url:"/HelpContentRest/deleteHelpContent", | ||
39 | + params:[ | ||
40 | + {name: 'id', type: 'Number'} | ||
41 | + ] | ||
42 | + }, | ||
43 | + | ||
44 | + getHelpContentByCategoryId:{ | ||
45 | + title:"帮助内容详情", | ||
46 | + url:"/HelpContentRest/getHelpContentByCategoryId", | ||
47 | + params:[ | ||
48 | + {name: 'categoryId', type: 'Number'} | ||
49 | + ] | ||
50 | + }, | ||
51 | + | ||
52 | + getSecondCategoryList:{ | ||
53 | + title:"二级帮助分类", | ||
54 | + url:"/HelpCategoryRest/getSecondCategoryList", | ||
55 | + params:[] | ||
56 | + }, | ||
57 | + | ||
58 | + getAllHelpCategory:{ | ||
59 | + title:"查询所有帮助分类", | ||
60 | + url:"/HelpCategoryRest/getAllHelpCategory", | ||
61 | + params:[] | ||
62 | + }, | ||
63 | + | ||
64 | + getHelpCategory:{ | ||
65 | + title:"查询帮助分类", | ||
66 | + url:"/HelpCategoryRest/getHelpCategory", | ||
67 | + params:[] | ||
68 | + } | ||
5 | } | 69 | } |
6 | } | 70 | } |
code/apps/help/views/blackName.html
deleted
100644 → 0
1 | -<div class="pageheader"> | ||
2 | - <div class="media"> | ||
3 | - <div class="pageicon pull-left"> | ||
4 | - <i class="fa fa-th-list"></i> | ||
5 | - </div> | ||
6 | - <div class="media-body"> | ||
7 | - <ul class="breadcrumb"> | ||
8 | - <li><a href=""><i class="glyphicon glyphicon-home"></i></a></li> | ||
9 | - <li><a href="">客服管理</a></li> | ||
10 | - <li>黑名单限制</li> | ||
11 | - </ul> | ||
12 | - | ||
13 | - <div> | ||
14 | - <div style="width: 30%;float: left;"> | ||
15 | - <h4>黑名单限制</h4> | ||
16 | - </div> | ||
17 | - </div> | ||
18 | - </div> | ||
19 | - </div> | ||
20 | -</div> | ||
21 | - | ||
22 | - | ||
23 | -<div class="contentpanel"> | ||
24 | - <div class="panel panel-default" style="margin-bottom:10px;"> | ||
25 | - <div class="panel-body"> | ||
26 | - <div class="row"> | ||
27 | - | ||
28 | - <div class="panel-col-2"> | ||
29 | - <input placeholder="请输入用户uid" id="uid" class="form-control"> | ||
30 | - <a id="dismiss" href="javascript:;" class="btn btn-info">解除</a> | ||
31 | - | ||
32 | - </div> | ||
33 | - | ||
34 | - | ||
35 | - </div> | ||
36 | - </div> | ||
37 | - </div> | ||
38 | - <div class="panel panel-primary-head"> | ||
39 | - <div class="dataTab_wrapper" id="basicTab"></div> | ||
40 | - <div class="dataTab_wrapper" id="basicTable" ></div> | ||
41 | - </div> | ||
42 | -</div> |
-
Please register or login to post a comment