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
3f02ea81
authored
2021-01-18 16:04:23 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:静态化
1 parent
3dbf5444
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
18 additions
and
97 deletions
staticCss/gsgg.css
staticJs/flfg.js
staticJs/gsgg.js
staticJs/head.js
staticJs/pageHome.js
staticJs/xyzc.js
staticViews/gsgg.html
staticCss/gsgg.css
View file @
3f02ea8
::-webkit-input-placeholder
{
/* WebKit browsers */
font-size
:
13px
;
color
:
#9B9B9B
;
}
::-moz-placeholder
{
/* Mozilla Firefox 19+ */
font-size
:
13px
;
color
:
#9B9B9B
;
}
:-ms-input-placeholder
{
/* Internet Explorer 10+ */
font-size
:
13px
;
color
:
#9B9B9B
;
}
input
{
padding-left
:
10px
;
}
div
.subject
h2
a
:hover
{
color
:
#f46143
;
}
div
.subject
{
margin
:
0
auto
;
float
:
none
;
clear
:
both
;
position
:
relative
;
}
/*新闻 */
div
.top-logo
{
width
:
1200px
;
height
:
70px
;
padding-top
:
20px
;
}
div
.top-logo
::-webkit-input-placeholder
{
/* WebKit browsers */
font-size
:
13px
;
}
div
.top-logo
::-moz-placeholder
{
/* Mozilla Firefox 19+ */
font-size
:
13px
;
}
div
.top-logo
:-ms-input-placeholder
{
/* Internet Explorer 10+ */
font-size
:
13px
;
}
.top_logo_content
{
height
:
40px
;
width
:
100%
;
margin
:
0
auto
;
}
div
.top-logo
.top_logo_search
{
float
:
left
;
width
:
350px
;
position
:
relative
;
margin-left
:
400px
;
}
div
.top-logo
.top_logo_search
input
{
border-radius
:
50px
;
}
div
.top-logo
.login
{
float
:
right
;
margin-top
:
8px
;
}
div
.top-logo
.top_logo_search
i
{
position
:
absolute
;
right
:
10px
;
top
:
11px
;
cursor
:
pointer
;
}
/*------------------首页 end------------*/
.top-logo
ul
li
{
display
:
inline-block
;
padding
:
0
8px
;
...
...
staticJs/flfg.js
View file @
3f02ea8
...
...
@@ -28,7 +28,7 @@ function getLawsArticleList() {
data
.
total
=
result
.
data
.
total
for
(
var
i
=
0
;
i
<
result
.
data
.
records
.
length
;
i
++
)
{
li
=
'<li>'
;
li
+=
'<a href="./
flfgxq.html?id='
+
result
.
data
.
records
[
i
].
id
+
'
" title="'
+
result
.
data
.
records
[
i
].
headline
+
'" target="_blank">'
li
+=
'<a href="./
law/'
+
result
.
data
.
records
[
i
].
id
+
'.html
" title="'
+
result
.
data
.
records
[
i
].
headline
+
'" target="_blank">'
li
+=
'<p>'
+
result
.
data
.
records
[
i
].
headline
+
'</p>'
;
li
+=
'<span>'
+
result
.
data
.
records
[
i
].
deadtime
+
'</span>'
;
li
+=
'</a>'
;
...
...
staticJs/gsgg.js
View file @
3f02ea8
...
...
@@ -16,12 +16,12 @@ $(function () {
})
// 选项卡切换数据
layui
.
use
(
'element'
,
function
()
{
layui
.
use
(
'element'
,
function
()
{
var
element
=
layui
.
element
;
//监听Tab切换,以改变地址hash值
element
.
on
(
'tab(tabNav)'
,
function
()
{
element
.
on
(
'tab(tabNav)'
,
function
()
{
data
.
noticeType
=
this
.
getAttribute
(
'lay-id'
)
if
(
this
.
getAttribute
(
'lay-id'
)
==
0
)
{
if
(
this
.
getAttribute
(
'lay-id'
)
==
0
)
{
data
.
noticeType
=
undefined
}
initData
()
...
...
@@ -71,9 +71,9 @@ function HotArticle() {
if
(
result
.
code
==
200
&&
result
.
data
!=
null
)
{
for
(
var
i
=
0
;
i
<
result
.
data
.
length
;
i
++
)
{
if
(
i
==
3
)
return
;
li
=
'<li class="tj"><a href="./xwxq.html?id='
+
result
.
data
[
i
].
id
+
'" target="_blank">'
;
if
(
result
.
data
[
i
].
preViewUrl
)
{
li
+=
'<img src="'
+
result
.
data
[
i
].
preViewUrl
+
'">'
;
li
=
'<li class="tj"><a href="./xwxq.html?id='
+
result
.
data
[
i
].
id
+
'" target="_blank">'
;
if
(
result
.
data
[
i
].
preViewUrl
)
{
li
+=
'<img src="'
+
result
.
data
[
i
].
preViewUrl
+
'">'
;
}
li
+=
'<span class="tj-title">'
+
result
.
data
[
i
].
headline
+
'</span>'
;
li
+=
'<span class="tj-date">'
+
result
.
data
[
i
].
deadtime
+
'</span>'
;
...
...
@@ -98,7 +98,7 @@ function PolicyHotArticle() {
if
(
result
.
code
==
200
&&
result
.
data
!=
null
)
{
for
(
var
i
=
0
;
i
<
result
.
data
.
length
;
i
++
)
{
li
=
'<li class="zcfg">'
li
+=
'<a href="./xyzcxq.html?id='
+
result
.
data
[
i
].
id
+
'" title="'
+
result
.
data
[
i
].
headline
+
'" target="_blank">'
li
+=
'<a href="./xyzcxq.html?id='
+
result
.
data
[
i
].
id
+
'" title="'
+
result
.
data
[
i
].
headline
+
'" target="_blank">'
li
+=
'<div class="zcfg-top">'
+
result
.
data
[
i
].
headline
+
'</div>'
li
+=
'<p class="zcfg-body">'
+
result
.
data
[
i
].
summary
+
'</p>'
li
+=
'<div class="zcfg-bottom">'
+
result
.
data
[
i
].
deadtime
+
'</div>'
...
...
@@ -128,9 +128,9 @@ layui.use('laypage', function () {
}
}
});
if
(
data
.
total
==
0
)
{
if
(
data
.
total
==
0
)
{
$
(
'#test1'
).
hide
();
}
else
{
}
else
{
$
(
'#test1'
).
show
();
}
});
...
...
staticJs/head.js
View file @
3f02ea8
...
...
@@ -15,8 +15,8 @@ document.writeln(" <link rel=\'icon\' href=\'favicon.ico\' type=\'image/x-ico
document
.
writeln
(
" <meta name=\'description\' content=\'\' />"
);
document
.
writeln
(
" <meta name=\'Keywords\' content=\'\' />"
);
document
.
writeln
(
" <link rel=\'stylesheet\' type=\'text/css\' href=\'"
+
localhostPaht
+
"/staticLib/layui/css/layui.css\' />"
);
document
.
writeln
(
" <link type=\'text/css\' rel=\'stylesheet\' href=\'"
+
localhostPaht
+
"/staticCss/common.css\' />"
);
document
.
writeln
(
" <link type=\'text/css\' rel=\'stylesheet\' href=\'"
+
localhostPaht
+
"/staticCss/header.css\' />"
);
document
.
writeln
(
" <link type=\'text/css\' rel=\'stylesheet\' href=\'"
+
localhostPaht
+
"/staticCss/common.css\' />"
);
document
.
writeln
(
"<script type='text/javascript' src=\'"
+
localhostPaht
+
"/staticLib/jquery/jquery.min.js\'></script>"
);
document
.
writeln
(
"<script type='text/javascript' src=\'"
+
localhostPaht
+
"/staticJs/login.js\'></script>"
);
document
.
writeln
(
"<script type='text/javascript' src=\'"
+
localhostPaht
+
"/staticJs/common.js\'></script>"
);
...
...
staticJs/pageHome.js
View file @
3f02ea8
...
...
@@ -91,9 +91,9 @@ function NewsData() {
if
(
i
==
6
)
return
;
publishTime
=
CutDate
(
result
.
data
[
i
].
publishTime
);
if
(
result
.
data
[
i
].
preViewUrl
)
{
li
=
'<li url="'
+
result
.
data
[
i
].
preViewUrl
+
'"><a href="./staticViews/
xwxq.html?id='
+
result
.
data
[
i
].
id
+
'
" title="'
+
result
.
data
[
i
].
headline
+
'" target="_blank">'
;
li
=
'<li url="'
+
result
.
data
[
i
].
preViewUrl
+
'"><a href="./staticViews/
news/'
+
result
.
data
[
i
].
id
+
'.html
" title="'
+
result
.
data
[
i
].
headline
+
'" target="_blank">'
;
}
else
{
li
=
'<li><a href="./staticViews/
xwxq.html?id='
+
result
.
data
[
i
].
id
+
'
" title="'
+
result
.
data
[
i
].
headline
+
'" target="_blank">'
;
li
=
'<li><a href="./staticViews/
news/'
+
result
.
data
[
i
].
id
+
'.html
" title="'
+
result
.
data
[
i
].
headline
+
'" target="_blank">'
;
}
li
+=
'<div class="news_item">'
;
if
(
recentlyDay
.
indexOf
(
publishTime
)
>
-
1
)
{
...
...
@@ -130,7 +130,7 @@ function NoticeData() {
if
(
result
.
code
==
200
&&
result
.
data
!=
null
)
{
for
(
var
i
=
0
;
i
<
result
.
data
.
length
;
i
++
)
{
if
(
i
==
6
)
return
;
li
=
'<li class="item_notice"><a href="./staticViews/
ggxq.html?id='
+
result
.
data
[
i
].
id
+
'
" title="'
+
result
.
data
[
i
].
title
+
'" target="_blank">'
;
li
=
'<li class="item_notice"><a href="./staticViews/
notice/'
+
result
.
data
[
i
].
id
+
'.html
" title="'
+
result
.
data
[
i
].
title
+
'" target="_blank">'
;
li
+=
'<p>'
+
result
.
data
[
i
].
title
+
'</P>'
;
if
(
result
.
data
[
i
].
noticeType
==
1
)
{
li
+=
'<svg class="icon svg-icon" aria-hidden="true"> <use xlink:href="#icongongshi"></use> </svg>'
;
...
...
@@ -161,7 +161,7 @@ function LawsData() {
if
(
result
.
code
==
200
&&
result
.
data
!=
null
)
{
for
(
var
i
=
0
;
i
<
result
.
data
.
length
;
i
++
)
{
if
(
i
==
6
)
return
;
li
=
'<li><a href="./staticViews/
flfgxq.html?id='
+
result
.
data
[
i
].
id
+
'
" title="'
+
result
.
data
[
i
].
headline
+
'" target="_blank">'
+
result
.
data
[
i
].
headline
;
li
=
'<li><a href="./staticViews/
law/'
+
result
.
data
[
i
].
id
+
'.html
" title="'
+
result
.
data
[
i
].
headline
+
'" target="_blank">'
+
result
.
data
[
i
].
headline
;
li
+=
'</a></li>'
;
ulTag
.
append
(
li
);
}
...
...
@@ -183,7 +183,7 @@ function policiesData() {
if
(
result
.
code
==
200
&&
result
.
data
!=
null
)
{
for
(
var
i
=
0
;
i
<
result
.
data
.
length
;
i
++
)
{
if
(
i
==
6
)
return
;
li
=
'<li><a href="./staticViews/
xyzcxq.html?id='
+
result
.
data
[
i
].
id
+
'
" title="'
+
result
.
data
[
i
].
headline
+
'" target="_blank">'
+
result
.
data
[
i
].
headline
;
li
=
'<li><a href="./staticViews/
policy/'
+
result
.
data
[
i
].
id
+
'.html
" title="'
+
result
.
data
[
i
].
headline
+
'" target="_blank">'
+
result
.
data
[
i
].
headline
;
li
+=
'</a></li>'
;
policies
.
append
(
li
);
}
...
...
staticJs/xyzc.js
View file @
3f02ea8
...
...
@@ -28,7 +28,7 @@ function getLawsArticleList() {
data
.
total
=
result
.
data
.
total
;
for
(
var
i
=
0
;
i
<
result
.
data
.
records
.
length
;
i
++
)
{
li
=
'<li>'
;
li
+=
'<a href="./
xyzcxq.html?id='
+
result
.
data
.
records
[
i
].
id
+
'
" title="'
+
result
.
data
.
records
[
i
].
headline
+
'" target="_blank">'
li
+=
'<a href="./
policy/'
+
result
.
data
.
records
[
i
].
id
+
'.html
" title="'
+
result
.
data
.
records
[
i
].
headline
+
'" target="_blank">'
li
+=
'<p>'
+
result
.
data
.
records
[
i
].
headline
+
'</p>'
;
li
+=
'<span>'
+
result
.
data
.
records
[
i
].
deadtime
+
'</span>'
;
li
+=
'</a>'
;
...
...
staticViews/gsgg.html
View file @
3f02ea8
<!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>
...
...
@@ -73,7 +72,7 @@
<script
id=
"demo"
type=
"text/html"
>
{{
#
layui
.
each
(
d
.
list
,
function
(
index
,
item
){
}}
<
li
>
<
a
href
=
'./
ggxq.html?id={{item.id}}
'
target
=
"_blank"
>
<
a
href
=
'./
notice/{{item.id}}.html
'
target
=
"_blank"
>
<
div
class
=
"gg"
>
{{
#
if
(
item
.
noticeType
==
1
){
}}
<
svg
class
=
"icon svg-icon"
aria
-
hidden
=
"true"
>
...
...
Please
register
or
sign in
to post a comment