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;
+ }
-