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
baefa5c3
authored
2021-01-21 15:10:17 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:新闻动态
1 parent
772380da
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
53 deletions
staticJs/xwdt.js
staticViews/xwdt.html
staticJs/xwdt.js
View file @
baefa5c
layui
.
use
(
'element'
,
function
()
{
let
element
=
layui
.
element
;
//导航的hover效果、二级菜单等功能,需要依赖element模块
});
$
(
function
()
{
layui
.
use
(
'element'
,
function
()
{
let
element
=
layui
.
element
;
//导航的hover效果、二级菜单等功能,需要依赖element模块
});
LoadNewsData
();
// LoadNewsData();
HotArticle
();
PolicyHotArticle
();
addTabs
(
'#news'
);
...
...
staticViews/xwdt.html
View file @
baefa5c
...
...
@@ -60,53 +60,4 @@
<script
type=
"text/javascript"
src=
"../staticJs/common.js"
></script>
<script
type=
"text/javascript"
src=
"../staticJs/down.js"
></script>
<script
type=
"text/javascript"
src=
"../staticJs/xwdt.js"
></script>
<script
id=
"demo"
type=
"text/html"
>
{{
#
layui
.
each
(
d
.
list
,
function
(
index
,
item
){
}}
{{
#
if
(
item
.
isTop
==
1
){
}}
<
li
class
=
"sticky"
>
{{
#
}
}}
{{
#
if
(
item
.
isTop
!=
1
){
}}
<
li
>
{{
#
}
}}
<
a
class
=
"left-top"
title
=
" {{ item.headline }}"
href
=
'./news/{{item.id}}.html'
target
=
"_blank"
>
{{
item
.
headline
}}
<
/a
>
<
a
class
=
"xw"
href
=
'./news/{{item.id}}.html'
target
=
"_blank"
>
{{
#
if
(
item
.
isTop
==
1
){
}}
<
img
class
=
"istop"
src
=
"../staticImages/ding.png"
>
{{
#
}
}}
<
div
class
=
"newsCon"
>
<
div
class
=
"xw-left"
>
{{
#
if
(
item
.
preViewUrl
!=
null
){
}}
<
img
src
=
"{{ item.preViewUrl }}"
>
{{
#
}
}}
<
/div
>
<
div
class
=
"xw-right"
>
{{
#
if
(
item
.
summary
!==
null
){
}}
{{
item
.
summary
}}
{{
#
}
}}
<
/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
>
<
/li
>
{{
#
});
}}
</script>
</html>
\ No newline at end of file
...
...
Please
register
or
sign in
to post a comment