diff --git a/infoport/discussions.html b/infoport/discussions.html new file mode 100644 index 0000000..daf45f6 --- /dev/null +++ b/infoport/discussions.html @@ -0,0 +1,168 @@ + + + + + + 农村资源信息港 + + + + + + + + + +
+ +
+

+ +

+ +
+ + + +
+
+
+
+ +
+
+
+
+ +
+
+

四议两公开

+

2023.03.15

+
+ +
+
+ +
+
+
+ +
+ +
+ + + + + + + + +
+ + + diff --git a/infoport/discussionsDetail.html b/infoport/discussionsDetail.html new file mode 100644 index 0000000..7be1c41 --- /dev/null +++ b/infoport/discussionsDetail.html @@ -0,0 +1,92 @@ + + + + + + 农村资源信息港 + + + + + + + + + + +
+ +
+
+
+ +

+
+
+

+

+
+
+
+
+
+
+
+
+
四议两公开列表
+
+ +
+
+
+ + + + +
+ + + diff --git a/infoport/index.html b/infoport/index.html index cb7f0a6..bfc2bb1 100644 --- a/infoport/index.html +++ b/infoport/index.html @@ -56,6 +56,14 @@

宅基地信息

+
+ +
+ +
+

四议两公开

+
+
diff --git a/infoport/static/css/index.css b/infoport/static/css/index.css index 5bf40ff..f0b8567 100644 --- a/infoport/static/css/index.css +++ b/infoport/static/css/index.css @@ -56,6 +56,10 @@ background: url("../images/nav_8.png") no-repeat center; background-size: 100% 100%; } +.active .i5{ + background: url("../images/nav_10.png") no-repeat center; + background-size: 100% 100%; +} .header .active{ position: relative; } @@ -85,6 +89,11 @@ background-size: 100% 100%; transition: all 0.4s ease-in-out; } +.header .header_nav:hover .i5{ + background: url("../images/nav_10.png") no-repeat center; + background-size: 100% 100%; + transition: all 0.4s ease-in-out; +} .header .header_nav{ cursor: pointer; } @@ -126,6 +135,10 @@ background: url("../images/nav_4.png") no-repeat center; background-size: 100% 100%; } +.i5{ + background: url("../images/nav_9.png") no-repeat center; + background-size: 100% 100%; +} .search{ diff --git a/infoport/static/images/nav_10.png b/infoport/static/images/nav_10.png new file mode 100644 index 0000000..3229ae0 Binary files /dev/null and b/infoport/static/images/nav_10.png differ diff --git a/infoport/static/images/nav_9.png b/infoport/static/images/nav_9.png new file mode 100644 index 0000000..a610402 Binary files /dev/null and b/infoport/static/images/nav_9.png differ diff --git a/infoport/static/images/news2.jpg b/infoport/static/images/news2.jpg new file mode 100644 index 0000000..55826a7 Binary files /dev/null and b/infoport/static/images/news2.jpg differ diff --git a/infoport/static/js/api/index.js b/infoport/static/js/api/index.js index 5d8aa4a..d42ecff 100644 --- a/infoport/static/js/api/index.js +++ b/infoport/static/js/api/index.js @@ -105,3 +105,7 @@ var webGet = '/open/house/policy/get/' //查询落款 dictType:project_type */ var webDeptType = '/transaction/website/transfer/'//标的物类型查询接口 + +var listSiyigongkai = '/open/villageAffairs/public/siyigongkaiList'//查询四议两公开列表 + +var siyigongkaiDetail = '/open/villageAffairs/public/siyigongkaiDetail'//查询四议两公开列表 diff --git a/infoport/static/js/project/discussions.js b/infoport/static/js/project/discussions.js new file mode 100644 index 0000000..1295a58 --- /dev/null +++ b/infoport/static/js/project/discussions.js @@ -0,0 +1,103 @@ +/** + * Created by Administrator on 2021/4/5. + */ +define(['jquery', "template", "Tools", 'swiper'], function ($, template, Tools, swiper) { + //数据存储 + var module = { + data: { + //服务器地址 + serverApi:'', + //焦点图数据 + focusList: [], + communicateList: [], + newImgList:[] + }, + }; + var tools = new Tools(); + + module.init = function (page) { + //新闻列表 + tools.doGet(listSiyigongkai, {pageNum:1,pageSize:8}, module.newsList , true); + tools.doGet(webList, {}, module.webList , true); + // new Swiper('#bannerFocusNextWrap', { + // paginationClickable: true, + // pagination: '.a2', + // autoplay : 2000, + // loop:true + // }) + + $("#nowDateNYR").html(new Date().getFullYear()+'-'+(new Date().getMonth()+1)+'-'+new Date().getDate()); + + }; + + module.newsList = function (data) { + if (data.code == 200) { + var content = data.rows; + module.data.newList = content; + var newListData = template('newListData', module.data); + $("#newListContent").html(newListData); + + var newImgList = []; + // content.map(rr=>{ + // if (rr.jueyiPic!=null&&rr.jueyiPic!=""){ + // rr.jueyiPic.split(','); + // newImgList.push(rr.jueyiPic); + // } + // }) + module.data.newImgList = newImgList; + var newListDataImg = template('newListDataImg', module.data); + $("#bannerFocusNextContent").html(newListDataImg); + // roll(20) + } + } + + module.webList = function (data) { + if (data.code == 200) { + var content = data.data; + module.data.webList = content; + var webData = template('webData', module.data); + $("#webContent").html(webData); + var titData = template('titData', module.data); + $("#titContent").html(titData); + } + } + + searchChange = function () { + console.log(1111111111); + tools.doGet(listSiyigongkai, {pageNum:1,pageSize:8,openName:$("#searchInput").val()}, module.newsList , true); + } + + function roll(t) { + var ul1 = document.getElementById("newListContent"); + var ul2 = document.getElementById("newListContent2"); + var ulbox = document.getElementById("review_box"); + ul2.innerHTML = ul1.innerHTML; + ulbox.scrollTop = 0; // 开始无滚动时设为0 + var timer = setInterval(rollStart, t); // 设置定时器,参数t用在这为间隔时间(单位毫秒),参数t越小,滚动速度越快 + // 鼠标移入div时暂停滚动 + ulbox.onmouseover = function () { + clearInterval(timer); + } + // 鼠标移出div后继续滚动 + ulbox.onmouseout = function () { + timer = setInterval(rollStart, t); + } + } + + // 开始滚动函数 + function rollStart() { + // 上面声明的DOM对象为局部对象需要再次声明 + var ul1 = document.getElementById("newListContent"); + var ul2 = document.getElementById("newListContent2"); + var ulbox = document.getElementById("review_box"); + // 正常滚动不断给scrollTop的值+1,当滚动高度大于列表内容高度时恢复为0 + console.log(ulbox.scrollTop+'--------'+ul1.scrollHeight) + if (ulbox.scrollTop >= ul1.scrollHeight) { + ulbox.scrollTop = 0; + } else { + ulbox.scrollTop += 1; + } + } + + return module; +}); diff --git a/infoport/static/js/project/discussionsDetail.js b/infoport/static/js/project/discussionsDetail.js new file mode 100644 index 0000000..605c14c --- /dev/null +++ b/infoport/static/js/project/discussionsDetail.js @@ -0,0 +1,70 @@ +/** + * Created by Administrator on 2021/4/5. + */ +define(['jquery', "template", "Tools"], function ($, template, Tools) { + //数据存储 + var module = { + data: { + //服务器地址 + serverApi:'', + //焦点图数据 + focusList: [], + communicateList: [], + }, + }; + var tools = new Tools(); + + module.init = function (page) { + //新闻详情 + tools.doGet(siyigongkaiDetail, {id:getQueryVariable('id')}, module.newsDetail , true); + //新闻列表 + tools.doGet(listSiyigongkai, {pageNum:1,pageSize:8}, module.newsList , true); + tools.doGet(webList, {}, module.webList , true); + }; + + //获取地址栏参数 + function getQueryVariable(variable){ + var query = window.location.search.substring(1); + var vars = query.split("&"); + for (var i=0;i'; + $('#shishiAt')[0].innerHTML = '实施公开日期:'+content.shishiAt; + $('#shishiPic')[0].innerHTML = '实施公开图片:'; + $('#remark')[0].innerHTML = '备注:'+content.remark; + + } + } + + module.newsList = function (data) { + if (data.code == 200) { + var content = data.rows; + module.data.newList = content; + var newListData = template('newListData', module.data); + $("#newListContent").html(newListData); + } + } + + return module; +});