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
3508b875
authored
2020-11-30 09:53:03 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:相应政策
1 parent
a3178cc7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
32 deletions
staticJs/zcfg.js
staticViews/xyzc.html
staticJs/zcfg.js
View file @
3508b87
...
...
@@ -19,4 +19,31 @@ $(function () {
});
})
addTabs
(
'#zwgk'
)
})
\ No newline at end of file
})
// 初始化数据
function
initData
()
{
var
recommend
=
$
(
"#news_recommendation"
);
recommend
.
empty
();
var
li
=
''
;
$
.
ajax
({
type
:
"get"
,
//提交方式
url
:
portal
.
api_url
+
"/hlwj/MhNews/getNewsHotArticleList"
,
//路径
dataType
:
"json"
,
async
:
false
,
//数据,这里使用的是Json格式进行传输
success
:
function
(
result
)
{
//返回数据根据结果进行相应的处理
if
(
result
.
code
==
200
&&
result
.
data
!=
null
)
{
console
.
log
(
result
.
data
)
for
(
var
i
=
0
;
i
<
result
.
data
.
length
;
i
++
)
{
li
=
'<li class="tj">'
;
li
+=
'<img src="'
+
result
.
data
[
i
].
cover
+
'">'
;
li
+=
'<span class="tj-title">'
+
result
.
data
[
i
].
headline
+
'</span>'
;
li
+=
'<span class="tj-date">'
+
result
.
data
[
i
].
deadtime
+
'</span>'
;
li
+=
'</li>'
;
recommend
.
append
(
li
);
}
}
}
})
}
\ No newline at end of file
...
...
staticViews/xyzc.html
View file @
3508b87
...
...
@@ -25,37 +25,7 @@
<div
class=
"left"
>
<ul
class=
"leftContainer"
>
<li>
<a
class=
"left-top"
title=
"前三季度主要指标由负转正 中国经济持续稳定恢复"
href=
"./../xwxq/index.html"
target=
"_blank"
>
前三季度主要指标由负转正 中国经济持续稳定恢复
</a>
<a
class=
"xw"
href=
"./../xwxq/index.html"
target=
"_blank"
>
<div
class=
"xw-right"
>
<div
class=
"left-body"
>
10月21日,农业农村部举行新闻发布会,介绍2020年前三季度农业农村经济形式,农业农村部总经济师,发展
划司司长魏白刚介绍,今年农业收来之不易,农业农村经济保持了持续向好、稳中有进的态势,粮食丰收已成定局,预计产量达到历史最高水平
</div>
<div
class=
"left-buttom"
>
<div>
<svg
class=
"icon svg-icon"
aria-hidden=
"true"
>
<use
xlink:href=
"#iconchakan"
></use>
</svg>
<span>
123
</span>
</div>
<div>
<svg
class=
"icon svg-icon"
aria-hidden=
"true"
>
<use
xlink:href=
"#iconpinglun"
></use>
</svg>
<span>
456
</span>
</div>
<div
class=
"left-buttom-date"
>
2020-12-27
</div>
</div>
</div>
</a>
</li>
<li>
<a
class=
"left-top"
title=
"前三季度主要指标由负转正 中国经济持续稳定恢复"
href=
"./../xwxq/index.html"
target=
"_blank"
>
<a
class=
"left-top"
title=
"前三季度主要指标由负转正 中国经济持续稳定恢复"
target=
"_blank"
>
前三季度主要指标由负转正 中国经济持续稳定恢复
</a>
<a
class=
"xw"
href=
"./../xwxq/index.html"
target=
"_blank"
>
...
...
Please
register
or
sign in
to post a comment