Showing
15 changed files
with
387 additions
and
3 deletions
@@ -26,7 +26,11 @@ var urlObj = { | @@ -26,7 +26,11 @@ var urlObj = { | ||
26 | 'getByCategoryId': '/operations/helpcontent/getSecondCategoryList', | 26 | 'getByCategoryId': '/operations/helpcontent/getSecondCategoryList', |
27 | 'getAllHelpCategory': '/operations/helpcontent/getAllHelpCategory', | 27 | 'getAllHelpCategory': '/operations/helpcontent/getAllHelpCategory', |
28 | 'getHelpCategory': '/operations/helpcontent/getHelpCategory', | 28 | 'getHelpCategory': '/operations/helpcontent/getHelpCategory', |
29 | - 'queryAll4Select': '/goods/brandSeries/queryAll4Select' //品牌款型系列 | 29 | + 'queryAll4Select': '/goods/brandSeries/queryAll4Select', //品牌款型系列 |
30 | + | ||
31 | + // 逛 | ||
32 | + 'guangGetAuthorList':'/guang/article/getAuthorList', // 逛-获取作者 | ||
33 | + 'guangGetSortList':'/guang/article/getSortList', // 逛-获取作者 | ||
30 | }; | 34 | }; |
31 | 35 | ||
32 | var dropDown = function(option) { | 36 | var dropDown = function(option) { |
client/js/guang/articleCategoryManager.js
0 → 100644
client/js/guang/authorManager.js
0 → 100644
client/js/guang/commentManager.js
0 → 100644
client/js/guang/infoManager.js
0 → 100644
1 | +/** | ||
2 | + * Created by wangqianjun on 16/3/22. | ||
3 | + */ | ||
4 | +var $ = require('jquery'); | ||
5 | + common = require('../common/common'); | ||
6 | + datepicker = require('../util/datepicker'); | ||
7 | + | ||
8 | +//下拉框 | ||
9 | +new common.dropDown({ | ||
10 | + el: "#articleGender" | ||
11 | +}); | ||
12 | + | ||
13 | +new common.dropDown({ | ||
14 | + el: "#authorId", | ||
15 | + ajax: 'guangGetAuthorList' | ||
16 | +}); | ||
17 | + | ||
18 | +new common.dropDown({ | ||
19 | + el: "#maxSortId", | ||
20 | + ajax: 'guangGetSortList' | ||
21 | +}); | ||
22 | + | ||
23 | +new common.dropDown({ | ||
24 | + el: "#status" | ||
25 | +}); | ||
26 | + | ||
27 | +new common.dropDown({ | ||
28 | + el: '#orderBy' | ||
29 | +}); | ||
30 | + | ||
31 | + | ||
32 | +//日期插件 | ||
33 | +$('.hasDatepicker').fdatepicker({ | ||
34 | + format: 'yyyy-mm-dd' | ||
35 | +}); | ||
36 | + | ||
37 | + | ||
38 | +var g = new common.grid({ | ||
39 | + el: '#basicTable', | ||
40 | + size: 10, | ||
41 | + parms: function() { | ||
42 | + | ||
43 | + return { | ||
44 | + articleTitle: common.util.__input('articleTitle'), | ||
45 | + articleGender: common.util.__input('articleGender'), | ||
46 | + authorId: common.util.__input('authorId'), | ||
47 | + maxSortId: common.util.__input('maxSortId'), | ||
48 | + status: common.util.__input('status'), | ||
49 | + orderBy: common.util.__input('orderBy'), | ||
50 | + startTime: common.util.__input('starttime'), | ||
51 | + endTime: common.util.__input('endtime'), | ||
52 | + }; | ||
53 | + }, | ||
54 | + columns: [{ | ||
55 | + display: 'ID', | ||
56 | + name: "id" | ||
57 | + }, { | ||
58 | + display: "缩略图", | ||
59 | + render: function(item) { | ||
60 | + return '<img src="' + item.coverImage + '" width="100" height="60"/>' | ||
61 | + } | ||
62 | + }, { | ||
63 | + display: '文章标题', | ||
64 | + name: "articleTitle" | ||
65 | + }, { | ||
66 | + display: '分类', | ||
67 | + name: "brandNameEn" | ||
68 | + }, { | ||
69 | + display: '性别', | ||
70 | + name: "articleGender" | ||
71 | + }, { | ||
72 | + display: '作者', | ||
73 | + name: "authorId" | ||
74 | + }, { | ||
75 | + display: '状态', | ||
76 | + name: "status" | ||
77 | + }, { | ||
78 | + display: "创建时间", | ||
79 | + | ||
80 | + render: function (item) { | ||
81 | + var t = new Date(item.createTime * 1000); | ||
82 | + var formatted = common.util.__dateFormat(t, "yyyy-MM-dd hh:mm:ss"); | ||
83 | + return "<p>" + formatted + "</p>"; | ||
84 | + } | ||
85 | + }, { | ||
86 | + display: "发布时间", | ||
87 | + | ||
88 | + render: function (item) { | ||
89 | + var t = new Date(item.publishTime * 1000); | ||
90 | + var formatted = common.util.__dateFormat(t, "yyyy-MM-dd hh:mm:ss"); | ||
91 | + return "<p>" + formatted + "</p>"; | ||
92 | + } | ||
93 | + },{ | ||
94 | + display: '操作', | ||
95 | + //} | ||
96 | + name: "status", | ||
97 | + render: function(items) { | ||
98 | + var HtmArr = []; | ||
99 | + | ||
100 | + if (items.status == 1) { | ||
101 | + HtmArr.push('<a data-index="' + items.__index + '" href="JavaScript:;" class="btn btn-warning btn-xs info-close">关闭</a>'); | ||
102 | + } else { | ||
103 | + HtmArr.push('<a data-index="' + items.__index + '" href="JavaScript:;" class="btn btn-warning btn-xs info-open">发布</a>'); | ||
104 | + } | ||
105 | + HtmArr.push('<a data-index="' + items.__index + '" href="JavaScript:;" class="btn btn-primary btn-xs info-time">定时</a>'); | ||
106 | + | ||
107 | + if (items.isRecommend == 1) { | ||
108 | + HtmArr.push('<a data-index="' + items.__index + '" href="JavaScript:;" class="btn btn-danger btn-xs info-recommend-cancel">取消推荐</a>'); | ||
109 | + } else { | ||
110 | + HtmArr.push('<a data-index="' + items.__index + '" href="JavaScript:;" class="btn btn-warning btn-xs info-recommend">推荐</a>'); | ||
111 | + | ||
112 | + } | ||
113 | + | ||
114 | + HtmArr.push('<a data-index="' + items.__index + '" href="JavaScript:;" class="btn btn-primary btn-xs info-modify">编辑</a>'); | ||
115 | + HtmArr.push('<a data-index="' + items.__index + '" href="JavaScript:;" class="btn btn-danger btn-xs info-del">删除</a>'); | ||
116 | + | ||
117 | + return HtmArr.join(''); | ||
118 | + } | ||
119 | + }] | ||
120 | +}) | ||
121 | +g.init('/guang/article/list'); | ||
122 | + | ||
123 | + | ||
124 | + | ||
125 | +// 按钮点击事件 | ||
126 | +$("#filter-btn").click(function() { | ||
127 | + g.reload(1); | ||
128 | +}); |
client/js/guang/tagCategoryManager.js
0 → 100644
client/js/guang/tagManager.js
0 → 100644
@@ -18,8 +18,8 @@ var config = { | @@ -18,8 +18,8 @@ var config = { | ||
18 | // domain: 'http://172.16.6.252:9080',//陈超 | 18 | // domain: 'http://172.16.6.252:9080',//陈超 |
19 | //domain: 'http://172.16.6.227:8088/platform', //玛丽 | 19 | //domain: 'http://172.16.6.227:8088/platform', //玛丽 |
20 | // domain: 'http://192.168.102.202:8088/platform', | 20 | // domain: 'http://192.168.102.202:8088/platform', |
21 | - //domain:'http://172.16.9.8:8080/yohobuy-platform-web',//葛超 | ||
22 | - domain: 'http://192.168.102.202:8088/platform', | 21 | + domain:'http://172.16.6.197:8080/yohobuy-platform-web',//葛超 |
22 | + //domain: 'http://192.168.102.202:8088/platform', | ||
23 | loggers: { | 23 | loggers: { |
24 | api: { | 24 | api: { |
25 | level: 'verbose', | 25 | level: 'verbose', |
server/interface/guang.js
0 → 100644
1 | +/** | ||
2 | + * Created by wangqianjun on 16/3/22. | ||
3 | + * Interface for Guang Model | ||
4 | + */ | ||
5 | + | ||
6 | +exports.domain =require('../config/common.js').domain; | ||
7 | +//【资讯管理】 | ||
8 | +exports.res = [ | ||
9 | + {//逛-> 资讯管理 空白页 | ||
10 | + route:'/guang/article/index', | ||
11 | + method:'GET', | ||
12 | + view:'pages/guang/infoManager', | ||
13 | + src: '/guang/infoManager', | ||
14 | + data:{ | ||
15 | + iscreate:true | ||
16 | + } | ||
17 | + }, { | ||
18 | + | ||
19 | + // 资讯管理列表数据 | ||
20 | + route:'/guang/article/list', | ||
21 | + method:'POST', | ||
22 | + url: '/guang/article/getList', | ||
23 | + params:[ | ||
24 | + {name: 'articleTitle',type: 'String'}, | ||
25 | + {name: 'articleGender',type: 'String'}, | ||
26 | + {name: 'authorId',type: 'Number'}, | ||
27 | + {name: 'maxSortId',type: 'Number'}, | ||
28 | + {name: 'status',type: 'Number'}, | ||
29 | + {name: 'orderBy',type: 'String'}, | ||
30 | + {name: 'startTime',type: 'String'}, | ||
31 | + {name: 'endTime',type: 'String'} | ||
32 | + ] | ||
33 | + }, { | ||
34 | + | ||
35 | + // 资讯管理-列表操作(修改、发布、关闭、推荐、取消推荐) | ||
36 | + route:'/guang/article/operation', | ||
37 | + method:'POST', | ||
38 | + url: '/guang/article/updateArticle', | ||
39 | + params:[ | ||
40 | + {name: 'id',type: 'Number'}, | ||
41 | + {name: 'articleTitle',type: 'String'}, | ||
42 | + {name: 'articleGender',type: 'String'}, | ||
43 | + {name: 'authorId',type: 'Number'}, | ||
44 | + {name: 'maxSortId',type: 'Number'}, | ||
45 | + {name: 'minSortId',type: 'Number'}, | ||
46 | + {name: 'articleSummary',type: 'String'}, | ||
47 | + {name: 'coverImage',type: 'String'}, | ||
48 | + {name: 'status',type: 'Number'}, | ||
49 | + {name: 'coverImageType',type: 'Number'}, | ||
50 | + {name: 'articleType',type: 'Number'}, | ||
51 | + {name: 'adsImgSize',type: 'String'}, | ||
52 | + {name: 'isRecommend',type: 'Number'}, | ||
53 | + ] | ||
54 | + }, | ||
55 | + | ||
56 | + | ||
57 | + | ||
58 | +//【文章分类管理】 | ||
59 | + | ||
60 | +//【标签管理】 | ||
61 | + | ||
62 | +//【标签分类管理】 | ||
63 | + | ||
64 | +//【评论管理】 | ||
65 | + | ||
66 | +//【作者管理】 | ||
67 | + | ||
68 | + | ||
69 | +// [下拉框调用的接口] | ||
70 | + {// 作者 | ||
71 | + route:'/guang/article/getAuthorList', | ||
72 | + method:'POST', | ||
73 | + url: '/guang/article/getAuthorList', | ||
74 | + params:[ | ||
75 | + {name: 'idName',type: 'String'}, | ||
76 | + ] | ||
77 | + }, | ||
78 | + | ||
79 | + {// 所有分类 | ||
80 | + route:'/guang/article/getSortList', | ||
81 | + method:'POST', | ||
82 | + url: '/guang/article/getSortList', | ||
83 | + | ||
84 | + }, | ||
85 | + | ||
86 | + | ||
87 | + | ||
88 | + | ||
89 | + | ||
90 | +]; | ||
91 | + | ||
92 | + |
server/views/pages/guang/authorManager.html
0 → 100644
server/views/pages/guang/commentManager.html
0 → 100644
server/views/pages/guang/infoManager.html
0 → 100644
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 | +<div class="contentpanel"> | ||
23 | + <div class="panel panel-default" style="margin-bottom:10px;"> | ||
24 | + <div class="panel-body"> | ||
25 | + <div class="row"> | ||
26 | + <div class="panel-col"> | ||
27 | + <input type="text" id="articleTitle" class="form-control" placeholder="输入关键字" style="height: 39px;"/> | ||
28 | + </div> | ||
29 | + | ||
30 | + <div class="panel-col"> | ||
31 | + <select id="articleGender" class="form-control"> | ||
32 | + <option value="-1">请选择性别</option> | ||
33 | + <option value="1">男</option> | ||
34 | + <option value="2">女</option> | ||
35 | + <option value="3">通用</option> | ||
36 | + | ||
37 | + </select> | ||
38 | + </div> | ||
39 | + | ||
40 | + <div class="panel-col"> | ||
41 | + <select id="authorId" class="form-control"> | ||
42 | + <option value="-1">请选择作者</option> | ||
43 | + </select> | ||
44 | + </div> | ||
45 | + <div class="panel-col"> | ||
46 | + <select id="maxSortId" class="form-control"> | ||
47 | + <option value="-1">请选择分类</option> | ||
48 | + </select> | ||
49 | + </div> | ||
50 | + <div class="panel-col"> | ||
51 | + <select id="status" class="form-control"> | ||
52 | + <option value="-1">请选择状态</option> | ||
53 | + <option value="1">已发布</option> | ||
54 | + <option value="0">未发布</option> | ||
55 | + <option value="-1">已关闭</option> | ||
56 | + | ||
57 | + </select> | ||
58 | + </div> | ||
59 | + | ||
60 | + <div class="panel-col"> | ||
61 | + <select id="orderBy" class="form-control"> | ||
62 | + <option value="-1">请选择时间方式</option> | ||
63 | + <option value="create_time">添加时间</option> | ||
64 | + <option value="publish_time">发布时间</option> | ||
65 | + </select> | ||
66 | + </div> | ||
67 | + | ||
68 | + <div class="panel-col2"> | ||
69 | + <input type="text" id="starttime" class="form-control panel-input hasDatepicker" name="start_time" placeholder="开始时间" value="" kl_vkbd_parsed="true"> | ||
70 | + </div> | ||
71 | + | ||
72 | + <div class="panel-col2"> | ||
73 | + <input type="text" id="endtime" class="form-control panel-input hasDatepicker" name="end_time" placeholder="结束时间" value="" kl_vkbd_parsed="true"> | ||
74 | + </div> | ||
75 | + | ||
76 | + <div class="panel-col"> | ||
77 | + <a id="filter-btn" href="javascript:;" class="btn btn-info">筛选</a> | ||
78 | + <a id="all-btn" href="" class="btn btn-info">全部</a> | ||
79 | + </div> | ||
80 | + | ||
81 | + | ||
82 | + | ||
83 | + </div> | ||
84 | + </div> | ||
85 | + </div> | ||
86 | + <div class="panel panel-primary-head"> | ||
87 | + <div id="basicTable_wrapper" class="dataTables_wrapper no-footer"> | ||
88 | + <div class="dataTables_length" id="basicTable"> | ||
89 | + </div> | ||
90 | + <nav> | ||
91 | + <ul id="pagination" class="pagination pagination-lg"></ul> | ||
92 | + </nav> | ||
93 | + </div> | ||
94 | + </div> | ||
95 | +</div> |
-
Please register or login to post a comment