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

滚动条调整

parent 704a7e6b
......@@ -1312,6 +1312,17 @@
</html>
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.10.1/html2pdf.bundle.min.js"></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) {
if(number == 0) {
window.location.href = './account_balance.html'
......@@ -1345,20 +1356,14 @@ function openFilter(element) {
rightType.style.display = 'none';
rightTypes.style.display = 'inline-block';
conditionTB.style.display = 'inline-block';
sendHeight(826);
sendHeight();
}else{
rightType.style.display = 'inline-block';
rightTypes.style.display = 'none';
conditionTB.style.display = 'none';
sendHeight(581);
sendHeight();
}
}
function sendHeight(h) {
window.parent.postMessage({
type: 'STATUS_HEIGHT',
value: h
}, '*');
}
function searchOne(checkboxElement) {
if (checkboxElement) {
checkboxElement.checked = false;
......
......@@ -1264,6 +1264,16 @@
</html>
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.10.1/html2pdf.bundle.min.js"></script>
<script>
window.addEventListener('pageshow', () => {
window.parent.postMessage({
type: 'STATUS_HEIGHT',
value: 340
}, '*');
});
window.parent.postMessage({
type: 'STATUS_HEIGHT',
value: 340
}, '*');
function onBack(){
window.history.back();
}
......
......@@ -457,6 +457,29 @@
</body>
</html>
<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 对象
* @param {string} dateStr - 8位数字字符串,如 20250101
......
......@@ -493,6 +493,17 @@
</body>
</html>
<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 对象
* @param {string} dateStr - 8位数字字符串,如 20250101
......
......@@ -412,6 +412,9 @@
.btn:hover {
background: #1a73e8;
}
.number {
font-weight: bold;
}
</style>
<script src="./js/pako.min.js"></script>
</head>
......@@ -431,7 +434,7 @@
<td>账户名称:</td>
<td>中科软盈(武汉)科技有限公司 </td>
<td>账号:</td>
<td>42050123704500001941 </td>
<td class="number">42050123704500001941 </td>
</tr>
<tr>
<td>开户机构名称:</td>
......@@ -459,7 +462,7 @@
</tr>
<tr>
<td>可用余额:</td>
<td>773,541.62 </td>
<td class="number">773,541.62 </td>
<td>开户日期:</td>
<td>20251105 </td>
</tr>
......@@ -591,6 +594,17 @@
</div>
</body>
<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) => {
el.addEventListener('click', function () {
submitSelect('0', String(index + 1));
......
......@@ -931,6 +931,17 @@
<script src="./data/pdf_b64.js"></script>
<!-- 引入data中的json文件 -->
<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");
table.style.width = "1145px";
table.style.tableLayout = "fixed"; // 关键!
......
......@@ -783,6 +783,18 @@
</body>
</html>
<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");
table.style.width = "1145px";
table.style.tableLayout = "fixed"; // 关键!
......
......@@ -689,6 +689,23 @@
</html>
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.10.1/html2pdf.bundle.min.js"></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(){
window.history.back();
}
......
......@@ -314,14 +314,6 @@
</div> -->
<span class="form-question question1"></span>
</div>
<div style="height: 90px;"></div>
<!-- 按钮组 -->
<button class="buttonx xx" onclick="onSubmit()" type="submit">确定</button>
......@@ -346,8 +338,45 @@
</html>
<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({
trigger: '#sDate',
onSelect: function (date) {
......
......@@ -10068,7 +10068,7 @@ $(function(){
let homeBox = document.getElementById("homeBox");
homeBox.style.display = "none";
let accountBox = document.getElementById("accountBox");
accountBox.style.display = "block
accountBox.style.display = "block"
// 选中效果
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