style:首页新闻数据联调
Showing
2 changed files
with
2 additions
and
3 deletions
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 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | 5 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
7 | <title>网上“一窗办事”登记系统</title> | 6 | <title>网上“一窗办事”登记系统</title> | ... | ... |
... | @@ -73,7 +73,7 @@ function NewsData() { | ... | @@ -73,7 +73,7 @@ function NewsData() { |
73 | for (var i = 0; i < result.data.length; i++) { | 73 | for (var i = 0; i < result.data.length; i++) { |
74 | if (i == 6) return; | 74 | if (i == 6) return; |
75 | publishTime = CutDate(result.data[i].publishTime); | 75 | publishTime = CutDate(result.data[i].publishTime); |
76 | li = '<li><a href="#" title="' + result.data[i].headline + '">'; | 76 | li = '<li><a href="./staticViews/xwxq.html?id='+result.data[i].id+'" title="' + result.data[i].headline + '" target="_blank">'; |
77 | li += '<div class="news_item">'; | 77 | li += '<div class="news_item">'; |
78 | if (recentlyDay.indexOf(publishTime) > -1) { | 78 | if (recentlyDay.indexOf(publishTime) > -1) { |
79 | li += '<svg class="icon svg-icon" aria-hidden="true"> <use xlink:href="#iconzuixin"></use> </svg>'; | 79 | li += '<svg class="icon svg-icon" aria-hidden="true"> <use xlink:href="#iconzuixin"></use> </svg>'; |
... | @@ -102,7 +102,7 @@ function NoticeData() { | ... | @@ -102,7 +102,7 @@ function NoticeData() { |
102 | if (result.code == 200 && result.data != null) { | 102 | if (result.code == 200 && result.data != null) { |
103 | for (var i = 0; i < result.data.length; i++) { | 103 | for (var i = 0; i < result.data.length; i++) { |
104 | if (i == 6) return; | 104 | if (i == 6) return; |
105 | li = '<li class="item_notice"><a href="#" title="' + result.data[i].title + '">'; | 105 | li = '<li class="item_notice"><a href="./staticViews/ggxq.html?id='+result.data[i].id+'" title="' + result.data[i].title + '" target="_blank">'; |
106 | li += '<p>' + result.data[i].title + '</P>'; | 106 | li += '<p>' + result.data[i].title + '</P>'; |
107 | if (result.data[i].noticeType == 1) { | 107 | if (result.data[i].noticeType == 1) { |
108 | li += '<svg class="icon svg-icon" aria-hidden="true"> <use xlink:href="#icongonggao1"></use> </svg>'; | 108 | li += '<svg class="icon svg-icon" aria-hidden="true"> <use xlink:href="#icongonggao1"></use> </svg>'; | ... | ... |
-
Please register or sign in to post a comment