style:政务公开
Showing
3 changed files
with
25 additions
and
7 deletions
1 | $(function () { | 1 | $(function () { |
2 | // newsDetail() | 2 | // newsDetail() |
3 | if (decodeURI(GetQueryString('title')) == '首页') { | ||
4 | $('.law-second-label').hide(); | ||
5 | }else { | ||
6 | $('.law-second-label').show(); | ||
7 | $('.law-second-label').attr('href',GetQueryString('href')); | ||
8 | $('.law-second-label').attr('title', decodeURI(GetQueryString('title'))); | ||
9 | $('.law-second-label').text(decodeURI(GetQueryString('title'))); | ||
10 | } | ||
3 | }) | 11 | }) |
4 | 12 | ||
5 | layui.use('element', function () { | 13 | layui.use('element', function () { | ... | ... |
1 | $(function () { | 1 | $(function () { |
2 | // newsDetail() | 2 | // newsDetail() |
3 | if (decodeURI(GetQueryString('title')) == '首页') { | ||
4 | $('.notice-second-label').hide(); | ||
5 | }else { | ||
6 | $('.notice-second-label').show(); | ||
7 | $('.notice-second-label').attr('href',GetQueryString('href')); | ||
8 | $('.notice-second-label').attr('title', decodeURI(GetQueryString('title'))); | ||
9 | $('.notice-second-label').text(decodeURI(GetQueryString('title'))); | ||
10 | } | ||
3 | }) | 11 | }) |
4 | 12 | ||
5 | layui.use('element', function () { | 13 | layui.use('element', function () { | ... | ... |
1 | $(function () { | 1 | $(function () { |
2 | if (decodeURI(GetQueryString('title')) == '首页') { | ||
3 | $('.second-label').hide(); | ||
4 | }else { | ||
5 | $('.second-label').show(); | ||
6 | $('.second-label').attr('href',GetQueryString('href')); | ||
7 | $('.second-label').attr('title', decodeURI(GetQueryString('title'))); | ||
8 | $('.second-label').text(decodeURI(GetQueryString('title'))); | ||
9 | } | ||
2 | }) | 10 | }) |
3 | 11 | ||
4 | layui.use('element', function () { | 12 | layui.use('element', function () { |
... | @@ -6,10 +14,4 @@ layui.use('element', function () { | ... | @@ -6,10 +14,4 @@ layui.use('element', function () { |
6 | //监听导航点击 | 14 | //监听导航点击 |
7 | element.on('nav(demo)', function (elem) { | 15 | element.on('nav(demo)', function (elem) { |
8 | }); | 16 | }); |
9 | }); | ||
10 | function GetQueryString(name) { | ||
11 | var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); | ||
12 | var r = window.location.search.substr(1).match(reg); | ||
13 | if (r != null) return decodeURIComponent(r[2]); | ||
14 | return null; | ||
15 | } | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
17 | }); | ||
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or sign in to post a comment