Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
buildbank-replica
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
姚珂
buildbank-replica
Commits
717e4c4c
Commit
717e4c4c
authored
May 06, 2026
by
何波
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
滚动条调整
parent
704a7e6b
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
153 additions
and
21 deletions
+153
-21
account.html
account.html
+13
-8
account_balance.html
account_balance.html
+10
-0
account_detail-long.html
account_detail-long.html
+23
-0
account_detail.html
account_detail.html
+11
-0
account_info.html
account_info.html
+16
-2
account_list.html
account_list.html
+11
-0
async_detail_list.html
async_detail_list.html
+12
-0
history_balance.html
history_balance.html
+17
-0
history_query.html
history_query.html
+39
-10
index.html
index.html
+1
-1
No files found.
account.html
View file @
717e4c4c
...
...
@@ -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
;
...
...
account_balance.html
View file @
717e4c4c
...
...
@@ -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
();
}
...
...
account_detail-long.html
View file @
717e4c4c
...
...
@@ -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
...
...
account_detail.html
View file @
717e4c4c
...
...
@@ -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
...
...
account_info.html
View file @
717e4c4c
...
...
@@ -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
));
...
...
account_list.html
View file @
717e4c4c
...
...
@@ -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"
;
// 关键!
...
...
async_detail_list.html
View file @
717e4c4c
...
...
@@ -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"
;
// 关键!
...
...
history_balance.html
View file @
717e4c4c
...
...
@@ -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
();
}
...
...
history_query.html
View file @
717e4c4c
...
...
@@ -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
)
{
...
...
index.html
View file @
717e4c4c
...
...
@@ -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"
);
// 主动触发点击事件
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment