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
31ad8541
authored
2020-12-25 09:01:12 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:新闻动态列表的页面的修改
1 parent
22304f3e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
staticCss/xwdt.css
staticJs/xwdt.js
staticCss/xwdt.css
View file @
31ad854
...
...
@@ -311,4 +311,8 @@ div.subject {
}
.newsCon
{
overflow
:
hidden
;
}
.tj
{
margin
:
10px
0
;
cursor
:
pointer
;
}
\ No newline at end of file
...
...
staticJs/xwdt.js
View file @
31ad854
...
...
@@ -49,11 +49,13 @@ function HotArticle() {
success
:
function
(
result
)
{
//返回数据根据结果进行相应的处理
if
(
result
.
code
==
200
&&
result
.
data
!=
null
)
{
for
(
var
i
=
0
;
i
<
result
.
data
.
length
;
i
++
)
{
li
=
'<li class="tj">'
;
li
+=
'<img src="'
+
result
.
data
[
i
].
cover
+
'">'
;
li
=
'<li class="tj"><a href="./xwxq.html?id='
+
result
.
data
[
i
].
id
+
'" target="_blank">'
;
if
(
result
.
data
[
i
].
cover
)
{
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>'
;
li
+=
'</
a></
li>'
;
recommend
.
append
(
li
);
}
}
...
...
Please
register
or
sign in
to post a comment