Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
任超
/
js.portalStaticPage
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
560c8461
authored
2020-11-27 08:46:57 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:首页新闻数据联调
1 parent
a5e5cfb9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
index.html
staticJs/pageHome.js
index.html
View file @
560c846
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
xmlns=
"http://www.w3.org/1999/xhtml"
>
<head>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=utf-8"
/>
<title>
网上“一窗办事”登记系统
</title>
...
...
staticJs/pageHome.js
View file @
560c846
...
...
@@ -73,7 +73,7 @@ function NewsData() {
for
(
var
i
=
0
;
i
<
result
.
data
.
length
;
i
++
)
{
if
(
i
==
6
)
return
;
publishTime
=
CutDate
(
result
.
data
[
i
].
publishTime
);
li
=
'<li><a href="
#" title="'
+
result
.
data
[
i
].
headline
+
'
">'
;
li
=
'<li><a href="
./staticViews/xwxq.html?id='
+
result
.
data
[
i
].
id
+
'" title="'
+
result
.
data
[
i
].
headline
+
'" target="_blank
">'
;
li
+=
'<div class="news_item">'
;
if
(
recentlyDay
.
indexOf
(
publishTime
)
>
-
1
)
{
li
+=
'<svg class="icon svg-icon" aria-hidden="true"> <use xlink:href="#iconzuixin"></use> </svg>'
;
...
...
@@ -102,7 +102,7 @@ function NoticeData() {
if
(
result
.
code
==
200
&&
result
.
data
!=
null
)
{
for
(
var
i
=
0
;
i
<
result
.
data
.
length
;
i
++
)
{
if
(
i
==
6
)
return
;
li
=
'<li class="item_notice"><a href="
#" title="'
+
result
.
data
[
i
].
title
+
'
">'
;
li
=
'<li class="item_notice"><a href="
./staticViews/ggxq.html?id='
+
result
.
data
[
i
].
id
+
'" title="'
+
result
.
data
[
i
].
title
+
'" target="_blank
">'
;
li
+=
'<p>'
+
result
.
data
[
i
].
title
+
'</P>'
;
if
(
result
.
data
[
i
].
noticeType
==
1
)
{
li
+=
'<svg class="icon svg-icon" aria-hidden="true"> <use xlink:href="#icongonggao1"></use> </svg>'
;
...
...
Please
register
or
sign in
to post a comment