| @@ -169,7 +169,7 @@ | |||
| <div class="new_list" id="new_list_3" style="display: none;"> | |||
| <div class="new_list_tit"> | |||
| <img src="static/images/list_icon_02.png" alt="" style="display: block;"> | |||
| <p>重大事项</p> | |||
| <p class="tab"><span id="zd" class="act" onclick="ZDSXTabClick('zd')">重大事项</span><span id="zy" onclick="ZDSXTabClick('zy')">重要事项</span></p> | |||
| <p id="nowDateNYR3" style="margin-left: auto;">2023.03.15</p> | |||
| </div> | |||
| @@ -187,6 +187,21 @@ | |||
| </div> | |||
| <div class="new_list_ul" id="newListContent_ul_3"></div> | |||
| </div> | |||
| <div id="review_box3_zy" style="height: 44vh;overflow-y: scroll;margin-top: 2.5vh;display: none;"> | |||
| <div class="new_list_ul" id="newListContent3_zy"> | |||
| <script id="newListData3_zy" type="text/html"> | |||
| {{each newList11 as value i}} | |||
| <div class="new_list_li"> | |||
| <a href="discussionsDetail_03_zy.html?id={{value.id}}">{{value.openName}}</a> | |||
| <p>{{value.importantType}}</p> | |||
| <p>{{value.openNy}}</p> | |||
| </div> | |||
| {{/each}} | |||
| </script> | |||
| </div> | |||
| <div class="new_list_ul" id="newListContent_ul_3_zy"></div> | |||
| </div> | |||
| </div> | |||
| <div class="new_list" id="new_list_4" style="display: none;"> | |||
| @@ -0,0 +1,105 @@ | |||
| <!DOCTYPE html | |||
| PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||
| <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="zh-CN" xml:lang="zh-CN"> | |||
| <head> | |||
| <meta charset="utf-8"> | |||
| <title>农村资源信息港</title> | |||
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |||
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |||
| <meta name="keywords" content="" /> | |||
| <meta name="description" cxontent="" /> | |||
| <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/newDetail.css" rel="stylesheet" type="text/css" /> | |||
| </head> | |||
| <body> | |||
| <div class="main" id="page"> | |||
| <div class="new_content"> | |||
| <div class="new_content_left"> | |||
| <div class="new_content_left_tit"> | |||
| <a href="discussions.html"><i></i></a> | |||
| <p id="openName"></p> | |||
| </div> | |||
| <div class="new_content_left_come"> | |||
| <p id="creatBy"></p> | |||
| <p id="creatTime"></p> | |||
| </div> | |||
| <div class="new_content_content" id="openNy"></div> | |||
| <div class="new_content_content" id="openPic"></div> | |||
| <div class="new_content_content" id="openFile"></div> | |||
| <div class="new_content_content" id="content"></div> | |||
| <div class="new_content_content" id="remark"></div> | |||
| </div> | |||
| <div class="new_content_right"> | |||
| <div class="new_content_right_tit">重要事项列表</div> | |||
| <div class="new_content_right_main" id="newListContent"> | |||
| <script id="newListData" type="text/html"> | |||
| {{each newList as value i}} | |||
| <p><a href="discussionsDetail_03.html?id={{value.id}}">{{value.openName}}</a></p> | |||
| {{/each}} | |||
| </script> | |||
| </div> | |||
| </div> | |||
| </div> | |||
| <div class="footer_main" style="margin-top:0;" > | |||
| <div class="footer" id="webContent"> | |||
| <script id="webData" type="text/html"> | |||
| <div class="footer_link"> | |||
| <!-- <p class="footer_link_tit">友情链接</p>--> | |||
| <!-- {{each webList.botoom1 as value i}}--> | |||
| <!-- <a class="hotFile" target="_blank" href="{{value.contentUrl}}">{{value.contentValue}}</a>--> | |||
| <!-- {{/each}}--> | |||
| <img src="static/images/link_00.png" alt=""> | |||
| <!-- <a href=""><img src="static/images/link_01.png" alt="" ></a>--> | |||
| <!-- <a href=""><img src="static/images/link_02.png" alt=""></a>--> | |||
| {{each webList.botoom1 as value i}} | |||
| <a href="{{value.contentUrl}}" style="background: url('static/images/{{value.contentIcon}}.png') no-repeat center;background-size: 100% 100%;" target="_blank"> | |||
| <!-- <img src="static/images/{{value.contentIcon}}.png" alt="" >--> | |||
| <p class="link_tt">{{value.contentValue}}</p> | |||
| </a> | |||
| {{/each}} | |||
| </div> | |||
| <div class="footer_link_filings"> | |||
| {{each webList.botoom2 as value i}} | |||
| <div class="footer_link_filings_left"> | |||
| <p style="background-image: url('static/images/{{value.contentIcon}}')">{{value.contentTitle}}</p> | |||
| <a href="#">{{value.contentValue}}</a> | |||
| </div> | |||
| {{/each}} | |||
| </div> | |||
| <div class="footer_link_company"> | |||
| {{each webList.botoom3 as value i}} | |||
| <div> | |||
| <p>{{value.contentTitle}}</p> | |||
| <a target="{{value.contentUrl ? '_blank' : '_self' }}" href="{{value.contentUrl ? value.contentUrl : 'javascript:void(0)' }}">{{value.contentValue}}</a> | |||
| </div> | |||
| {{/each}} | |||
| </div> | |||
| </script> | |||
| </div> | |||
| <img src="" id="ewm" alt=""> | |||
| </div> | |||
| <div id="dialogOp" style="display: none;width: 100vw;height: 100vh;position:absolute;top: 0;left: 0;"> | |||
| <div onclick="closeDia()" style="width: 100vw;height: 100vh;position:absolute;top: 0;left: 0;background: rgba(0,0,0,.5);"></div> | |||
| <img src="" id="dialogImg" style="position:absolute;left: 50%;top: 50%;transform: translate(-50%,-50%);height: 70vh;" alt=""/> | |||
| </div> | |||
| </div> | |||
| </body> | |||
| <script src="./static/js/common/require.js" data-main="./static/js/common/main.js?t=101" id="require-page" target-module="./static/js/project/discussionsDetail_03_zy.js" defer type="text/javascript"></script> | |||
| </html> | |||
| @@ -606,3 +606,15 @@ | |||
| transform: scale(1.1); | |||
| transition:all 0.2s ease-in-out; | |||
| } | |||
| #new_list_3 .tab span{ | |||
| cursor: pointer; | |||
| color: #999999; | |||
| margin-right: 15px; | |||
| } | |||
| #new_list_3 .tab span.act{ | |||
| font-size: 20px; | |||
| color: #1663ff; | |||
| font-weight: bold; | |||
| line-height: 1; | |||
| } | |||
| @@ -120,6 +120,10 @@ var contractionList = '/open/contraction/list'//合同公开列表 | |||
| var majorEventPublicList = '/open/villageAffairs/public/majorEventPublicList'//重大事项列表 | |||
| var importantList = '/open/villageAffairs/public/importantList'//重大事项列表 | |||
| var importantDetail = '/open/villageAffairs/public/importantDetail'//重大事项列表 | |||
| var financePublicDetail = '/open/villageAffairs/public/financePublicDetail' | |||
| var majorEventPublicDetail = '/open/villageAffairs/public/majorEventPublicDetail' | |||
| @@ -21,6 +21,7 @@ define(['jquery', "template", "Tools", 'swiper'], function ($, template, Tools, | |||
| newList8:[], | |||
| newList9:[], | |||
| newList10:[], | |||
| newList11:[], | |||
| pageNum1: 1, | |||
| pageNum2: 1, | |||
| pageNum3: 1, | |||
| @@ -31,6 +32,7 @@ define(['jquery', "template", "Tools", 'swiper'], function ($, template, Tools, | |||
| pageNum8: 1, | |||
| pageNum9: 1, | |||
| pageNum10: 1, | |||
| pageNum11: 1, | |||
| }, | |||
| }; | |||
| var tools = new Tools(); | |||
| @@ -88,6 +90,16 @@ define(['jquery', "template", "Tools", 'swiper'], function ($, template, Tools, | |||
| } | |||
| }); | |||
| var ulbox3_zy = document.getElementById("review_box3_zy"); | |||
| ulbox3_zy.scrollTop = 0; // 开始无滚动时设为0 | |||
| ulbox3_zy.addEventListener('scroll', function() { | |||
| if (ulbox3_zy.scrollHeight - ulbox3_zy.scrollTop === ulbox3_zy.clientHeight) { | |||
| module.data.pageNum11 += 1; | |||
| ZDSXTabClick('zy'); | |||
| } | |||
| }); | |||
| var ulbox4 = document.getElementById("review_box4"); | |||
| ulbox4.scrollTop = 0; // 开始无滚动时设为0 | |||
| @@ -293,6 +305,41 @@ define(['jquery', "template", "Tools", 'swiper'], function ($, template, Tools, | |||
| } | |||
| } | |||
| ZDSXTabClick = function (type) { | |||
| document.getElementById('zd').className = ''; | |||
| document.getElementById('zy').className = ''; | |||
| document.getElementById(type).className = 'act'; | |||
| $('#review_box3').css('display','none'); | |||
| $('#review_box3_zy').css('display','none'); | |||
| switch (type) { | |||
| case 'zd': | |||
| $('#review_box3').css('display','block'); | |||
| tools.doGet(majorEventPublicList, { | |||
| pageNum:module.data.pageNum3, | |||
| pageSize:10, | |||
| orderByColumn: 'openNy', | |||
| isAsc: 'desc', | |||
| bookId: JSON.parse(tools.getCookie('user')).bookId, | |||
| deptId: JSON.parse(tools.getCookie('user')).deptId | |||
| }, module.newsList3 , true); | |||
| break; | |||
| case 'zy': | |||
| $('#review_box3_zy').css('display','block'); | |||
| tools.doGet(importantList, { | |||
| pageNum:module.data.pageNum11, | |||
| translate_dict:"1", | |||
| pageSize:10, | |||
| orderByColumn: 'openNy', | |||
| isAsc: 'desc', | |||
| bookId: JSON.parse(tools.getCookie('user')).bookId, | |||
| deptId: JSON.parse(tools.getCookie('user')).deptId | |||
| }, module.newsList11 , true); | |||
| break; | |||
| default: | |||
| break; | |||
| } | |||
| } | |||
| changeList = function (type) { | |||
| $('#new_list_1').css('display','none'); | |||
| $('#new_list_2').css('display','none'); | |||
| @@ -473,6 +520,22 @@ define(['jquery', "template", "Tools", 'swiper'], function ($, template, Tools, | |||
| } | |||
| } | |||
| module.newsList11 = function (data) { | |||
| if (data.code == 200) { | |||
| var content = data.rows; | |||
| if (module.data.newList11.length >= data.total){ | |||
| return; | |||
| }else{ | |||
| for (let i = 0 ; i < content.length ; i++){ | |||
| module.data.newList11.push(content[i]); | |||
| } | |||
| } | |||
| // module.data.newList3 = content; | |||
| var newListData3_zy = template('newListData3_zy', module.data); | |||
| $("#newListContent_ul_3_zy").html(newListData3_zy); | |||
| } | |||
| } | |||
| function roll(t) { | |||
| var ul1 = document.getElementById("newListContent"); | |||
| var ul2 = document.getElementById("newListContent2"); | |||
| @@ -0,0 +1,108 @@ | |||
| /** | |||
| * 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(importantDetail, { | |||
| id:getQueryVariable('id'), | |||
| bookId: JSON.parse(tools.getCookie('user')).bookId, | |||
| deptId: JSON.parse(tools.getCookie('user')).deptId | |||
| }, module.newsDetail , true); | |||
| //新闻列表 | |||
| tools.doGet(importantList, { | |||
| pageNum:module.data.pageNum11, | |||
| translate_dict:"1", | |||
| pageSize:10, | |||
| orderByColumn: 'openNy', | |||
| isAsc: 'desc', | |||
| bookId: JSON.parse(tools.getCookie('user')).bookId, | |||
| deptId: JSON.parse(tools.getCookie('user')).deptId | |||
| }, 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<vars.length;i++) { | |||
| var pair = vars[i].split("="); | |||
| if(pair[0] == variable){return pair[1];} | |||
| } | |||
| return(false); | |||
| } | |||
| 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); | |||
| $('#ewm').attr('src', 'static/images/'+content.top.bz); | |||
| } | |||
| } | |||
| module.newsDetail = function (data) { | |||
| if (data.code == 200) { | |||
| var content = data.data; | |||
| $('#openName')[0].innerHTML = content.openName; | |||
| $('#openNy')[0].innerHTML = '公开年月:'+content.openNy; | |||
| $('#openPic')[0].innerHTML = '公开图片:<br/>'; | |||
| if (content.openPic){ | |||
| let arr = content.openPic.split(','); | |||
| for (let i = 0;i < arr.length; i++){ | |||
| $('#openPic')[0].innerHTML += '<img onclick="openDialog(\'/api'+arr[i]+'\')" src="/api'+arr[i]+'" style="width: 200px;height: 150px;margin-right: 10px;">'; | |||
| } | |||
| } | |||
| $('#openFile')[0].innerHTML = '附件:<br/>'; | |||
| if (content.openFile){ | |||
| let arr2 = content.openFile.split(','); | |||
| for (let i = 0;i < arr2.length; i++){ | |||
| $('#openFile')[0].innerHTML += '<a style="color: #2a39fb;" href="/api'+arr2[i]+'">'+arr2[i].substr(27,arr2[i].length)+'</a>'; | |||
| } | |||
| } | |||
| $('#content')[0].innerHTML = '内容:'+content.content; | |||
| $('#remark')[0].innerHTML = '备注:'+content.remark; | |||
| } | |||
| } | |||
| openDialog = function (src){ | |||
| $("#dialogOp").css('display','block'); | |||
| $('#dialogImg').attr('src', src); | |||
| } | |||
| closeDia = function (){ | |||
| $("#dialogOp").css('display','none'); | |||
| $('#dialogImg').attr('src', ''); | |||
| } | |||
| 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; | |||
| }); | |||