0f3893ee by 任超

style:政务公开

1 parent 273c8980
...@@ -111,6 +111,11 @@ layui.use('laypage', function () { ...@@ -111,6 +111,11 @@ layui.use('laypage', function () {
111 } 111 }
112 } 112 }
113 }); 113 });
114 if (data.total == 0) {
115 $('#page').hide();
116 }else {
117 $('#page').show();
118 }
114 }); 119 });
115 var data = { //数据 120 var data = { //数据
116 "list": [], 121 "list": [],
......
...@@ -125,6 +125,11 @@ layui.use('laypage', function () { ...@@ -125,6 +125,11 @@ layui.use('laypage', function () {
125 } 125 }
126 } 126 }
127 }); 127 });
128 if(data.total ==0 ) {
129 $('#test1').hide();
130 }else {
131 $('#test1').show();
132 }
128 }); 133 });
129 134
130 var data = { //数据 135 var data = { //数据
......
...@@ -209,6 +209,8 @@ function paged(pageCount, curr) { ...@@ -209,6 +209,8 @@ function paged(pageCount, curr) {
209 }) 209 })
210 if (pageCount == 0) { 210 if (pageCount == 0) {
211 $('#page').hide(); 211 $('#page').hide();
212 }else {
213 $('#page').show();
212 } 214 }
213 } 215 }
214 216
......
...@@ -107,6 +107,8 @@ layui.use('laypage', function () { ...@@ -107,6 +107,8 @@ layui.use('laypage', function () {
107 }); 107 });
108 if(data.total ==0) { 108 if(data.total ==0) {
109 $('#page').hide(); 109 $('#page').hide();
110 }else {
111 $('#page').show();
110 } 112 }
111 }) 113 })
112 var data = { //数据 114 var data = { //数据
......
...@@ -25,7 +25,7 @@ function getLawsArticleList() { ...@@ -25,7 +25,7 @@ function getLawsArticleList() {
25 //数据,这里使用的是Json格式进行传输 25 //数据,这里使用的是Json格式进行传输
26 success: function (result) {//返回数据根据结果进行相应的处理 26 success: function (result) {//返回数据根据结果进行相应的处理
27 if (result.code == 200 && result.data != null) { 27 if (result.code == 200 && result.data != null) {
28 data.total = result.data.total 28 data.total = result.data.total;
29 for (var i = 0; i < result.data.records.length; i++) { 29 for (var i = 0; i < result.data.records.length; i++) {
30 li = '<li>'; 30 li = '<li>';
31 li += '<a href="./xyzcxq.html?id='+result.data.records[i].id+'" title="' + result.data.records[i].headline + '" target="_blank">' 31 li += '<a href="./xyzcxq.html?id='+result.data.records[i].id+'" title="' + result.data.records[i].headline + '" target="_blank">'
...@@ -35,6 +35,8 @@ function getLawsArticleList() { ...@@ -35,6 +35,8 @@ function getLawsArticleList() {
35 li += '</li>'; 35 li += '</li>';
36 flfgList.append(li); 36 flfgList.append(li);
37 } 37 }
38 }else {
39 data.total = 0;
38 } 40 }
39 } 41 }
40 42
...@@ -111,10 +113,15 @@ layui.use('laypage', function () { ...@@ -111,10 +113,15 @@ layui.use('laypage', function () {
111 } 113 }
112 } 114 }
113 }); 115 });
116 if (data.total ==0 ) {
117 $('#page').hide();
118 }else {
119 $('#page').show();
120 }
114 }); 121 });
115 var data = { //数据 122 var data = { //数据
116 "list": [], 123 "list": [],
117 total: undefined, 124 total: 0,
118 currentPage: 1, 125 currentPage: 1,
119 pageSize: 5 126 pageSize: 5
120 }; 127 };
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -17,8 +17,7 @@ ...@@ -17,8 +17,7 @@
17 <div class="contentBox"> 17 <div class="contentBox">
18 <span class="layui-breadcrumb"> 18 <span class="layui-breadcrumb">
19 <a href="../index.html" title="首页">首页</a> 19 <a href="../index.html" title="首页">首页</a>
20 <a href="#" title="办事指南">办事指南</a> 20 <a title="办事指南"><cite>办事指南</cite></a>
21 <a title="业务指南"><cite>业务指南</cite></a>
22 </span> 21 </span>
23 </div> 22 </div>
24 </div> 23 </div>
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
16 <div class="contentBox"> 16 <div class="contentBox">
17 <span class="layui-breadcrumb"> 17 <span class="layui-breadcrumb">
18 <a href="../index.html">首页</a> 18 <a href="../index.html">首页</a>
19 <a>政务公开</a>
19 <a><cite>法律法规</cite></a> 20 <a><cite>法律法规</cite></a>
20 </span> 21 </span>
21 </div> 22 </div>
......
1 <!DOCTYPE html 1 <!DOCTYPE html
2 PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2 PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <html xmlns="http://www.w3.org/1999/xhtml">
4
4 <head> 5 <head>
5 <style> 6 <style>
6 </style> 7 </style>
...@@ -9,11 +10,13 @@ ...@@ -9,11 +10,13 @@
9 <script type="text/javascript" src="../staticJs/head.js"></script> 10 <script type="text/javascript" src="../staticJs/head.js"></script>
10 <link rel="stylesheet" type="text/css" href="../staticCss/gsgg.css"> 11 <link rel="stylesheet" type="text/css" href="../staticCss/gsgg.css">
11 </head> 12 </head>
13
12 <body> 14 <body>
13 <div class="navigation_crumbs"> 15 <div class="navigation_crumbs">
14 <div class="contentBox"> 16 <div class="contentBox">
15 <span class="layui-breadcrumb"> 17 <span class="layui-breadcrumb">
16 <a href="../index.html">首页</a> 18 <a href="../index.html">首页</a>
19 <a>政务公开</a>
17 <a><cite>公示公告</cite></a> 20 <a><cite>公示公告</cite></a>
18 </span> 21 </span>
19 </div> 22 </div>
...@@ -90,4 +93,5 @@ ...@@ -90,4 +93,5 @@
90 </li> 93 </li>
91 {{# }); }} 94 {{# }); }}
92 </script> 95 </script>
96
93 </html> 97 </html>
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
16 <div class="contentBox"> 16 <div class="contentBox">
17 <span class="layui-breadcrumb"> 17 <span class="layui-breadcrumb">
18 <a href="../index.html">首页</a> 18 <a href="../index.html">首页</a>
19 <a>政务公开</a>
19 <a><cite>相应政策</cite></a> 20 <a><cite>相应政策</cite></a>
20 </span> 21 </span>
21 </div> 22 </div>
......