From 6b2a68aa5c851e469b8c56452af87778a08bc4c3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=BA=9E=E4=B8=9C=E6=97=AD?= <850374051@qq.com>
Date: Tue, 24 Jun 2025 15:06:39 +0800
Subject: [PATCH] =?UTF-8?q?0620=20=E9=87=8D=E8=A6=81=E4=BA=8B=E9=A1=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
infoport/discussions.html | 17 ++-
infoport/discussionsDetail_03_zy.html | 105 +++++++++++++++++
infoport/static/css/index.css | 12 ++
infoport/static/js/api/index.js | 4 +
infoport/static/js/project/discussions.js | 63 ++++++++++
.../js/project/discussionsDetail_03_zy.js | 108 ++++++++++++++++++
6 files changed, 308 insertions(+), 1 deletion(-)
create mode 100644 infoport/discussionsDetail_03_zy.html
create mode 100644 infoport/static/js/project/discussionsDetail_03_zy.js
diff --git a/infoport/discussions.html b/infoport/discussions.html
index 3ad42ce..d88be8a 100644
--- a/infoport/discussions.html
+++ b/infoport/discussions.html
@@ -169,7 +169,7 @@
diff --git a/infoport/discussionsDetail_03_zy.html b/infoport/discussionsDetail_03_zy.html
new file mode 100644
index 0000000..1db52cf
--- /dev/null
+++ b/infoport/discussionsDetail_03_zy.html
@@ -0,0 +1,105 @@
+
+
+
+
+
+
农村资源信息港
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
![]()
+
+
+
+
+
+
+
![]()
+
+
+
+
+
+
diff --git a/infoport/static/css/index.css b/infoport/static/css/index.css
index bd6cdcf..dc59bd9 100644
--- a/infoport/static/css/index.css
+++ b/infoport/static/css/index.css
@@ -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;
+}
diff --git a/infoport/static/js/api/index.js b/infoport/static/js/api/index.js
index 3f8e883..524a2bb 100644
--- a/infoport/static/js/api/index.js
+++ b/infoport/static/js/api/index.js
@@ -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'
diff --git a/infoport/static/js/project/discussions.js b/infoport/static/js/project/discussions.js
index 19af0ac..c779085 100644
--- a/infoport/static/js/project/discussions.js
+++ b/infoport/static/js/project/discussions.js
@@ -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");
diff --git a/infoport/static/js/project/discussionsDetail_03_zy.js b/infoport/static/js/project/discussionsDetail_03_zy.js
new file mode 100644
index 0000000..c019c6d
--- /dev/null
+++ b/infoport/static/js/project/discussionsDetail_03_zy.js
@@ -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
';
+
+ if (content.openPic){
+ let arr = content.openPic.split(',');
+ for (let i = 0;i < arr.length; i++){
+ $('#openPic')[0].innerHTML += '

';
+ }
+ }
+
+ $('#openFile')[0].innerHTML = '附件:
';
+
+ if (content.openFile){
+ let arr2 = content.openFile.split(',');
+ for (let i = 0;i < arr2.length; i++){
+ $('#openFile')[0].innerHTML += '
'+arr2[i].substr(27,arr2[i].length)+'';
+ }
+ }
+
+ $('#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;
+});