@@ -11,6 +11,23 @@ | |||||
<meta name="description" cxontent="" /> | <meta name="description" cxontent="" /> | ||||
<link href="static/css/main.css" rel="stylesheet" type="text/css" /> | <link href="static/css/main.css" rel="stylesheet" type="text/css" /> | ||||
<link href="static/css/index.css" rel="stylesheet" type="text/css" /> | <link href="static/css/index.css" rel="stylesheet" type="text/css" /> | ||||
<style type="text/css"> | |||||
.bannerRight .nyzf p { | |||||
font-size: 18px; | |||||
padding: 10px 5px; | |||||
position: relative; | |||||
top: 2px; | |||||
margin-right: 10px; | |||||
font-weight: normal; | |||||
border-bottom: none; | |||||
} | |||||
.bannerRight .nyzf p:hover , .bannerRight .nyzf .active { | |||||
font-weight: bold!important; | |||||
border-bottom: 4px solid #3976ff!important; | |||||
cursor: pointer!important; | |||||
} | |||||
</style> | |||||
</head> | </head> | ||||
<body> | <body> | ||||
@@ -138,8 +155,13 @@ | |||||
<ul id="schemeContent"></ul> | <ul id="schemeContent"></ul> | ||||
</div> | </div> | ||||
<div style="width: 49%;" class="fr bannerRight"> | <div style="width: 49%;" class="fr bannerRight"> | ||||
<div class="bannerRight_title"> | |||||
<p class="fl">执法依据</p> | |||||
<div class="bannerRight_title nyzf"> | |||||
<p class="fl active" data-id="002">执法依据</p> | |||||
<p class="fl" data-id="002001">法律</p> | |||||
<p class="fl" data-id="002002">行政法规</p> | |||||
<p class="fl" data-id="002003">地方性法规</p> | |||||
<p class="fl" data-id="002004">部门规章</p> | |||||
<a href="view/basis/basisList.html" class="fr">更多</a> | <a href="view/basis/basisList.html" class="fr">更多</a> | ||||
<div class="clear"></div> | <div class="clear"></div> | ||||
</div> | </div> | ||||
@@ -17,7 +17,8 @@ define(['jquery', "template", "Tools", "echarts", 'swiper', "paging"], function | |||||
//每页数量 | //每页数量 | ||||
pageSize: 5, | pageSize: 5, | ||||
//总页数 | //总页数 | ||||
pageCount:0 | |||||
pageCount:0, | |||||
getId:'002' | |||||
}, | }, | ||||
}; | }; | ||||
var tools = new Tools(); | var tools = new Tools(); | ||||
@@ -42,6 +43,31 @@ define(['jquery', "template", "Tools", "echarts", 'swiper', "paging"], function | |||||
pageNum: 1, | pageNum: 1, | ||||
pageSize: module.data.pageSize, | pageSize: module.data.pageSize, | ||||
}, module.newList , true); | }, module.newList , true); | ||||
var tabs = $('.nyzf').find('p'); | |||||
tabs.on('click', function (e) { | |||||
module.data.newList = [] | |||||
$('.page_s1').html('') | |||||
$('#page_s1').html(''); | |||||
e.preventDefault();//防止打开链接 | |||||
var id = $(this).data('id'); | |||||
module.data.getId = id; | |||||
tabs.removeClass('active'); | |||||
$(this).addClass('active'); | |||||
tools.doGet(newsList, { | |||||
number: id, | |||||
deptId: data.data, | |||||
pageNum: 1, | |||||
pageSize: module.data.pageSize, | |||||
}, module.newList , true); | |||||
}); | |||||
} | } | ||||
//新闻列表 | //新闻列表 | ||||
@@ -51,6 +77,11 @@ define(['jquery', "template", "Tools", "echarts", 'swiper', "paging"], function | |||||
var pageCount = (data.total/module.data.pageSize).toFixed(0); | var pageCount = (data.total/module.data.pageSize).toFixed(0); | ||||
if (pageCount < 1){ | if (pageCount < 1){ | ||||
pageCount = 1; | pageCount = 1; | ||||
var content = data.rows; | |||||
module.data.newList = content; | |||||
var newData = template('newData', module.data); | |||||
$("#newContent").html(newData); | |||||
return; | |||||
} | } | ||||
if(module.data.newList == '') { | if(module.data.newList == '') { | ||||
console.log(pageCount) | console.log(pageCount) | ||||
@@ -89,7 +120,7 @@ define(['jquery', "template", "Tools", "echarts", 'swiper', "paging"], function | |||||
module.data.pageNum = pageNum ; | module.data.pageNum = pageNum ; | ||||
console.log($('#title').val()) | console.log($('#title').val()) | ||||
tools.doGet(newsList, { | tools.doGet(newsList, { | ||||
number: '002', | |||||
number: module.data.getId, | |||||
deptId: module.data.deptId, | deptId: module.data.deptId, | ||||
pageNum: pageNum, | pageNum: pageNum, | ||||
pageSize: module.data.pageSize, | pageSize: module.data.pageSize, | ||||
@@ -27,6 +27,21 @@ define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, templa | |||||
tools.doGet(news + '/001/'+data.data+'/7', {}, module.noticeList , true); | tools.doGet(news + '/001/'+data.data+'/7', {}, module.noticeList , true); | ||||
tools.doGet(news + '/002/'+data.data+'/7', {}, module.enforcementList , true); | tools.doGet(news + '/002/'+data.data+'/7', {}, module.enforcementList , true); | ||||
tools.doGet(getScheme + '/'+data.data+'/7', {}, module.schemeList , true); | tools.doGet(getScheme + '/'+data.data+'/7', {}, module.schemeList , true); | ||||
var tabs = $('.nyzf').find('p'); | |||||
tabs.on('click', function (e) { | |||||
e.preventDefault();//防止打开链接 | |||||
var id = $(this).data('id'); | |||||
tabs.removeClass('active'); | |||||
$(this).addClass('active'); | |||||
tools.doGet(news + '/'+id+'/'+data.data+'/7', {}, module.enforcementList , true); | |||||
}); | |||||
} | } | ||||
//新闻列表 | //新闻列表 | ||||
@@ -12,6 +12,23 @@ | |||||
<link href="../../static/css/main.css" rel="stylesheet" type="text/css" /> | <link href="../../static/css/main.css" rel="stylesheet" type="text/css" /> | ||||
<link href="../../static/css/index.css" rel="stylesheet" type="text/css" /> | <link href="../../static/css/index.css" rel="stylesheet" type="text/css" /> | ||||
<link href="../../static/css/page_common.css" rel="stylesheet" type="text/css" /> | <link href="../../static/css/page_common.css" rel="stylesheet" type="text/css" /> | ||||
<style type="text/css"> | |||||
.bannerRight .nyzf p { | |||||
font-size: 18px; | |||||
padding: 10px 5px; | |||||
position: relative; | |||||
top: 2px; | |||||
margin-right: 10px; | |||||
font-weight: normal; | |||||
border-bottom: none; | |||||
} | |||||
.bannerRight .nyzf p:hover , .bannerRight .nyzf .active { | |||||
font-weight: bold!important; | |||||
border-bottom: 4px solid #3976ff!important; | |||||
cursor: pointer!important; | |||||
} | |||||
</style> | |||||
</head> | </head> | ||||
<body> | <body> | ||||
@@ -46,8 +63,12 @@ | |||||
<div class="w-1200 m-t-15"> | <div class="w-1200 m-t-15"> | ||||
<p class="breadcrumb">首页 > 执法依据</p> | <p class="breadcrumb">首页 > 执法依据</p> | ||||
<div class="bannerRight" style="width: 100%"> | <div class="bannerRight" style="width: 100%"> | ||||
<div class="bannerRight_title"> | |||||
<p class="fl">执法依据</p> | |||||
<div class="bannerRight_title nyzf"> | |||||
<p class="fl active" data-id="002">执法依据</p> | |||||
<p class="fl" data-id="002001">法律</p> | |||||
<p class="fl" data-id="002002">行政法规</p> | |||||
<p class="fl" data-id="002003">地方性法规</p> | |||||
<p class="fl" data-id="002004">部门规章</p> | |||||
<div class="fr"> | <div class="fr"> | ||||
<input type="text" placeholder="标题/关键字" id="title"/> | <input type="text" placeholder="标题/关键字" id="title"/> | ||||
<a href="javascript:void(0);" onclick="goSearch()">搜索</a> | <a href="javascript:void(0);" onclick="goSearch()">搜索</a> | ||||