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
56477187
authored
2021-02-01 16:48:11 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:新闻详情
1 parent
8a20cdb5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
staticJs/xwxq.js
staticJs/xwxq.js
View file @
5647718
...
...
@@ -44,7 +44,7 @@ function HotArticle() {
if
(
result
.
code
==
200
&&
result
.
data
!=
null
)
{
for
(
var
i
=
0
;
i
<
result
.
data
.
length
;
i
++
)
{
if
(
i
==
3
)
return
;
li
=
'<li class="tj"><a href="
./xwxq.html?id='
+
result
.
data
[
i
].
id
+
'
" target="_blank">'
;
li
=
'<li class="tj"><a href="
/staticViews/news/'
+
result
.
data
[
i
].
id
+
'.html
" target="_blank">'
;
if
(
result
.
data
[
i
].
preViewUrl
)
{
li
+=
'<img src="'
+
result
.
data
[
i
].
preViewUrl
+
'">'
;
}
...
...
@@ -72,7 +72,7 @@ function PolicyHotArticle() {
if
(
result
.
code
==
200
&&
result
.
data
!=
null
)
{
for
(
var
i
=
0
;
i
<
result
.
data
.
length
;
i
++
)
{
li
=
'<li class="zcfg">'
li
+=
'<a href="
./xyzcxq.html?id='
+
result
.
data
[
i
].
id
+
'
" title="'
+
result
.
data
[
i
].
headline
+
'" target="_blank">'
li
+=
'<a href="
/staticViews/policy/'
+
result
.
data
[
i
].
id
+
'.html
" title="'
+
result
.
data
[
i
].
headline
+
'" target="_blank">'
li
+=
'<div class="zcfg-top">'
+
result
.
data
[
i
].
headline
+
'</div>'
li
+=
'<p class="zcfg-body">'
+
result
.
data
[
i
].
summary
+
'</p>'
li
+=
'<div class="zcfg-bottom">'
+
result
.
data
[
i
].
deadtime
+
'</div>'
...
...
Please
register
or
sign in
to post a comment