From 73dec3abfe6a6126b1dbd773fbed289fe89549cd 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, 14 Dec 2021 09:07:50 +0800
Subject: [PATCH] =?UTF-8?q?=E8=A1=8C=E6=94=BF=E6=89=A7=E6=B3=95=E9=97=AE?=
=?UTF-8?q?=E9=A2=98=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../static/js/project/basis/basisDetail.js | 3 +++
.../static/js/project/complaint/complaintAdd.js | 5 +++++
.../js/project/complaint/complaintDetail.js | 7 ++++++-
.../static/js/project/notice/noticeDetail.js | 3 +++
.../static/js/project/scheme/schemeDetail.js | 3 +++
.../static/js/project/work/workDetail.js | 3 +++
.../view/basis/basisDetail.html | 14 +++++++++++---
.../view/basis/basisList.html | 2 +-
.../view/complaint/complaintAdd.html | 12 ++++++------
.../view/complaint/complaintDetail.html | 16 ++++++++++------
.../view/noticeAnnouncement/noticeDetail.html | 12 ++++++++++--
.../view/schemeDisclosure/schemeDetail.html | 12 ++++++++++--
.../view/workDynamics/workDetail.html | 12 ++++++++++--
13 files changed, 81 insertions(+), 23 deletions(-)
diff --git a/agriculturalLawEnforcement/static/js/project/basis/basisDetail.js b/agriculturalLawEnforcement/static/js/project/basis/basisDetail.js
index df21948..514547e 100644
--- a/agriculturalLawEnforcement/static/js/project/basis/basisDetail.js
+++ b/agriculturalLawEnforcement/static/js/project/basis/basisDetail.js
@@ -39,6 +39,9 @@ define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, templa
$("#newTime").html('发布时间:'+content.newsTime);
$("#newCome").html('来源:'+content.createBy);
$("#newContent").html(content.content);
+ if (document.body.scrollHeight > document.body.offsetHeight){
+ document.getElementById('bottomInformation').style.position = 'relative';
+ }
}
}
diff --git a/agriculturalLawEnforcement/static/js/project/complaint/complaintAdd.js b/agriculturalLawEnforcement/static/js/project/complaint/complaintAdd.js
index 0cbc4b8..22609f2 100644
--- a/agriculturalLawEnforcement/static/js/project/complaint/complaintAdd.js
+++ b/agriculturalLawEnforcement/static/js/project/complaint/complaintAdd.js
@@ -17,6 +17,11 @@ define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, templa
module.init = function (page) {
tools.doGet(getTopDeptId, {}, module.getInformation , true);
+ if (document.body.scrollHeight <= document.body.offsetHeight){
+ document.getElementById('bottomInformation').style.position = 'fixed';
+ document.getElementById('bottomInformation').style.bottom = '0';
+
+ }
};
module.getInformation = function (data) {
diff --git a/agriculturalLawEnforcement/static/js/project/complaint/complaintDetail.js b/agriculturalLawEnforcement/static/js/project/complaint/complaintDetail.js
index 0d1b020..40e589f 100644
--- a/agriculturalLawEnforcement/static/js/project/complaint/complaintDetail.js
+++ b/agriculturalLawEnforcement/static/js/project/complaint/complaintDetail.js
@@ -18,7 +18,8 @@ define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, templa
module.init = function (page) {
//新闻管理列表
tools.doGet(dictType + '/communicate_type', {}, module.dictType , true);
- tools.doGet(communicateDetail + '/' + getQueryVariable('id'), {}, module.newList , true);
+
+
};
//获取地址栏参数
@@ -34,6 +35,7 @@ define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, templa
module.dictType = function (data) {
module.data.communicateOptions = data.data;
+ tools.doGet(communicateDetail + '/' + getQueryVariable('id'), {}, module.newList , true);
}
//新闻列表
@@ -45,6 +47,9 @@ define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, templa
module.data.newList = content;
var newData = template('newData', module.data);
$("#newContent").html(newData);
+ if (document.body.scrollHeight > document.body.offsetHeight){
+ document.getElementById('bottomInformation').style.position = 'relative';
+ }
}
}
diff --git a/agriculturalLawEnforcement/static/js/project/notice/noticeDetail.js b/agriculturalLawEnforcement/static/js/project/notice/noticeDetail.js
index df21948..514547e 100644
--- a/agriculturalLawEnforcement/static/js/project/notice/noticeDetail.js
+++ b/agriculturalLawEnforcement/static/js/project/notice/noticeDetail.js
@@ -39,6 +39,9 @@ define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, templa
$("#newTime").html('发布时间:'+content.newsTime);
$("#newCome").html('来源:'+content.createBy);
$("#newContent").html(content.content);
+ if (document.body.scrollHeight > document.body.offsetHeight){
+ document.getElementById('bottomInformation').style.position = 'relative';
+ }
}
}
diff --git a/agriculturalLawEnforcement/static/js/project/scheme/schemeDetail.js b/agriculturalLawEnforcement/static/js/project/scheme/schemeDetail.js
index d094e65..ff1bcd6 100644
--- a/agriculturalLawEnforcement/static/js/project/scheme/schemeDetail.js
+++ b/agriculturalLawEnforcement/static/js/project/scheme/schemeDetail.js
@@ -38,6 +38,9 @@ define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, templa
module.data.newList = content;
var newData = template('newData', module.data);
$("#newContent").html(newData);
+ if (document.body.scrollHeight > document.body.offsetHeight){
+ document.getElementById('bottomInformation').style.position = 'relative';
+ }
}
}
diff --git a/agriculturalLawEnforcement/static/js/project/work/workDetail.js b/agriculturalLawEnforcement/static/js/project/work/workDetail.js
index df21948..514547e 100644
--- a/agriculturalLawEnforcement/static/js/project/work/workDetail.js
+++ b/agriculturalLawEnforcement/static/js/project/work/workDetail.js
@@ -39,6 +39,9 @@ define(['jquery', "template", "Tools", "echarts", 'swiper'], function ($, templa
$("#newTime").html('发布时间:'+content.newsTime);
$("#newCome").html('来源:'+content.createBy);
$("#newContent").html(content.content);
+ if (document.body.scrollHeight > document.body.offsetHeight){
+ document.getElementById('bottomInformation').style.position = 'relative';
+ }
}
}
diff --git a/agriculturalLawEnforcement/view/basis/basisDetail.html b/agriculturalLawEnforcement/view/basis/basisDetail.html
index f4fb35a..ede38ca 100644
--- a/agriculturalLawEnforcement/view/basis/basisDetail.html
+++ b/agriculturalLawEnforcement/view/basis/basisDetail.html
@@ -15,11 +15,19 @@
.ql-align-center{
text-align: center;
}
+ body{
+ overflow: auto;
+ background: #f4f4f4;
+ }
+ .bottomInformation{
+ position: fixed;
+ bottom: 0;
+ }
-