3f02ea81 by 任超

style:静态化

1 parent 3dbf5444
1
2 ::-webkit-input-placeholder { /* WebKit browsers */
3 font-size: 13px;
4 color: #9B9B9B;
5 }
6
7 ::-moz-placeholder { /* Mozilla Firefox 19+ */
8 font-size: 13px;
9 color: #9B9B9B;
10 }
11
12 :-ms-input-placeholder { /* Internet Explorer 10+ */
13 font-size: 13px;
14 color: #9B9B9B;
15 }
16 input {
17 padding-left: 10px;
18 }
19 div.subject h2 a:hover {
20 color: #f46143;
21 }
22
23 div.subject {
24 margin: 0 auto;
25 float: none;
26 clear: both;
27 position: relative;
28 }
29
30 /*新闻 */
31 div.top-logo {
32 width: 1200px;
33 height: 70px;
34 padding-top: 20px;
35 }
36
37 div.top-logo ::-webkit-input-placeholder { /* WebKit browsers */
38 font-size: 13px;
39 }
40
41 div.top-logo ::-moz-placeholder { /* Mozilla Firefox 19+ */
42 font-size: 13px;
43 }
44
45 div.top-logo :-ms-input-placeholder { /* Internet Explorer 10+ */
46 font-size: 13px;
47 }
48
49 .top_logo_content {
50 height: 40px;
51 width: 100%;
52 margin: 0 auto;
53 }
54
55 div.top-logo .top_logo_search {
56 float: left;
57 width: 350px;
58 position: relative;
59 margin-left: 400px;
60 }
61
62 div.top-logo .top_logo_search input {
63 border-radius: 50px;
64 }
65
66 div.top-logo .login {
67 float: right;
68 margin-top: 8px;
69 }
70
71 div.top-logo .top_logo_search i {
72 position: absolute;
73 right: 10px;
74 top: 11px;
75 cursor: pointer;
76 }
77 /*------------------首页 end------------*/
78
79 .top-logo ul li { 1 .top-logo ul li {
80 display: inline-block; 2 display: inline-block;
81 padding: 0 8px; 3 padding: 0 8px;
......
...@@ -28,7 +28,7 @@ function getLawsArticleList() { ...@@ -28,7 +28,7 @@ function getLawsArticleList() {
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="./flfgxq.html?id='+result.data.records[i].id+'" title="' + result.data.records[i].headline + '" target="_blank">' 31 li += '<a href="./law/'+result.data.records[i].id+'.html" title="' + result.data.records[i].headline + '" target="_blank">'
32 li += '<p>' + result.data.records[i].headline + '</p>'; 32 li += '<p>' + result.data.records[i].headline + '</p>';
33 li += '<span>' + result.data.records[i].deadtime + '</span>'; 33 li += '<span>' + result.data.records[i].deadtime + '</span>';
34 li += '</a>'; 34 li += '</a>';
......
...@@ -16,12 +16,12 @@ $(function () { ...@@ -16,12 +16,12 @@ $(function () {
16 }) 16 })
17 17
18 // 选项卡切换数据 18 // 选项卡切换数据
19 layui.use('element', function(){ 19 layui.use('element', function () {
20 var element = layui.element; 20 var element = layui.element;
21 //监听Tab切换,以改变地址hash值 21 //监听Tab切换,以改变地址hash值
22 element.on('tab(tabNav)', function(){ 22 element.on('tab(tabNav)', function () {
23 data.noticeType = this.getAttribute('lay-id') 23 data.noticeType = this.getAttribute('lay-id')
24 if(this.getAttribute('lay-id') ==0 ) { 24 if (this.getAttribute('lay-id') == 0) {
25 data.noticeType = undefined 25 data.noticeType = undefined
26 } 26 }
27 initData() 27 initData()
...@@ -71,9 +71,9 @@ function HotArticle() { ...@@ -71,9 +71,9 @@ function HotArticle() {
71 if (result.code == 200 && result.data != null) { 71 if (result.code == 200 && result.data != null) {
72 for (var i = 0; i < result.data.length; i++) { 72 for (var i = 0; i < result.data.length; i++) {
73 if (i == 3) return; 73 if (i == 3) return;
74 li = '<li class="tj"><a href="./xwxq.html?id='+result.data[i].id+'" target="_blank">'; 74 li = '<li class="tj"><a href="./xwxq.html?id=' + result.data[i].id + '" target="_blank">';
75 if ( result.data[i].preViewUrl ) { 75 if (result.data[i].preViewUrl) {
76 li += '<img src="' + result.data[i].preViewUrl + '">'; 76 li += '<img src="' + result.data[i].preViewUrl + '">';
77 } 77 }
78 li += '<span class="tj-title">' + result.data[i].headline + '</span>'; 78 li += '<span class="tj-title">' + result.data[i].headline + '</span>';
79 li += '<span class="tj-date">' + result.data[i].deadtime + '</span>'; 79 li += '<span class="tj-date">' + result.data[i].deadtime + '</span>';
...@@ -98,7 +98,7 @@ function PolicyHotArticle() { ...@@ -98,7 +98,7 @@ function PolicyHotArticle() {
98 if (result.code == 200 && result.data != null) { 98 if (result.code == 200 && result.data != null) {
99 for (var i = 0; i < result.data.length; i++) { 99 for (var i = 0; i < result.data.length; i++) {
100 li = '<li class="zcfg">' 100 li = '<li class="zcfg">'
101 li += '<a href="./xyzcxq.html?id='+result.data[i].id+'" title="' + result.data[i].headline + '" target="_blank">' 101 li += '<a href="./xyzcxq.html?id=' + result.data[i].id + '" title="' + result.data[i].headline + '" target="_blank">'
102 li += '<div class="zcfg-top">' + result.data[i].headline + '</div>' 102 li += '<div class="zcfg-top">' + result.data[i].headline + '</div>'
103 li += '<p class="zcfg-body">' + result.data[i].summary + '</p>' 103 li += '<p class="zcfg-body">' + result.data[i].summary + '</p>'
104 li += '<div class="zcfg-bottom">' + result.data[i].deadtime + '</div>' 104 li += '<div class="zcfg-bottom">' + result.data[i].deadtime + '</div>'
...@@ -128,9 +128,9 @@ layui.use('laypage', function () { ...@@ -128,9 +128,9 @@ layui.use('laypage', function () {
128 } 128 }
129 } 129 }
130 }); 130 });
131 if(data.total ==0 ) { 131 if (data.total == 0) {
132 $('#test1').hide(); 132 $('#test1').hide();
133 }else { 133 } else {
134 $('#test1').show(); 134 $('#test1').show();
135 } 135 }
136 }); 136 });
......
...@@ -15,8 +15,8 @@ document.writeln(" <link rel=\'icon\' href=\'favicon.ico\' type=\'image/x-ico ...@@ -15,8 +15,8 @@ document.writeln(" <link rel=\'icon\' href=\'favicon.ico\' type=\'image/x-ico
15 document.writeln(" <meta name=\'description\' content=\'\' />"); 15 document.writeln(" <meta name=\'description\' content=\'\' />");
16 document.writeln(" <meta name=\'Keywords\' content=\'\' />"); 16 document.writeln(" <meta name=\'Keywords\' content=\'\' />");
17 document.writeln(" <link rel=\'stylesheet\' type=\'text/css\' href=\'" + localhostPaht + "/staticLib/layui/css/layui.css\' />"); 17 document.writeln(" <link rel=\'stylesheet\' type=\'text/css\' href=\'" + localhostPaht + "/staticLib/layui/css/layui.css\' />");
18 document.writeln(" <link type=\'text/css\' rel=\'stylesheet\' href=\'" + localhostPaht + "/staticCss/common.css\' />");
19 document.writeln(" <link type=\'text/css\' rel=\'stylesheet\' href=\'" + localhostPaht + "/staticCss/header.css\' />"); 18 document.writeln(" <link type=\'text/css\' rel=\'stylesheet\' href=\'" + localhostPaht + "/staticCss/header.css\' />");
19 document.writeln(" <link type=\'text/css\' rel=\'stylesheet\' href=\'" + localhostPaht + "/staticCss/common.css\' />");
20 document.writeln("<script type='text/javascript' src=\'" + localhostPaht + "/staticLib/jquery/jquery.min.js\'></script>"); 20 document.writeln("<script type='text/javascript' src=\'" + localhostPaht + "/staticLib/jquery/jquery.min.js\'></script>");
21 document.writeln("<script type='text/javascript' src=\'" + localhostPaht + "/staticJs/login.js\'></script>"); 21 document.writeln("<script type='text/javascript' src=\'" + localhostPaht + "/staticJs/login.js\'></script>");
22 document.writeln("<script type='text/javascript' src=\'" + localhostPaht + "/staticJs/common.js\'></script>"); 22 document.writeln("<script type='text/javascript' src=\'" + localhostPaht + "/staticJs/common.js\'></script>");
......
...@@ -91,9 +91,9 @@ function NewsData() { ...@@ -91,9 +91,9 @@ function NewsData() {
91 if (i == 6) return; 91 if (i == 6) return;
92 publishTime = CutDate(result.data[i].publishTime); 92 publishTime = CutDate(result.data[i].publishTime);
93 if (result.data[i].preViewUrl) { 93 if (result.data[i].preViewUrl) {
94 li = '<li url="'+result.data[i].preViewUrl+'"><a href="./staticViews/xwxq.html?id='+result.data[i].id+'" title="' + result.data[i].headline + '" target="_blank">'; 94 li = '<li url="'+result.data[i].preViewUrl+'"><a href="./staticViews/news/'+result.data[i].id+'.html" title="' + result.data[i].headline + '" target="_blank">';
95 }else { 95 }else {
96 li = '<li><a href="./staticViews/xwxq.html?id='+result.data[i].id+'" title="' + result.data[i].headline + '" target="_blank">'; 96 li = '<li><a href="./staticViews/news/'+result.data[i].id+'.html" title="' + result.data[i].headline + '" target="_blank">';
97 } 97 }
98 li += '<div class="news_item">'; 98 li += '<div class="news_item">';
99 if (recentlyDay.indexOf(publishTime) > -1) { 99 if (recentlyDay.indexOf(publishTime) > -1) {
...@@ -130,7 +130,7 @@ function NoticeData() { ...@@ -130,7 +130,7 @@ function NoticeData() {
130 if (result.code == 200 && result.data != null) { 130 if (result.code == 200 && result.data != null) {
131 for (var i = 0; i < result.data.length; i++) { 131 for (var i = 0; i < result.data.length; i++) {
132 if (i == 6) return; 132 if (i == 6) return;
133 li = '<li class="item_notice"><a href="./staticViews/ggxq.html?id='+result.data[i].id+'" title="' + result.data[i].title + '" target="_blank">'; 133 li = '<li class="item_notice"><a href="./staticViews/notice/'+result.data[i].id+'.html" title="' + result.data[i].title + '" target="_blank">';
134 li += '<p>' + result.data[i].title + '</P>'; 134 li += '<p>' + result.data[i].title + '</P>';
135 if (result.data[i].noticeType == 1) { 135 if (result.data[i].noticeType == 1) {
136 li += '<svg class="icon svg-icon" aria-hidden="true"> <use xlink:href="#icongongshi"></use> </svg>'; 136 li += '<svg class="icon svg-icon" aria-hidden="true"> <use xlink:href="#icongongshi"></use> </svg>';
...@@ -161,7 +161,7 @@ function LawsData() { ...@@ -161,7 +161,7 @@ function LawsData() {
161 if (result.code == 200 && result.data != null) { 161 if (result.code == 200 && result.data != null) {
162 for (var i = 0; i < result.data.length; i++) { 162 for (var i = 0; i < result.data.length; i++) {
163 if (i == 6) return; 163 if (i == 6) return;
164 li = '<li><a href="./staticViews/flfgxq.html?id='+result.data[i].id+'" title="' + result.data[i].headline + '" target="_blank">'+ result.data[i].headline; 164 li = '<li><a href="./staticViews/law/'+result.data[i].id+'.html" title="' + result.data[i].headline + '" target="_blank">'+ result.data[i].headline;
165 li += '</a></li>'; 165 li += '</a></li>';
166 ulTag.append(li); 166 ulTag.append(li);
167 } 167 }
...@@ -183,7 +183,7 @@ function policiesData() { ...@@ -183,7 +183,7 @@ function policiesData() {
183 if (result.code == 200 && result.data != null) { 183 if (result.code == 200 && result.data != null) {
184 for (var i = 0; i < result.data.length; i++) { 184 for (var i = 0; i < result.data.length; i++) {
185 if (i == 6) return; 185 if (i == 6) return;
186 li = '<li><a href="./staticViews/xyzcxq.html?id='+result.data[i].id+'" title="' + result.data[i].headline + '" target="_blank">'+ result.data[i].headline; 186 li = '<li><a href="./staticViews/policy/'+result.data[i].id+'.html" title="' + result.data[i].headline + '" target="_blank">'+ result.data[i].headline;
187 li += '</a></li>'; 187 li += '</a></li>';
188 policies.append(li); 188 policies.append(li);
189 } 189 }
......
...@@ -28,7 +28,7 @@ function getLawsArticleList() { ...@@ -28,7 +28,7 @@ function getLawsArticleList() {
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="./policy/'+result.data.records[i].id+'.html" title="' + result.data.records[i].headline + '" target="_blank">'
32 li += '<p>' + result.data.records[i].headline + '</p>'; 32 li += '<p>' + result.data.records[i].headline + '</p>';
33 li += '<span>' + result.data.records[i].deadtime + '</span>'; 33 li += '<span>' + result.data.records[i].deadtime + '</span>';
34 li += '</a>'; 34 li += '</a>';
......
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
5 <head> 4 <head>
6 <style> 5 <style>
7 </style> 6 </style>
...@@ -73,7 +72,7 @@ ...@@ -73,7 +72,7 @@
73 <script id="demo" type="text/html"> 72 <script id="demo" type="text/html">
74 {{# layui.each(d.list, function(index, item){ }} 73 {{# layui.each(d.list, function(index, item){ }}
75 <li> 74 <li>
76 <a href='./ggxq.html?id={{item.id}}' target="_blank"> 75 <a href='./notice/{{item.id}}.html' target="_blank">
77 <div class="gg"> 76 <div class="gg">
78 {{# if(item.noticeType == 1){ }} 77 {{# if(item.noticeType == 1){ }}
79 <svg class="icon svg-icon" aria-hidden="true"> 78 <svg class="icon svg-icon" aria-hidden="true">
......