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
d8f93b5e
authored
2021-01-21 09:43:42 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:新闻动态
1 parent
b873b629
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
42 additions
and
23 deletions
staticCss/ggxq.css
staticJs/xwdt.js
staticViews/businessGuideDeatil.html
staticViews/xwdt.html
staticCss/ggxq.css
View file @
d8f93b5
...
...
@@ -166,4 +166,5 @@ div.navigation {
}
.download-attachment
a
:hover
{
color
:
#006cff
;
text-decoration
:
underline
;
}
\ No newline at end of file
...
...
staticJs/xwdt.js
View file @
d8f93b5
...
...
@@ -93,27 +93,29 @@ function PolicyHotArticle() {
}
layui
.
use
(
'laypage'
,
function
()
{
let
laypage
=
layui
.
laypage
;
laypage
.
render
({
elem
:
'page'
//注意,这里的 test1 是 ID,不用加 # 号
,
count
:
data
.
total
//数据总数,从服务端得到
,
limit
:
5
,
prev
:
'<'
,
next
:
'>'
,
theme
:
'#0091FF'
,
jump
:
function
(
obj
,
first
)
{
if
(
!
first
)
{
LoadNewsData
(
obj
.
curr
);
}
}
});
if
(
data
.
total
==
0
)
{
$
(
'#page'
).
hide
();
}
else
{
$
(
'#page'
).
show
();
}
})
// layui.use('laypage', function () {
// let laypage = layui.laypage;
// laypage.render({
// elem: 'page' //注意,这里的 test1 是 ID,不用加 # 号
// , count: 100 //数据总数,从服务端得到
// , limit: 5
// , prev: '<'
// , next: '>'
// , theme: '#0091FF'
// ,first: '首页'
// ,last: '尾页'
// , jump: function (obj, first) {
// if (!first) {
// LoadNewsData(obj.curr);
// }
// }
// });
// if(data.total ==0) {
// $('#page').hide();
// }else {
// $('#page').show();
// }
// })
var
data
=
{
//数据
"list"
:
[],
total
:
0
...
...
staticViews/businessGuideDeatil.html
View file @
d8f93b5
...
...
@@ -33,6 +33,7 @@
<div
class=
"notice_content"
id=
"newsDetail"
>
</div>
<div
class=
"download-attachment"
>
<span>
附件:
</span>
<a
href=
""
title =
"中文开放目录"
>
下载
</a><a
title =
"中文开放目录"
href=
""
>
下载
</a>
</div>
</div>
...
...
@@ -40,5 +41,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/businessGuideDeatil.js"
></script>
</html>
\ No newline at end of file
...
...
staticViews/xwdt.html
View file @
d8f93b5
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
xmlns=
"http://www.w3.org/1999/xhtml"
>
<head>
<style>
</style>
...
...
@@ -9,6 +10,7 @@
<script
type=
"text/javascript"
src=
"../staticJs/head.js"
></script>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../staticCss/xwdt.css"
>
</head>
<body>
<div
class=
"navigation_crumbs"
>
<div
class=
"contentBox"
>
...
...
@@ -22,7 +24,21 @@
<div
class=
"left"
>
<ul
class=
"leftContainer"
id=
'ulNews'
>
</ul>
<div
id=
"page"
></div>
<div
id=
"page"
>
<div
class=
"layui-box layui-laypage layui-laypage-molv"
>
<a
href=
"javascript:;"
class=
"layui-laypage-prev"
>
<
</a>
<a
href=
"javascript:;"
class=
"layui-laypage-first"
title=
"首页"
>
首页
</a>
<a
href=
"javascript:;"
>
1
</a>
<span
class=
"layui-laypage-curr"
>
<em
class=
"layui-laypage-em"
style=
"background-color:#0091FF;"
></em>
<em>
2
</em>
</span>
<a
href=
"javascript:;"
>
3
</a>
<a
href=
"javascript:;"
class=
"layui-laypage-last"
title=
"尾页"
>
尾页
</a>
<a
href=
"javascript:;"
class=
"layui-laypage-next"
>
>
</a>
</div>
</div>
</div>
<div
class=
"right"
>
<div
class=
"right"
>
...
...
Please
register
or
sign in
to post a comment