Authored by dongjunjie

搜索词管理样式统一

@@ -9,7 +9,8 @@ module.exports = function (app) { @@ -9,7 +9,8 @@ module.exports = function (app) {
9 //列表页 9 //列表页
10 app.get("/operations/terms/index", "searchWords.SearchWords.Index",function(){ 10 app.get("/operations/terms/index", "searchWords.SearchWords.Index",function(){
11 this.$extend={ 11 this.$extend={
12 - filter: true 12 + moduleName:'搜索词管理',
  13 + pageName:'品牌热搜词'
13 } 14 }
14 }); 15 });
15 16
@@ -27,8 +28,7 @@ module.exports = function (app) { @@ -27,8 +28,7 @@ module.exports = function (app) {
27 app.get("/hotSearchBrand/index", "searchWords.HotBrand.Index",function(){ 28 app.get("/hotSearchBrand/index", "searchWords.HotBrand.Index",function(){
28 this.$extend={ 29 this.$extend={
29 moduleName:'搜索词管理', 30 moduleName:'搜索词管理',
30 - pageName:'品牌热搜词',  
31 - filter: true 31 + pageName:'品牌热搜词'
32 } 32 }
33 }); 33 });
34 34
1 <%include '../../../common/views/__ui/header'%> 1 <%include '../../../common/views/__ui/header'%>
2 -  
3 <%include '../../../common/views/__partail/ListHeader'%> 2 <%include '../../../common/views/__partail/ListHeader'%>
4 3
5 <div class="contentpanel"> 4 <div class="contentpanel">
6 <div class="panel panel-default" style="..."> 5 <div class="panel panel-default" style="...">
7 - <div class="panel-heading">  
8 - <a id="addHotBrand" class="btn btn-primary">添加</a> 6 + <div class="panel-body" style="padding-bottom: 0">
  7 + <a id="addHotBrand" class="btn btn-success"><i class="fa fa-plus"></i> 添加品牌热搜词</a>
9 </div> 8 </div>
10 <div class="panel-body"> 9 <div class="panel-body">
11 <div class="row"> 10 <div class="row">
1 <%include '../../../common/views/__ui/header'%> 1 <%include '../../../common/views/__ui/header'%>
2 -<div class="pageheader">  
3 - <div class="media">  
4 - <div class="pageicon pull-left">  
5 - <i class="fa fa-th-list"></i>  
6 - </div>  
7 - <div class="media-body"> 2 +<%include '../../../common/views/__partail/ListHeader'%>
8 3
9 - </div>  
10 - </div>  
11 -</div>  
12 <div class="contentpanel"> 4 <div class="contentpanel">
13 <div class="panel panel-default" style="..."> 5 <div class="panel panel-default" style="...">
14 - <div class="panel-heading">  
15 - <a id="filter-add" class="btn btn-primary">添加</a> 6 + <div class="panel-body" style="padding-bottom: 0">
  7 + <a id="filter-add" class="btn btn-success"><i class="fa fa-plus"></i> 添加词汇</a>
16 </div> 8 </div>
17 <div class="panel-body" id="filter"> 9 <div class="panel-body" id="filter">
18 <div class="row"> 10 <div class="row">
@@ -40,23 +32,21 @@ @@ -40,23 +32,21 @@
40 </select> 32 </select>
41 </div> 33 </div>
42 </div> 34 </div>
43 - <div class="panel-col2"> 35 + <div class="panel-col">
44 <input type="text" id="starttime-filter" class="form-control panel-input hasDatepicker" 36 <input type="text" id="starttime-filter" class="form-control panel-input hasDatepicker"
45 jsaction="time:end:endtime-filter" name="start_time" placeholder="开始时间" value=""> 37 jsaction="time:end:endtime-filter" name="start_time" placeholder="开始时间" value="">
46 </div> 38 </div>
47 - <div class="panel-col2"> 39 + <div class="panel-col">
48 <input type="text" id="endtime-filter" class="form-control panel-input hasDatepicker" 40 <input type="text" id="endtime-filter" class="form-control panel-input hasDatepicker"
49 jsaction="time:start:starttime-filter" name="end_time" placeholder="结束时间" value=""> 41 jsaction="time:start:starttime-filter" name="end_time" placeholder="结束时间" value="">
50 </div> 42 </div>
51 - <div class="panel-col2"> 43 + <div class="panel-col">
52 <a id="filter-btn" href="javascript:;" class="btn btn-info">查询</a> 44 <a id="filter-btn" href="javascript:;" class="btn btn-info">查询</a>
53 </div> 45 </div>
54 </div> 46 </div>
55 </div> 47 </div>
56 </div> 48 </div>
57 - <div id="search-words-list" class="search-words">  
58 -  
59 - </div> 49 + <div id="search-words-list" class="search-words"></div>
60 </div> 50 </div>
61 51
62 <script type="text/template" id="template"> 52 <script type="text/template" id="template">
@@ -65,11 +55,9 @@ @@ -65,11 +55,9 @@
65 <li><a href="">搜索词管理</a></li> 55 <li><a href="">搜索词管理</a></li>
66 <li id="header-item">[[name1]]</li> 56 <li id="header-item">[[name1]]</li>
67 </ul> 57 </ul>
68 -  
69 <div> 58 <div>
70 - <div style="width: 30%;float: left;">  
71 - <h4 id="header-title">[[name2]]</h4>  
72 - 59 + <div style="padding-left: 0; font-family: 'Microsoft YaHei'">
  60 + <h4 id="header-title" style="line-height: 30px;font-size: 24px;margin-top: 2px">[[name2]]</h4>
73 </div> 61 </div>
74 </div> 62 </div>
75 </script> 63 </script>
@@ -72,13 +72,13 @@ var Bll = { @@ -72,13 +72,13 @@ var Bll = {
72 _render1: function () { 72 _render1: function () {
73 //只有默认热搜词才显示时间选择 73 //只有默认热搜词才显示时间选择
74 if (parseInt(type) == PagEnum.DEF_HOT_SEARCH_WORDS) { 74 if (parseInt(type) == PagEnum.DEF_HOT_SEARCH_WORDS) {
75 - $('#starttime-filter').show();  
76 - $('#endtime-filter').show();  
77 - $('#channel-ops').show(); 75 + $('#starttime-filter').parent().show();
  76 + $('#endtime-filter').parent().show();
  77 + $('#channel-ops').parent().parent().show();
78 } else { 78 } else {
79 - $('#starttime-filter').hide();  
80 - $('#endtime-filter').hide();  
81 - $('#channel-ops').hide(); 79 + $('#starttime-filter').parent().hide();
  80 + $('#endtime-filter').parent().hide();
  81 + $('#channel-ops').parent().parent().hide();
82 } 82 }
83 var tem = common.util.__template2($("#template").html(), titles[parseInt(type)]); 83 var tem = common.util.__template2($("#template").html(), titles[parseInt(type)]);
84 $(".media-body").html(tem); 84 $(".media-body").html(tem);
@@ -200,7 +200,7 @@ var g = new common.grid({ @@ -200,7 +200,7 @@ var g = new common.grid({
200 {display: "修改时间", name: "modifyTime"}, 200 {display: "修改时间", name: "modifyTime"},
201 { 201 {
202 display: "操作", name: "", render: function (item) { 202 display: "操作", name: "", render: function (item) {
203 - return '<a class="btn btn-info modify" data-index="' + item.__index + '">修改</a>'; 203 + return '<a class="btn btn-xs btn-info modify" data-index="' + item.__index + '">修改</a>';
204 } 204 }
205 } 205 }
206 ]; 206 ];
@@ -227,7 +227,7 @@ var g = new common.grid({ @@ -227,7 +227,7 @@ var g = new common.grid({
227 {display: "修改时间", name: "modifyTime"}, 227 {display: "修改时间", name: "modifyTime"},
228 { 228 {
229 display: "操作", name: "", render: function (item) { 229 display: "操作", name: "", render: function (item) {
230 - return '<a class="btn btn-info modify" data-index="' + item.__index + '">修改</a>'; 230 + return '<a class="btn btn-xs btn-info modify" data-index="' + item.__index + '">修改</a>';
231 } 231 }
232 } 232 }
233 ]; 233 ];
@@ -260,7 +260,7 @@ var g = new common.grid({ @@ -260,7 +260,7 @@ var g = new common.grid({
260 {display: "修改时间", name: "modifyTime"}, 260 {display: "修改时间", name: "modifyTime"},
261 { 261 {
262 display: "操作", name: "", render: function (item) { 262 display: "操作", name: "", render: function (item) {
263 - return '<a class="btn btn-info modify" data-index="' + item.__index + '">修改</a>'; 263 + return '<a class="btn btn-xs btn-info modify" data-index="' + item.__index + '">修改</a>';
264 } 264 }
265 } 265 }
266 ]; 266 ];
@@ -285,7 +285,7 @@ var g = new common.grid({ @@ -285,7 +285,7 @@ var g = new common.grid({
285 {display: "修改时间", name: "modifyTime"}, 285 {display: "修改时间", name: "modifyTime"},
286 { 286 {
287 display: "操作", name: "", render: function (item) { 287 display: "操作", name: "", render: function (item) {
288 - return '<a class="btn btn-info modify" data-index="' + item.__index + '">修改</a>'; 288 + return '<a class="btn btn-xs btn-info modify" data-index="' + item.__index + '">修改</a>';
289 } 289 }
290 } 290 }
291 ]; 291 ];
@@ -310,7 +310,7 @@ var g = new common.grid({ @@ -310,7 +310,7 @@ var g = new common.grid({
310 {display: "修改时间", name: "modifyTime"}, 310 {display: "修改时间", name: "modifyTime"},
311 { 311 {
312 display: "操作", name: "", render: function (item) { 312 display: "操作", name: "", render: function (item) {
313 - return '<a class="btn btn-info modify" data-index="' + item.__index + '">修改</a>'; 313 + return '<a class="btn btn-xs btn-info modify" data-index="' + item.__index + '">修改</a>';
314 } 314 }
315 } 315 }
316 ]; 316 ];