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
7e16013c
authored
2021-01-22 09:58:13 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:法律法规
1 parent
ae98cfd9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
4 deletions
index.html
staticJs/head.js
staticJs/header.js
index.html
View file @
7e16013
...
...
@@ -39,8 +39,8 @@
<li
id=
'zwgk'
class=
'layui-nav-item'
>
<a
href=
'javascript:;'
>
政务公开
</a>
<dl
class=
'layui-nav-child'
>
<dd><a
href=
'/staticViews/
xyzc
.html'
>
相应政策
</a></dd>
<dd><a
href=
'/staticViews/
flfg
.html'
>
法律法规
</a></dd>
<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>
</dl>
</li>
...
...
staticJs/head.js
View file @
7e16013
...
...
@@ -45,8 +45,8 @@ document.writeln(" <li id='news' class=\'layui-nav-item\'><a href=\'"
document
.
writeln
(
" <li id='zwgk' class=\'layui-nav-item\'>"
);
document
.
writeln
(
" <a href=\'javascript:;\'>政务公开</a>"
);
document
.
writeln
(
" <dl class=\'layui-nav-child\'>"
);
document
.
writeln
(
" <dd><a href=\'"
+
localhostPaht
+
"/staticViews/
xyzc
.html\'>相应政策</a></dd>"
);
document
.
writeln
(
" <dd><a href=\'"
+
localhostPaht
+
"/staticViews/
flfg
.html\'>法律法规</a></dd>"
);
document
.
writeln
(
" <dd><a href=\'"
+
localhostPaht
+
"/staticViews/
policyList/1
.html\'>相应政策</a></dd>"
);
document
.
writeln
(
" <dd><a href=\'"
+
localhostPaht
+
"/staticViews/
lawList/1
.html\'>法律法规</a></dd>"
);
document
.
writeln
(
" <dd><a href=\'"
+
localhostPaht
+
"/staticViews/gsgg.html\'>公示公告</a></dd>"
);
document
.
writeln
(
" </dl>"
);
document
.
writeln
(
" </li>"
);
...
...
staticJs/header.js
View file @
7e16013
$
(
function
()
{
newsCenterData
();
//
fetchNewsData
();
})
function
newsCenterData
()
{
$
(
document
).
on
(
"mouseover"
,
".sysNewsList .newsDetail"
,
function
(
e
)
{
...
...
@@ -9,4 +11,21 @@ function newsCenterData() {
$
(
document
).
on
(
"mouseout"
,
".sysNewsList .newsDetail"
,
function
(
e
)
{
$
(
'.sysNewsList .newsDetail'
).
addClass
(
'ellipsis'
);
})
}
// 根据用户id及展示数量读取消息提醒
function
fetchNewsData
(
userid
,
size
)
{
$
.
ajax
({
type
:
"get"
,
//提交方式
url
:
portal
.
api_url
+
"/portal/messageRemind/getDetailByUserid?userid="
+
userid
+
"&size="
+
size
,
//路径
dataType
:
"json"
,
//数据,这里使用的是Json格式进行传输
success
:
function
(
result
)
{
//返回数据根据结果进行相应的处理
if
(
result
.
code
==
200
&&
result
.
data
!=
null
)
{
console
.
log
(
result
.
data
)
for
(
var
i
=
0
;
i
<
result
.
data
.
length
;
i
++
)
{
}
}
}
});
}
\ No newline at end of file
...
...
Please
register
or
sign in
to post a comment