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
80ef6809
authored
2021-02-02 16:14:29 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:政务公开
1 parent
3c3015a1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
7 deletions
staticJs/flfgxq.js
staticJs/ggxq.js
staticJs/xyzcxq.js
staticJs/flfgxq.js
View file @
80ef680
$
(
function
()
{
// newsDetail()
if
(
decodeURI
(
GetQueryString
(
'title'
))
==
'首页'
)
{
$
(
'.law-second-label'
).
hide
();
}
else
{
$
(
'.law-second-label'
).
show
();
$
(
'.law-second-label'
).
attr
(
'href'
,
GetQueryString
(
'href'
));
$
(
'.law-second-label'
).
attr
(
'title'
,
decodeURI
(
GetQueryString
(
'title'
)));
$
(
'.law-second-label'
).
text
(
decodeURI
(
GetQueryString
(
'title'
)));
}
})
layui
.
use
(
'element'
,
function
()
{
...
...
staticJs/ggxq.js
View file @
80ef680
$
(
function
()
{
// newsDetail()
if
(
decodeURI
(
GetQueryString
(
'title'
))
==
'首页'
)
{
$
(
'.notice-second-label'
).
hide
();
}
else
{
$
(
'.notice-second-label'
).
show
();
$
(
'.notice-second-label'
).
attr
(
'href'
,
GetQueryString
(
'href'
));
$
(
'.notice-second-label'
).
attr
(
'title'
,
decodeURI
(
GetQueryString
(
'title'
)));
$
(
'.notice-second-label'
).
text
(
decodeURI
(
GetQueryString
(
'title'
)));
}
})
layui
.
use
(
'element'
,
function
()
{
...
...
staticJs/xyzcxq.js
View file @
80ef680
$
(
function
()
{
if
(
decodeURI
(
GetQueryString
(
'title'
))
==
'首页'
)
{
$
(
'.second-label'
).
hide
();
}
else
{
$
(
'.second-label'
).
show
();
$
(
'.second-label'
).
attr
(
'href'
,
GetQueryString
(
'href'
));
$
(
'.second-label'
).
attr
(
'title'
,
decodeURI
(
GetQueryString
(
'title'
)));
$
(
'.second-label'
).
text
(
decodeURI
(
GetQueryString
(
'title'
)));
}
})
layui
.
use
(
'element'
,
function
()
{
...
...
@@ -6,10 +14,4 @@ layui.use('element', function () {
//监听导航点击
element
.
on
(
'nav(demo)'
,
function
(
elem
)
{
});
});
function
GetQueryString
(
name
)
{
var
reg
=
new
RegExp
(
"(^|&)"
+
name
+
"=([^&]*)(&|$)"
);
var
r
=
window
.
location
.
search
.
substr
(
1
).
match
(
reg
);
if
(
r
!=
null
)
return
decodeURIComponent
(
r
[
2
]);
return
null
;
}
\ No newline at end of file
});
\ No newline at end of file
...
...
Please
register
or
sign in
to post a comment