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
ae70aa11
authored
2020-12-24 17:09:39 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:新闻
1 parent
b79c5e97
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
50 additions
and
46 deletions
staticCss/xwdt.css
staticJs/login.js
staticViews/xwdt.html
staticCss/xwdt.css
View file @
ae70aa1
...
...
@@ -115,7 +115,7 @@ div.subject {
.xw
{
display
:
block
;
padding-top
:
10px
;
height
:
15
0px
;
min-height
:
8
0px
;
cursor
:
pointer
;
}
...
...
@@ -161,30 +161,9 @@ div.subject {
color
:
#686666
;
}
.left-body
{
width
:
687px
;
height
:
72px
;
font-size
:
14px
;
font-weight
:
400
;
color
:
#6D7278
;
line-height
:
26px
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
display
:
-webkit-box
;
-webkit-line-clamp
:
3
;
-webkit-box-orient
:
vertical
;
}
.left-buttom
{
overflow
:
hidden
;
color
:
#9B9B9B
;
padding-top
:
20px
;
}
.left-buttom
.icon
{
width
:
36px
;
height
:
24px
;
position
:
relative
;
top
:
6px
;
}
.left-buttom
div
:nth-child
(
2
)
{
margin-left
:
60px
;
...
...
@@ -314,4 +293,22 @@ div.subject {
}
#regulation
{
line-height
:
0
;
}
.newsBottom
{
overflow
:
hidden
;
margin-top
:
20
px
;
}
.newsBottom
.newIcon
{
float
:
left
;
position
:
relative
;
top
:
10px
;
}
.newsBottom
.newIcon
.icon
{
width
:
36px
;
height
:
24px
;
position
:
relative
;
top
:
6px
;
}
.newsCon
{
overflow
:
hidden
;
}
\ No newline at end of file
...
...
staticJs/login.js
View file @
ae70aa1
...
...
@@ -56,6 +56,13 @@ $(function () {
$
(
'.loginButton'
).
removeClass
(
'PersonLogin'
)
$
(
'.personalCenter'
).
addClass
(
'show'
);
}
$
(
window
).
bind
(
'beforeunload'
,
function
(
event
)
{
var
n
=
window
.
event
.
screenX
-
window
.
screenLeft
;
var
b
=
n
>
document
.
documentElement
.
scrollWidth
-
20
;
if
(
b
&&
window
.
event
.
clientY
<
0
||
window
.
event
.
altKey
)
{
delCookie
();
}
});
})
function
delCookie
()
{
var
keys
=
document
.
cookie
.
match
(
/
[^
=;
]
+
(?=
=
)
/g
)
...
...
staticViews/xwdt.html
View file @
ae70aa1
...
...
@@ -51,33 +51,33 @@
{{
item
.
headline
}}
<
/a
>
<
a
class
=
"xw"
href
=
'./xwxq.html?id={{item.id}}'
target
=
"_blank"
>
<
div
class
=
"
xw-left
"
>
{{
#
if
(
item
.
cover
!=
null
){
}}
<
img
src
=
"{{ item.cover }}"
>
{{
#
}
}}
<
/div
>
<
div
class
=
"xw-right"
>
<
div
class
=
"
left-body
"
>
<
div
class
=
"
newsCon
"
>
<
div
class
=
"xw-left"
>
{{
#
if
(
item
.
cover
!=
null
){
}}
<
img
src
=
"{{ item.cover }}"
>
{{
#
}
}}
<
/div
>
<
div
class
=
"
xw-right
"
>
{{
#
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
class
=
"newsBottom"
>
<
div
class
=
"newIcon
"
>
<
svg
class
=
"icon svg-icon"
aria
-
hidden
=
"true"
>
<
use
xlink
:
href
=
"#iconchakan"
><
/use
>
<
/svg>
<
span
>
{{
item
.
pageviews
}}
<
/span
>
<
/
div
>
<
div
class
=
"newIcon
"
>
<
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
>
<
/a
>
...
...
Please
register
or
sign in
to post a comment