Commit 717e4c4c authored by 何波's avatar 何波

滚动条调整

parent 704a7e6b
...@@ -1312,6 +1312,17 @@ ...@@ -1312,6 +1312,17 @@
</html> </html>
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.10.1/html2pdf.bundle.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.10.1/html2pdf.bundle.min.js"></script>
<script> <script>
window.addEventListener('pageshow', () => {
setTimeout(sendHeight(), 300);
});
function sendHeight() {
const pageHeight = document.body.scrollHeight;
console.log(pageHeight,'pageHeight===================');
window.parent.postMessage({
type: 'STATUS_HEIGHT',
value: pageHeight + 35
}, '*');
}
function onAccount(number) { function onAccount(number) {
if(number == 0) { if(number == 0) {
window.location.href = './account_balance.html' window.location.href = './account_balance.html'
...@@ -1345,20 +1356,14 @@ function openFilter(element) { ...@@ -1345,20 +1356,14 @@ function openFilter(element) {
rightType.style.display = 'none'; rightType.style.display = 'none';
rightTypes.style.display = 'inline-block'; rightTypes.style.display = 'inline-block';
conditionTB.style.display = 'inline-block'; conditionTB.style.display = 'inline-block';
sendHeight(826); sendHeight();
}else{ }else{
rightType.style.display = 'inline-block'; rightType.style.display = 'inline-block';
rightTypes.style.display = 'none'; rightTypes.style.display = 'none';
conditionTB.style.display = 'none'; conditionTB.style.display = 'none';
sendHeight(581); sendHeight();
} }
} }
function sendHeight(h) {
window.parent.postMessage({
type: 'STATUS_HEIGHT',
value: h
}, '*');
}
function searchOne(checkboxElement) { function searchOne(checkboxElement) {
if (checkboxElement) { if (checkboxElement) {
checkboxElement.checked = false; checkboxElement.checked = false;
......
...@@ -1264,6 +1264,16 @@ ...@@ -1264,6 +1264,16 @@
</html> </html>
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.10.1/html2pdf.bundle.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.10.1/html2pdf.bundle.min.js"></script>
<script> <script>
window.addEventListener('pageshow', () => {
window.parent.postMessage({
type: 'STATUS_HEIGHT',
value: 340
}, '*');
});
window.parent.postMessage({
type: 'STATUS_HEIGHT',
value: 340
}, '*');
function onBack(){ function onBack(){
window.history.back(); window.history.back();
} }
......
...@@ -457,6 +457,29 @@ ...@@ -457,6 +457,29 @@
</body> </body>
</html> </html>
<script> <script>
window.addEventListener('pageshow', () => {
setTimeout(sendHeight(), 300);
});
function sendHeight() {
const pageHeight = document.body.scrollHeight;
console.log(pageHeight,'pageHeight===================');
window.parent.postMessage({
type: 'STATUS_HEIGHT',
value: pageHeight + 20
}, '*');
}
// window.addEventListener('pageshow', () => {
// // sendHeight()
// setTimeout(sendHeight(), 300);
// });
// function sendHeight() {
// const pageHeight = document.body.scrollHeight;
// console.log(pageHeight,'pageHeight===================');
// window.parent.postMessage({
// type: 'STATUS_HEIGHT',
// value: pageHeight + 20
// }, '*');
// }
/** /**
* 解析 YYYYMMDD 格式为 Date 对象 * 解析 YYYYMMDD 格式为 Date 对象
* @param {string} dateStr - 8位数字字符串,如 20250101 * @param {string} dateStr - 8位数字字符串,如 20250101
......
...@@ -493,6 +493,17 @@ ...@@ -493,6 +493,17 @@
</body> </body>
</html> </html>
<script> <script>
window.addEventListener('pageshow', () => {
setTimeout(sendHeight(), 300);
});
function sendHeight() {
const pageHeight = document.body.scrollHeight;
console.log(pageHeight,'pageHeight===================');
window.parent.postMessage({
type: 'STATUS_HEIGHT',
value: pageHeight + 20
}, '*');
}
/** /**
* 解析 YYYYMMDD 格式为 Date 对象 * 解析 YYYYMMDD 格式为 Date 对象
* @param {string} dateStr - 8位数字字符串,如 20250101 * @param {string} dateStr - 8位数字字符串,如 20250101
......
...@@ -412,6 +412,9 @@ ...@@ -412,6 +412,9 @@
.btn:hover { .btn:hover {
background: #1a73e8; background: #1a73e8;
} }
.number {
font-weight: bold;
}
</style> </style>
<script src="./js/pako.min.js"></script> <script src="./js/pako.min.js"></script>
</head> </head>
...@@ -431,7 +434,7 @@ ...@@ -431,7 +434,7 @@
<td>账户名称:</td> <td>账户名称:</td>
<td>中科软盈(武汉)科技有限公司 </td> <td>中科软盈(武汉)科技有限公司 </td>
<td>账号:</td> <td>账号:</td>
<td>42050123704500001941 </td> <td class="number">42050123704500001941 </td>
</tr> </tr>
<tr> <tr>
<td>开户机构名称:</td> <td>开户机构名称:</td>
...@@ -459,7 +462,7 @@ ...@@ -459,7 +462,7 @@
</tr> </tr>
<tr> <tr>
<td>可用余额:</td> <td>可用余额:</td>
<td>773,541.62 </td> <td class="number">773,541.62 </td>
<td>开户日期:</td> <td>开户日期:</td>
<td>20251105 </td> <td>20251105 </td>
</tr> </tr>
...@@ -591,6 +594,17 @@ ...@@ -591,6 +594,17 @@
</div> </div>
</body> </body>
<script> <script>
window.addEventListener('pageshow', () => {
setTimeout(sendHeight(), 300);
});
function sendHeight() {
const pageHeight = document.body.scrollHeight;
console.log(pageHeight,'pageHeight===================');
window.parent.postMessage({
type: 'STATUS_HEIGHT',
value: pageHeight + 20
}, '*');
}
document.querySelectorAll('.downloadBox li').forEach((el, index) => { document.querySelectorAll('.downloadBox li').forEach((el, index) => {
el.addEventListener('click', function () { el.addEventListener('click', function () {
submitSelect('0', String(index + 1)); submitSelect('0', String(index + 1));
......
...@@ -931,6 +931,17 @@ ...@@ -931,6 +931,17 @@
<script src="./data/pdf_b64.js"></script> <script src="./data/pdf_b64.js"></script>
<!-- 引入data中的json文件 --> <!-- 引入data中的json文件 -->
<script> <script>
window.addEventListener('load', () => {
const pageHeight = Math.max(
document.body.scrollHeight,
document.documentElement.scrollHeight
);
window.parent.postMessage({
type: 'STATUS_HEIGHT',
value: pageHeight + 20
}, '*');
});
let table = document.getElementById("resultTable"); let table = document.getElementById("resultTable");
table.style.width = "1145px"; table.style.width = "1145px";
table.style.tableLayout = "fixed"; // 关键! table.style.tableLayout = "fixed"; // 关键!
......
...@@ -783,6 +783,18 @@ ...@@ -783,6 +783,18 @@
</body> </body>
</html> </html>
<script> <script>
window.addEventListener('pageshow', () => {
// sendHeight()
setTimeout(sendHeight(), 300);
});
function sendHeight() {
const pageHeight = document.body.scrollHeight;
console.log(pageHeight,'pageHeight===================');
window.parent.postMessage({
type: 'STATUS_HEIGHT',
value: pageHeight + 20
}, '*');
}
let table = document.getElementById("resultTable"); let table = document.getElementById("resultTable");
table.style.width = "1145px"; table.style.width = "1145px";
table.style.tableLayout = "fixed"; // 关键! table.style.tableLayout = "fixed"; // 关键!
......
...@@ -689,6 +689,23 @@ ...@@ -689,6 +689,23 @@
</html> </html>
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.10.1/html2pdf.bundle.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.10.1/html2pdf.bundle.min.js"></script>
<script> <script>
function sendHeight() {
const pageHeight = Math.ceil(Math.max(
document.body.scrollHeight,
document.documentElement.scrollHeight
));
window.parent.postMessage({
type: 'STATUS_HEIGHT',
value: pageHeight + 20
}, '*');
}
window.addEventListener('load', sendHeight);
window.addEventListener('pageshow', sendHeight);
const observer = new ResizeObserver(() => {
sendHeight();
});
observer.observe(document.body);
function onBack(){ function onBack(){
window.history.back(); window.history.back();
} }
......
...@@ -314,14 +314,6 @@ ...@@ -314,14 +314,6 @@
</div> --> </div> -->
<span class="form-question question1"></span> <span class="form-question question1"></span>
</div> </div>
<div style="height: 90px;"></div> <div style="height: 90px;"></div>
<!-- 按钮组 --> <!-- 按钮组 -->
<button class="buttonx xx" onclick="onSubmit()" type="submit">确定</button> <button class="buttonx xx" onclick="onSubmit()" type="submit">确定</button>
...@@ -346,8 +338,45 @@ ...@@ -346,8 +338,45 @@
</html> </html>
<script> <script>
function sendHeight() {
const pageHeight = Math.ceil(Math.max(
document.body.scrollHeight,
document.documentElement.scrollHeight
));
window.parent.postMessage({
type: 'STATUS_HEIGHT',
value: pageHeight + 20
}, '*');
}
window.addEventListener('load', sendHeight);
window.addEventListener('pageshow', sendHeight);
const observer = new ResizeObserver(() => {
sendHeight();
});
observer.observe(document.body);
// window.parent.postMessage({
// type: 'STATUS_HEIGHT',
// value: 435
// }, '*');
function getTodayYYYYMMDD() {
const now = new Date();
const y = now.getFullYear();
const m = String(now.getMonth() + 1).padStart(2, "0");
const d = String(now.getDate()).padStart(2, "0");
return `${y}${m}${d}`;
}
// 页面加载默认赋值
window.addEventListener("DOMContentLoaded", () => {
const today = getTodayYYYYMMDD();
startDate = today;
endDate = today;
document.getElementById("dateFrom").value = today;
document.getElementById("dateTo").value = today;
});
const pickerStart = new CalendarPlugin({ const pickerStart = new CalendarPlugin({
trigger: '#sDate', trigger: '#sDate',
onSelect: function (date) { onSelect: function (date) {
......
...@@ -10068,7 +10068,7 @@ $(function(){ ...@@ -10068,7 +10068,7 @@ $(function(){
let homeBox = document.getElementById("homeBox"); let homeBox = document.getElementById("homeBox");
homeBox.style.display = "none"; homeBox.style.display = "none";
let accountBox = document.getElementById("accountBox"); let accountBox = document.getElementById("accountBox");
accountBox.style.display = "block accountBox.style.display = "block"
// 选中效果 // 选中效果
var accountBtn = document.getElementById("0001"); var accountBtn = document.getElementById("0001");
// 主动触发点击事件 // 主动触发点击事件
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment