| @@ -115,6 +115,7 @@ | |||
| <img src="./static/images/index_code_btn_7.png" alt="" onclick="changeList('7')"> | |||
| <img src="./static/images/index_code_btn_8.png" alt="" onclick="changeList('8')"> | |||
| <img src="./static/images/index_code_btn_9.png" alt="" onclick="changeList('9')"> | |||
| <img src="./static/images/index_code_btn_10.png" alt="" onclick="changeList('10')"> | |||
| </div> | |||
| </div> | |||
| @@ -154,8 +155,9 @@ | |||
| {{each newList2 as value i}} | |||
| <div class="new_list_li"> | |||
| <a href="discussionsDetail_02.html?id={{value.code}}">{{value.name}}</a> | |||
| <p>{{value.code}}</p> | |||
| <p>{{value.totalAmount}}元</p> | |||
| <p style="flex: .5;">{{value.secondParty}}</p> | |||
| <p style="text-align: center;">{{value.startTime}} ~ {{value.endTime}}</p> | |||
| <p style="flex: .5;">{{value.totalAmount}}元</p> | |||
| </div> | |||
| {{/each}} | |||
| </script> | |||
| @@ -269,8 +271,9 @@ | |||
| {{each newList7 as value i}} | |||
| <div class="new_list_li"> | |||
| <a href="discussionsDetail_06.html?id={{value.code}}">{{value.name}}</a> | |||
| <p>{{value.code}}</p> | |||
| <p>{{value.buildTime}}</p> | |||
| <p>{{value.originalValue}}</p> | |||
| <p>{{value.operationType}}</p> | |||
| <p>{{value.assetStatus}}</p> | |||
| </div> | |||
| {{/each}} | |||
| </script> | |||
| @@ -292,9 +295,9 @@ | |||
| {{each newList8 as value i}} | |||
| <div class="new_list_li"> | |||
| <a href="discussionsDetail_07.html?id={{value.code}}">{{value.name}}</a> | |||
| <p>{{value.code}}</p> | |||
| <p style="flex: .5;text-align: right;">{{value.totalArea}}亩</p> | |||
| <p>{{value.resourceType}}</p> | |||
| <p style="text-align: center;">{{value.resourceType}}</p> | |||
| <p style="flex: .5;text-align: right;">{{value.useType}}</p> | |||
| </div> | |||
| {{/each}} | |||
| </script> | |||
| @@ -325,6 +328,27 @@ | |||
| </div> | |||
| </div> | |||
| <div class="new_list" id="new_list_10" style="display: none;"> | |||
| <div class="new_list_tit"> | |||
| <img src="static/images/list_icon_02.png" alt="" style="display: block;"> | |||
| <p>实施过程公开</p> | |||
| <p id="nowDateNYR10" style="margin-left: auto;">2023.03.15</p> | |||
| </div> | |||
| <div id="review_box10" style="height: 44vh;overflow-y: scroll;margin-top: 2.5vh;"> | |||
| <div class="new_list_ul" id="newListContent10"> | |||
| <script id="newListData10" type="text/html"> | |||
| {{each newList9 as value i}} | |||
| <a href="discussionsDetail_10.html?id={{value.id}}">{{value.openName}}</a> | |||
| <p>{{value.bookName}}</p> | |||
| <p>{{value.jueyiAt}}</p> | |||
| {{/each}} | |||
| </script> | |||
| </div> | |||
| <div class="new_list_ul" id="newListContent_ul_10"></div> | |||
| </div> | |||
| </div> | |||
| </div> | |||
| </div> | |||
| @@ -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.js" defer type="text/javascript"></script> | |||
| </html> | |||
| @@ -131,3 +131,7 @@ var assetresourceOrcodeList = '/open/assetresource/orcode/list' | |||
| var tempWorkerPublicList = '/open/villageAffairs/public/tempWorkerPublicList' | |||
| var tempWorkerPublicDetail = '/open/villageAffairs/public/tempWorkerPublicDetail' | |||
| var otherPublicList = '/open/villageAffairs/public/otherPublicList' | |||
| var otherPublicDetail = '/open/villageAffairs/public/otherPublicDetail' | |||
| @@ -20,6 +20,7 @@ define(['jquery', "template", "Tools", 'swiper'], function ($, template, Tools, | |||
| newList7:[], | |||
| newList8:[], | |||
| newList9:[], | |||
| newList10:[], | |||
| pageNum1: 1, | |||
| pageNum2: 1, | |||
| pageNum3: 1, | |||
| @@ -29,6 +30,7 @@ define(['jquery', "template", "Tools", 'swiper'], function ($, template, Tools, | |||
| pageNum7: 1, | |||
| pageNum8: 1, | |||
| pageNum9: 1, | |||
| pageNum10: 1, | |||
| }, | |||
| }; | |||
| var tools = new Tools(); | |||
| @@ -145,6 +147,16 @@ define(['jquery', "template", "Tools", 'swiper'], function ($, template, Tools, | |||
| changeList('9'); | |||
| } | |||
| }); | |||
| var ulbox10 = document.getElementById("review_box10"); | |||
| ulbox10.scrollTop = 0; // 开始无滚动时设为0 | |||
| ulbox10.addEventListener('scroll', function() { | |||
| if (ulbox10.scrollHeight - ulbox10.scrollTop === ulbox10.clientHeight) { | |||
| module.data.pageNum10 += 1; | |||
| changeList('10'); | |||
| } | |||
| }); | |||
| }; | |||
| module.newsList4 = function (data) { | |||
| @@ -163,6 +175,22 @@ define(['jquery', "template", "Tools", 'swiper'], function ($, template, Tools, | |||
| } | |||
| } | |||
| module.newsList10 = function (data) { | |||
| if (data.code == 200) { | |||
| var content = data.rows; | |||
| if (module.data.newList10.length >= data.total){ | |||
| return; | |||
| }else{ | |||
| for (let i = 0 ; i < content.length ; i++){ | |||
| module.data.newList10.push(content[i]); | |||
| } | |||
| } | |||
| // module.data.newList4 = content; | |||
| var newListData10 = template('newListData10', module.data); | |||
| $("#newListContent_ul_10").html(newListData10); | |||
| } | |||
| } | |||
| module.newsList7 = function (data) { | |||
| if (data.code == 200) { | |||
| var content = data.rows; | |||
| @@ -272,6 +300,7 @@ define(['jquery', "template", "Tools", 'swiper'], function ($, template, Tools, | |||
| $('#new_list_7').css('display','none'); | |||
| $('#new_list_8').css('display','none'); | |||
| $('#new_list_9').css('display','none'); | |||
| $('#new_list_10').css('display','none'); | |||
| switch (type) { | |||
| case '1': | |||
| @@ -375,6 +404,18 @@ define(['jquery', "template", "Tools", 'swiper'], function ($, template, Tools, | |||
| $('#new_list_9').css('display','block'); | |||
| $("#nowDateNYR9").html(new Date().getFullYear()+'-'+(new Date().getMonth()+1)+'-'+new Date().getDate()); | |||
| break; | |||
| case '10': | |||
| $('#new_list_10').css('display','block'); | |||
| $("#nowDateNYR10").html(new Date().getFullYear()+'-'+(new Date().getMonth()+1)+'-'+new Date().getDate()); | |||
| tools.doGet(otherPublicList, { | |||
| pageNum:module.data.pageNum10, | |||
| pageSize:10, | |||
| bookId: JSON.parse(tools.getCookie('user')).bookId, | |||
| deptId: JSON.parse(tools.getCookie('user')).deptId, | |||
| otherType: 13 | |||
| }, module.newsList10 , true); | |||
| break; | |||
| default: | |||
| break; | |||
| @@ -0,0 +1,107 @@ | |||
| /** | |||
| * 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(otherPublicDetail, { | |||
| id:getQueryVariable('id'), | |||
| bookId: JSON.parse(tools.getCookie('user')).bookId, | |||
| deptId: JSON.parse(tools.getCookie('user')).deptId | |||
| }, module.newsDetail , true); | |||
| //新闻列表 | |||
| tools.doGet(otherPublicList, { | |||
| pageNum:1, | |||
| pageSize:10, | |||
| isAsc: 'desc', | |||
| bookId: JSON.parse(tools.getCookie('user')).bookId, | |||
| deptId: JSON.parse(tools.getCookie('user')).deptId, | |||
| otherType: 13 | |||
| }, 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; | |||
| }); | |||