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
671438d8
authored
2020-11-25 15:04:29 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:新闻动态
1 parent
c1245dec
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
47 additions
and
48 deletions
staticCss/xwdt.css
staticJs/xwdt.js
staticViews/xwdt.html
staticCss/xwdt.css
View file @
671438d
...
...
@@ -139,7 +139,7 @@ div.subject {
.leftContainer
{
border-right
:
1px
solid
#DEDEDE
;
margin-top
:
41px
;
padding-bottom
:
2
0px
;
padding-bottom
:
6
0px
;
}
.leftContainer
li
{
border-bottom
:
1px
solid
#EAEAEA
;
...
...
@@ -150,11 +150,10 @@ div.subject {
}
.left-top
{
width
:
408px
;
height
:
18px
;
font-size
:
18px
;
font-weight
:
bold
;
color
:
#686666
;
line-height
:
18
px
;
line-height
:
21
px
;
cursor
:
pointer
;
}
.left-top
:hover
{
...
...
@@ -201,15 +200,15 @@ div.subject {
}
#page
{
margin-top
:
20
px
;
margin-top
:
-35
px
;
text-align
:
center
;
margin-bottom
:
5
0px
;
margin-bottom
:
6
0px
;
}
.right
{
width
:
200px
;
margin-top
:
36
px
;
margin-left
:
1
5
px
;
margin-top
:
20
px
;
margin-left
:
1
0
px
;
}
.right-top
{
...
...
staticJs/xwdt.js
View file @
671438d
...
...
@@ -37,7 +37,7 @@ $(function () {
function
LoadNewsData
()
{
$
.
ajax
({
type
:
"get"
,
//提交方式
url
:
portal
.
api_url
+
"/hlwj/Mh/getNewsArticleList"
,
//路径
url
:
portal
.
api_url
+
"/hlwj/Mh
News
/getNewsArticleList"
,
//路径
data
:{
"currentPage"
:
1
,
"pageSize"
:
10
...
...
staticViews/xwdt.html
View file @
671438d
...
...
@@ -23,14 +23,10 @@
<div
class=
"leftandright"
>
<div
class=
"left"
>
<ul
class=
"leftContainer"
id=
'ulNews'
>
</ul>
<div
id=
"page"
></div>
</div>
<div
class=
"right"
>
<div
class=
"right-top"
>
<h2>
新闻推荐
</h2>
</div>
<div
class=
"right"
>
<div
class=
"right-top"
>
<h2>
新闻推荐
</h2>
...
...
@@ -93,42 +89,46 @@
<script
type=
"text/javascript"
src=
"../staticJs/xwdt.js"
></script>
<script
id=
"demo"
type=
"text/html"
>
{{
#
layui
.
each
(
d
.
list
,
function
(
index
,
item
){
}}
<
li
>
<
a
class
=
"left-top"
title
=
" {{ item.headline }}"
href
=
"./xwxq.html"
target
=
"_blank"
>
{{
item
.
headline
}}
<
/a
>
<
a
class
=
"xw"
href
=
"./news/xwxq.html"
target
=
"_blank"
>
<
div
class
=
"xw-left"
>
<
img
src
=
"{{ item.cover }}"
>
<
/div
>
<
div
class
=
"xw-right"
>
<
div
class
=
"left-body"
>
{{
#
if
(
item
.
summary
!==
null
){
}}
{{
item
.
summary
}}
{{
#
}
}}
<
/div
>
<
div
class
=
"left-buttom"
>
<
div
>
<
svg
class
=
"icon svg-icon"
aria
-
hidden
=
"true"
>
<
use
xlink
:
href
=
"#iconchakan"
><
/use
>
<
/svg>
<
span
>
{{
item
.
pageviews
}}
<
/span
>
<
/div
>
<
div
>
<
svg
class
=
"icon svg-icon"
aria
-
hidden
=
"true"
>
<
use
xlink
:
href
=
"#iconpinglun"
><
/use
>
<
/svg
>
<
span
>
{{
item
.
commentnum
}}
<
/span
>
<
/div
>
<
div
class
=
"left-buttom-date"
>
{{
CutDate
(
item
.
publishTime
)
}}
<
/div
>
<
/div
>
<
/div
>
<
/a
>
<
/li
>
{{
#
});
}}
<
li
>
<
a
class
=
"left-top"
title
=
" {{ item.headline }}"
href
=
"./xwxq.html"
target
=
"_blank"
>
{{
item
.
headline
}}
<
/a
>
<
a
class
=
"xw"
href
=
"./news/xwxq.html"
target
=
"_blank"
>
<
div
class
=
"xw-left"
>
{{
#
if
(
item
.
cover
!=
null
){
}}
<
img
src
=
"{{ item.cover }}"
>
{{
#
}
}}
{{
#
if
(
item
.
cover
==
null
){
}}
<
img
src
=
"../staticImages/news_demo.jpg"
>
{{
#
}
}}
<
/div
>
<
div
class
=
"xw-right"
>
<
div
class
=
"left-body"
>
{{
#
if
(
item
.
summary
!==
null
){
}}
{{
item
.
summary
}}
{{
#
}
}}
<
/div
>
<
div
class
=
"left-buttom"
>
<
div
>
<
svg
class
=
"icon svg-icon"
aria
-
hidden
=
"true"
>
<
use
xlink
:
href
=
"#iconchakan"
><
/use
>
<
/svg>
<
span
>
{{
item
.
pageviews
}}
<
/span
>
<
/div
>
<
div
>
<
svg
class
=
"icon svg-icon"
aria
-
hidden
=
"true"
>
<
use
xlink
:
href
=
"#iconpinglun"
><
/use
>
<
/svg
>
<
span
>
{{
item
.
commentnum
}}
<
/span
>
<
/div
>
<
div
class
=
"left-buttom-date"
>
{{
CutDate
(
item
.
publishTime
)
}}
<
/div
>
<
/div
>
<
/div
>
<
/a
>
<
/li
>
{{
#
});
}}
</script>
</html>
\ No newline at end of file
...
...
Please
register
or
sign in
to post a comment