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
523d2989
authored
2021-01-08 15:47:03 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:新闻动态
1 parent
217122ff
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
46 deletions
staticJs/xwxq.js
staticViews/xwxq.html
staticJs/xwxq.js
View file @
523d298
...
...
@@ -44,20 +44,20 @@ 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">'
;
li
=
'<li class="tj">
<a href="./xwxq.html?id='
+
result
.
data
[
i
].
id
+
'" target="_blank">
'
;
if
(
result
.
data
[
i
].
preViewUrl
)
{
li
+=
'<img src="'
+
result
.
data
[
i
].
preViewUrl
+
'">'
;
}
li
+=
'<span class="tj-title">'
+
result
.
data
[
i
].
headline
+
'</span>'
;
li
+=
'<span class="tj-date">'
+
result
.
data
[
i
].
deadtime
+
'</span>'
;
li
+=
'</li>'
;
li
+=
'</
a></
li>'
;
recommend
.
append
(
li
);
}
}
}
})
}
//
政策
法规推荐
//
相应
法规推荐
function
PolicyHotArticle
()
{
var
regulation
=
$
(
"#regulation"
);
regulation
.
empty
();
...
...
@@ -72,9 +72,11 @@ 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
+=
'<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>'
li
+=
'</a>'
li
+=
'</li>'
regulation
.
append
(
li
);
}
...
...
staticViews/xwxq.html
View file @
523d298
...
...
@@ -208,54 +208,12 @@
<h2
class=
"xwtjtitle"
>
新闻推荐
</h2>
</div>
<div
class=
"right-body"
id=
"news_recommendation"
>
<!-- <div class="tj">
<img
src="https://dss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1938529415,777611275&fm=26&gp=0.jpg">
<span class="tj-title">
爬山虎国土空间信息化解决方案
</span>
<span class="tj-date">
2020-12-12
</span>
</div>
<div class="tj">
<img
src="https://dss0.bdstatic.com/70cFvHSh_Q1YnxGkpoWK1HF6hhy/it/u=1938529415,777611275&fm=26&gp=0.jpg">
<span class="tj-title">
爬山虎国土空间信息化解决方案终极方案
</span>
<span class="tj-date">
2020-12-12
</span>
</div> -->
</div>
<div
class=
"right-bottom"
>
<div
class=
"right-bottom-top"
>
<span>
政策法规
推荐
</span>
<span>
相应政策
推荐
</span>
</div>
<div
id=
"regulation"
></div>
<!-- <div class="zcfg">
<div class="zcfg-top">
<span>爬山虎国土空间规划信息化解决</span>
</div>
<div class="zcfg-body">
<span>10月21日,农业农村部举行新闻发布会,介绍2020年前三季度农业农村经济形势。</span>
</div>
<div class="zcfg-bottom">
<span>2020-10-28</span>
</div>
</div>
<div class="zcfg">
<div class="zcfg-top">
<span>爬山虎国土空间规划信息化解决</span>
</div>
<div class="zcfg-body">
<span>10月21日,农业农村部举行新闻发布会,介绍2020年前三季度农业农村经济形势。</span>
</div>
<div class="zcfg-bottom">
<span>2020-10-28</span>
</div>
</div> -->
</div>
</div>
</div>
...
...
Please
register
or
sign in
to post a comment