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
e62f47ee
authored
2021-01-22 10:23:31 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:法律法规
1 parent
7e16013c
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
56 additions
and
80 deletions
index.html
staticJs/flfg.js
staticJs/header.js
staticJs/xyzc.js
staticViews/gsgg.html
index.html
View file @
e62f47e
...
...
@@ -41,7 +41,7 @@
<dl
class=
'layui-nav-child'
>
<dd><a
href=
'/staticViews/policyList/1.html'
>
相应政策
</a></dd>
<dd><a
href=
'/staticViews/lawList/1.html'
>
法律法规
</a></dd>
<dd><a
href=
'/staticViews/
gsgg
.html'
>
公示公告
</a></dd>
<dd><a
href=
'/staticViews/
noticeList/1
.html'
>
公示公告
</a></dd>
</dl>
</li>
<li
id=
'bszn'
class=
'layui-nav-item'
><a
href=
'/staticViews/bszn.html'
...
...
staticJs/flfg.js
View file @
e62f47e
...
...
@@ -3,7 +3,7 @@ $(function () {
let
element
=
layui
.
element
;
});
addTabs
(
'#zwgk'
)
getLawsArticleList
()
//
getLawsArticleList()
getPolicyHotArticleList
()
HotArticle
()
})
...
...
@@ -104,29 +104,29 @@ function HotArticle() {
layui
.
use
(
'laypage'
,
function
()
{
var
laypage
=
layui
.
laypage
;
//执行一个laypage实例
laypage
.
render
({
elem
:
'page'
//注意,这里的 test1 是 ID,不用加 # 号
,
count
:
data
.
total
//数据总数,从服务端得到
,
limit
:
data
.
pageSize
,
prev
:
'<'
,
next
:
'>'
,
theme
:
'#0091FF'
,
jump
:
function
(
obj
,
first
)
{
data
.
currentPage
=
obj
.
curr
if
(
!
first
)
{
getLawsArticleList
();
}
}
});
if
(
data
.
total
==
0
)
{
$
(
'#page'
).
hide
();
}
else
{
$
(
'#page'
).
show
();
}
});
//
layui.use('laypage', function () {
//
var laypage = layui.laypage;
//
//执行一个laypage实例
//
laypage.render({
//
elem: 'page' //注意,这里的 test1 是 ID,不用加 # 号
//
, count: data.total //数据总数,从服务端得到
//
, limit: data.pageSize
//
, prev: '<'
//
, next: '>'
//
, theme: '#0091FF'
//
, jump: function (obj, first) {
//
data.currentPage = obj.curr
//
if (!first) {
//
getLawsArticleList();
//
}
//
}
//
});
//
if (data.total == 0) {
//
$('#page').hide();
//
}else {
//
$('#page').show();
//
}
//
});
var
data
=
{
//数据
"list"
:
[],
total
:
undefined
,
...
...
staticJs/header.js
View file @
e62f47e
$
(
function
()
{
newsCenterData
();
//
fetchNewsData
();
fetchNewsData
(
getItem
(
'myCookie'
).
username
);
})
function
newsCenterData
()
{
$
(
document
).
on
(
"mouseover"
,
".sysNewsList .newsDetail"
,
function
(
e
)
{
...
...
staticJs/xyzc.js
View file @
e62f47e
...
...
@@ -3,7 +3,7 @@ $(function () {
let
element
=
layui
.
element
;
});
addTabs
(
'#zwgk'
);
getLawsArticleList
();
//
getLawsArticleList();
getPolicyHotArticleList
();
HotArticle
();
})
...
...
@@ -106,29 +106,29 @@ function HotArticle() {
layui
.
use
(
'laypage'
,
function
()
{
var
laypage
=
layui
.
laypage
;
//执行一个laypage实例
laypage
.
render
({
elem
:
'page'
//注意,这里的 test1 是 ID,不用加 # 号
,
count
:
data
.
total
//数据总数,从服务端得到
,
limit
:
data
.
pageSize
,
prev
:
'<'
,
next
:
'>'
,
theme
:
'#0091FF'
,
jump
:
function
(
obj
,
first
)
{
data
.
currentPage
=
obj
.
curr
if
(
!
first
)
{
getLawsArticleList
();
}
}
});
if
(
data
.
total
==
0
)
{
$
(
'#page'
).
hide
();
}
else
{
$
(
'#page'
).
show
();
}
});
//
layui.use('laypage', function () {
//
var laypage = layui.laypage;
//
//执行一个laypage实例
//
laypage.render({
//
elem: 'page' //注意,这里的 test1 是 ID,不用加 # 号
//
, count: data.total //数据总数,从服务端得到
//
, limit: data.pageSize
//
, prev: '<'
//
, next: '>'
//
, theme: '#0091FF'
//
, jump: function (obj, first) {
//
data.currentPage = obj.curr
//
if (!first) {
//
getLawsArticleList();
//
}
//
}
//
});
//
if (data.total ==0 ) {
//
$('#page').hide();
//
}else {
//
$('#page').show();
//
}
//
});
var
data
=
{
//数据
"list"
:
[],
total
:
0
,
...
...
staticViews/gsgg.html
View file @
e62f47e
...
...
@@ -6,15 +6,15 @@
</style>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=utf-8"
/>
<title>
公示公告
</title>
<script
type=
"text/javascript"
src=
"../staticJs/head.js"
></script>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../staticCss/gsgg.css"
>
<script
type=
"text/javascript"
src=
"../
../
staticJs/head.js"
></script>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"../
../
staticCss/gsgg.css"
>
</head>
<body>
<div
class=
"navigation_crumbs"
>
<div
class=
"contentBox"
>
<span
class=
"layui-breadcrumb"
>
<a
href=
"../index.html"
>
首页
</a>
<a
href=
"../
../
index.html"
>
首页
</a>
<a>
政务公开
</a>
<a><cite>
公示公告
</cite></a>
</span>
...
...
@@ -52,31 +52,7 @@
</div>
</div>
</body>
<script
type=
"text/javascript"
src=
"../staticJs/common.js"
></script>
<script
type=
"text/javascript"
src=
"../staticJs/down.js"
></script>
<script
type=
"text/javascript"
src=
"../staticJs/gsgg.js"
></script>
<script
id=
"demo"
type=
"text/html"
>
{{
#
layui
.
each
(
d
.
list
,
function
(
index
,
item
){
}}
<
li
>
<
a
href
=
'./notice/{{item.id}}.html'
target
=
"_blank"
>
<
div
class
=
"gg"
>
{{
#
if
(
item
.
noticeType
==
1
){
}}
<
svg
class
=
"icon svg-icon"
aria
-
hidden
=
"true"
>
<
use
xlink
:
href
=
"#icongongshi"
><
/use
>
<
/svg
>
{{
#
}
}}
{{
#
if
(
item
.
noticeType
==
2
){
}}
<
svg
class
=
"icon svg-icon"
aria
-
hidden
=
"true"
>
<
use
xlink
:
href
=
"#icongonggao1"
><
/use
>
<
/svg
>
{{
#
}
}}
<
p
class
=
"item_list"
>
{{
item
.
title
}}
<
/p
>
<
/div
>
<
/a
>
<
/li
>
{{
#
});
}}
</script>
<script
type=
"text/javascript"
src=
"../../staticJs/common.js"
></script>
<script
type=
"text/javascript"
src=
"../../staticJs/down.js"
></script>
<script
type=
"text/javascript"
src=
"../../staticJs/gsgg.js"
></script>
</html>
\ No newline at end of file
...
...
Please
register
or
sign in
to post a comment