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
6b8ca01d
authored
2020-12-25 13:47:43 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:新闻详情
1 parent
7b5f456d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
13 deletions
staticJs/down.js
staticJs/flfg.js
staticJs/xyzc.js
staticJs/down.js
View file @
6b8ca01
...
...
@@ -17,17 +17,17 @@ document.writeln(" <div class=\'footer\'> ");
document
.
writeln
(
" <div class=\'system_service\'>"
);
document
.
writeln
(
" <ul class=\'\'>"
);
document
.
writeln
(
" <li>"
);
document
.
writeln
(
" <a href=\'\' title=\'公示公告\'>"
);
document
.
writeln
(
" <a href=\'
"
+
localhostPaht
+
"/staticViews/gsgg.html
\' title=\'公示公告\'>"
);
document
.
writeln
(
" <span>公示公告</span>"
);
document
.
writeln
(
" </a>"
);
document
.
writeln
(
" </li>"
);
document
.
writeln
(
" <li>"
);
document
.
writeln
(
" <a href=\'\' title=\'法律法规\'>"
);
document
.
writeln
(
" <a href=\'
"
+
localhostPaht
+
"/staticViews/flfg.html
\' title=\'法律法规\'>"
);
document
.
writeln
(
" <span>法律法规</span>"
);
document
.
writeln
(
" </a>"
);
document
.
writeln
(
" </li>"
);
document
.
writeln
(
" <li>"
);
document
.
writeln
(
" <a href=\'\' title=\'相应政策\'>"
);
document
.
writeln
(
" <a href=\'
"
+
localhostPaht
+
"/staticViews/xyzc.html
\' title=\'相应政策\'>"
);
document
.
writeln
(
" <span>相应政策</span>"
);
document
.
writeln
(
" </a>"
);
document
.
writeln
(
" </li>"
);
...
...
staticJs/flfg.js
View file @
6b8ca01
...
...
@@ -78,11 +78,13 @@ function HotArticle() {
success
:
function
(
result
)
{
//返回数据根据结果进行相应的处理
if
(
result
.
code
==
200
&&
result
.
data
!=
null
)
{
for
(
var
i
=
0
;
i
<
result
.
data
.
length
;
i
++
)
{
li
=
'<li>'
;
li
=
'<li class="tj"><a href="./xwxq.html?id='
+
result
.
data
[
i
].
id
+
'" target="_blank">'
;
if
(
result
.
data
[
i
].
cover
)
{
li
+=
'<img src="'
+
result
.
data
[
i
].
cover
+
'">'
;
li
+=
'<h3>'
+
result
.
data
[
i
].
headline
+
'</h3>'
;
li
+=
'<p class="recommend_date">'
+
result
.
data
[
i
].
deadtime
+
'</p>'
;
li
+=
'</li>'
;
}
li
+=
'<span class="tj-title">'
+
result
.
data
[
i
].
headline
+
'</span>'
;
li
+=
'<span class="tj-date">'
+
result
.
data
[
i
].
deadtime
+
'</span>'
;
li
+=
'</a></li>'
;
news_list_con
.
append
(
li
);
}
}
...
...
staticJs/xyzc.js
View file @
6b8ca01
...
...
@@ -2,10 +2,10 @@ $(function () {
layui
.
use
(
'element'
,
function
()
{
let
element
=
layui
.
element
;
});
addTabs
(
'#zwgk'
)
getLawsArticleList
()
getPolicyHotArticleList
()
HotArticle
()
addTabs
(
'#zwgk'
)
;
getLawsArticleList
()
;
getPolicyHotArticleList
()
;
HotArticle
()
;
})
// 获取相应政策表数据
...
...
@@ -78,11 +78,13 @@ function HotArticle() {
success
:
function
(
result
)
{
//返回数据根据结果进行相应的处理
if
(
result
.
code
==
200
&&
result
.
data
!=
null
)
{
for
(
var
i
=
0
;
i
<
result
.
data
.
length
;
i
++
)
{
li
=
'<li>'
;
li
=
'<li class="tj"><a href="./xwxq.html?id='
+
result
.
data
[
i
].
id
+
'" target="_blank">'
;
if
(
result
.
data
[
i
].
cover
)
{
li
+=
'<img src="'
+
result
.
data
[
i
].
cover
+
'">'
;
}
li
+=
'<h3>'
+
result
.
data
[
i
].
headline
+
'</h3>'
;
li
+=
'<p class="recommend_date">'
+
result
.
data
[
i
].
deadtime
+
'</p>'
;
li
+=
'</li>'
;
li
+=
'</
a></
li>'
;
news_list_con
.
append
(
li
);
}
}
...
...
Please
register
or
sign in
to post a comment