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
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
14 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>
...
...
@@ -99,8 +95,12 @@
<
/a
>
<
a
class
=
"xw"
href
=
"./news/xwxq.html"
target
=
"_blank"
>
<
div
class
=
"xw-left"
>
<
img
src
=
"{{ item.cover }}"
>
{{
#
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"
>
...
...
Please
register
or
sign in
to post a comment