Commit b2597c40 authored by 秦垚玲's avatar 秦垚玲

fix:电子回单查询

parent f82c9d5a
......@@ -5,7 +5,7 @@
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="calendar-plugin/calendar.css">
<title>活期账户历史余额查询</title>
<title>电子回单查询</title>
<style>
* {
margin: 0;
......@@ -19,11 +19,14 @@
background-color: #ffffff;
padding: 0;
}
li, ul {
list-style: none;
}
/* 顶部导航栏 */
.top-nav {
background-color: #ffffff;
border-bottom: 2px solid #1890ff;
border-bottom: 2px solid #1f93d5;
display: flex;
align-items: center;
padding: 10px 20px;
......@@ -31,7 +34,7 @@
}
.top-nav a {
color: #1890ff;
color: #1f93d5;
text-decoration: none;
font-size: 16px;
}
......@@ -57,6 +60,128 @@
padding: 50px;
}
/* 账户信息卡片 */
.account-card {
margin-top: 15px;
border-radius: 4px;
}
.account-card .account-number {
background: #fff;
position: relative;
}
.account-card .account-number::before {
content: '';
height: 2px;
background-color: #1f93d5;
position: absolute;
bottom: -2px;
left: 0;
width: 25px;
}
.account-card .account-number::after {
content: '';
height: 2px;
background-color: #1f93d5;
position: absolute;
bottom: -2px;
left: 141px;
right: 0
}
.account-number div {
display: inline-block;
border: 2px solid #1f93d5;
border-bottom: none;
color: #1f93d5;
padding: 4px 8px;
border-radius: 4px 4px 0 0;
margin-left:23px;
height: 40px;
width: 120px;
text-align: center;
line-height: 30px;
font-weight: bold;
}
.tabMenuBox{
background: url(./images/menuTabline.png) repeat-x bottom;
height: 40px;
padding-left: 23px;
margin: 15px 0px 5px 0px;
}
.tabMenuBox li {
display: inline;
line-height: 20px;
float: left;
}
.tabMenuBox .tabMenu {
display: inline;
line-height: 20px;
float: left;
}
.tabMenuBox .tabMenu span{
display: block;
height: 40px;
width: 5px;
float: left;
}
.tabMenuBox li span {
display: block;
height: 40px;
width: 5px;
float: left;
background: url(./images/menuTabDL.png) no-repeat top left;
}
#tabMenuCur span {
background: url(./images/menuTabL.png) no-repeat bottom left;
}
#tabMenuCur a {
background: url(./images/menuTabR.png) no-repeat bottom right;
height: 40px;
cursor: default;
font-weight: bold;
color: #1f93d5;
white-space: nowrap;
}
.tabMenuBox .tabMenu a {
display: block;
float: left;
padding-left: 10px;
padding-right: 15px;
height: 40px;
line-height: 40px;
background: url(./images/menuTabDR.png) no-repeat top right;
margin: 0px 5px 0px 0px;
text-decoration: none;
color: #2c2c2c;
text-align: center;
white-space: nowrap;
}
.tabMenuBox li a {
display: block;
float: left;
padding-left: 10px;
padding-right: 15px;
height: 40px;
line-height: 40px;
background: url(./images/menuTabDR.png) no-repeat top right;
margin: 0px 5px 0px 0px;
text-decoration: none;
color: #2c2c2c;
text-align: center;
white-space: nowrap;
_padding-top: 0px;
}
/* 查询表单 */
.form-container {
padding: 20px;
......@@ -75,7 +200,6 @@
/* gap: 10px; */
}
.form-label {
width: 120px;
text-align: right;
......@@ -154,7 +278,25 @@
margin-left: 8px;
}
/* .form-question {
position: relative;
cursor: pointer;
margin-left: 8px;
display: inline-block;
width: 16px;
height: 16px;
box-sizing: content-box;
line-height: 16px;
text-align: center;
border-radius: 50%;
background-color: #1f93d5;
color: #fff;
padding-left: 4px;
transition: all 0.2s;
} */
.form-question {
position: relative;
cursor: pointer;
margin-left: 8px;
display: inline-block;
......@@ -163,7 +305,7 @@
line-height: 16px;
text-align: center;
border-radius: 50%;
background-color: #1890ff;
background-color: #1f93d5;
color: #fff;
padding-left: 4px;
}
......@@ -176,6 +318,64 @@
margin-left: 70px;
}
/* 气泡框 */
.bubble {
position: absolute;
bottom: calc(100% + 14px);
left: -25px;
width: 150px;
padding: 10px 5px;
text-align: left;
color: #000000;
border-radius: 4px;
border: 1px solid #62a7e3;
background-color: #eaf5fe;
visibility: hidden;
opacity: 0;
transition:
opacity 0.2s ease,
visibility 0.2s ease;
z-index: 100;
pointer-events: none;
}
/* 显示气泡 */
.form-question:hover .bubble {
visibility: visible;
opacity: 1;
}
.bubble::before {
content: "";
position: absolute;
bottom: -12px;
left: 23px;
border-width: 12px 4px 0 10px;
border-style: solid;
border-color: #62a7e3 transparent transparent transparent;
z-index: 1;
}
/* 背景三角(内层,盖住部分边框) */
.bubble::after {
content: "";
position: absolute;
bottom: -9px;
left: 24px;
border-width: 9px 4px 0 8px;
border-style: solid;
border-color: #eaf5fe transparent transparent transparent;
z-index: 2;
}
.question1 {
margin-left: 30px;
}
.question2 {
margin-left: 70px;
}
/* 按钮组 */
.btn-group {
display: flex;
......@@ -186,14 +386,23 @@
.buttonx,
.btn-group button {
background-color: #1f93d5;
color: #fff;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 15px;
box-sizing: content-box;
height: 35px;
width: 100px;
min-width: 60px;
padding-left: 20px;
padding-right: 20px;
text-align: center;
border: 0;
cursor: pointer;
color: #FFF;
margin-right: 15px;
font-weight: bold;
background-color: #1f93d5;
font-size: 1em;
vertical-align: middle;
border-radius: 5px;
display: flex;
align-items: center;
justify-content: center;
......@@ -206,15 +415,16 @@
.xx {
left: 120px;
bottom: 34px;
}
.yy {
left: 264px;
left: 245px;
bottom: 34px;
}
.zz {
left: 390px;
bottom: -57px;
left: 370px;
bottom: 34px;
}
/* 温馨提示 */
......@@ -271,18 +481,6 @@
</head>
<body>
<!-- 顶部导航栏 -->
<!-- <div class="top-nav">
<a href="#">账户信息查询 ∨</a>
<a href="#">批量账户查询</a>
<a href="#">电子回单查询</a>
<a href="#">集成资讯 ∨</a>
<a href="#">电子对账 ∨</a>
<a href="#">经营分析</a>
<a href="#">操作指南</a>
<a href="#">明细清单</a>
</div> -->
<!-- 面包屑导航 -->
<div class="breadcrumb">
当前位置:账户查询 > <span class="breadcrumb_item">电子回单查询</span>
......@@ -290,7 +488,156 @@
<div class="content">
电子回单功能升级,请稍后再试
</div>
<div style="display: none;">
<!-- 账户信息卡片 -->
<ul class="tabMenuBox">
<li id="tabMenuCur">
<span></span>
<a href="javascript:void(0)">电子回单查询</a>
</li>
<li class="tabMenu">
<span></span>
<a href="./unit_receipt.html">单位结算卡回单查询</a>
</li>
<li class="tabMenu">
<span></span>
<a href="./history_receipt.html">历史回单查询</a>
</li>
</ul>
<!-- 查询表单 -->
<div class="form-container">
<form id="myForm">
<div class="form-row">
<label class="form-label"
><span class="required">*</span>查询类型:</label
>
<select class="form-select">
<option value="1">批量回单查询</option>
<option value="2">单笔回单查询</option>
<option value="3">下载全部结果查询</option>
</select>
</div>
<div class="form-row">
<label class="form-label"
><span class="required">*</span>起止日期:</label
>
<input
type="text"
id="dateFrom"
class="form-input small x-small"
name="dateFrom"
oninput="startDate = this.value"
onblur="handleBlur('dateFrom')"
/>
<div class="date-picker" id="sDate">
<img class="dateimg" src="./images/date.png" alt="" />
</div>
<span>-</span>
<input
type="text"
id="dateTo"
class="form-input small x-small"
name="dateTo"
oninput="endDate = this.value"
onblur="handleBlur('dateTo')"
/>
<div class="date-picker" id="eDate">
<img class="dateimg" src="./images/date.png" alt="" />
<!-- <input class="date-input dateTo" type="date" /> -->
</div>
<span class="form-question question1"
>
<span class="bubble">
请输入或选择最近一年半内日期;每次查询时间段不超过3个月;日期标准输入格式<br />20180101,表示2018年1月1日
</span>
</span>
</div>
<div class="form-row">
<label class="form-label">起止金额:</label>
<input type="text" class="form-input small" name="amtFrom" />
<span class="px-2">-</span>
<input type="text" class="form-input small" name="amtTo" />
</div>
<div class="form-row">
<label class="form-label"><span class="required">*</span>文件格式:</label>
<div class="radio-group">
<label
><input type="radio" name="direction" checked value="all" />
PDF</label
>
<label
><input type="radio" name="direction" value="in" /> OFD</label
>
<label
><input type="radio" name="direction" value="out" /> PDF+OFD</label
>
</div>
</div>
<div class="form-row mt-24">
<label class="form-label"><span class="required">*</span>合并下载:</label>
<div class="radio-group">
<label><input type="radio" name="reverse" checked /></label>
<label><input type="radio" name="reverse" /></label>
</div>
</div>
<div class="form-row mt-20">
<label class="form-label">对方户名:</label>
<input type="text" class="form-input wide" name="counterName" />
<!-- <span class="form-tip">录入生僻字</span> -->
</div>
<div class="form-row">
<label class="form-label">对方账号:</label>
<input type="text" class="form-input wide" name="counterAccount" />
</div>
<div class="form-row">
<label class="form-label">交易备注:</label>
<input type="text" class="form-input wide" name="remark" />
<!-- <span class="form-tip">录入生僻字</span> -->
</div>
<div class="form-row">
<label class="form-label">交易摘要:</label>
<!-- name="summary" -->
<select class="form-select hide" style="width: 200px">
<option>请选择</option>
</select>
<div class="select-down-icon">
<div class="down-arrow"></div>
</div>
</div>
<div class="form-row">
<label class="form-label">起止明细编号:</label>
<input type="text" class="form-input small" name="detailFrom" />
<span class="px-2">-</span>
<input type="text" class="form-input small" name="detailTo" />
<span class="form-question">
<span class="bubble">
仅输入起始编号时,查询该编号(含)之后的明细;仅输入截止编号时,查询该编号(含)之前的明细;起止编号同时输入时,截止编号需大于或等于起始编号。
</span>
</span>
</div>
<div style="height: 90px"></div>
<!-- 按钮组 -->
<button class="buttonx xx" onclick="onAccount(1)" type="submit">
确定
</button>
<button type="button" class="buttonx yy">更新回期查询</button>
</form>
</div>
</div>
<!-- 温馨提示 -->
<div class="tips-section">
......@@ -310,30 +657,138 @@ function sendHeight() {
window.parent.postMessage({
type: 'STATUS_HEIGHT',
value: pageHeight + 20
value: pageHeight
}, '*');
}
window.addEventListener('load', sendHeight);
/**
* 解析 YYYYMMDD 格式为 Date 对象
* @param {string} dateStr - 8位数字字符串,如 20250101
* @returns {Date}
*/
function parseYYYYMMDD(dateStr) {
const year = parseInt(dateStr.substring(0, 4));
const month = parseInt(dateStr.substring(4, 6)) - 1;
const day = parseInt(dateStr.substring(6, 8));
return new Date(year, month, day);
}
/**
* 检测 YYYYMMDD 格式的日期间隔是否大于365天
* @param {string} startStr - 开始日期,如 20250101
* @param {string} endStr - 结束日期,如 20260101
* @returns {boolean}
*/
function isOver365DaysYYYYMMDD(startStr, endStr) {
const start = parseYYYYMMDD(startStr);
const end = parseYYYYMMDD(endStr);
const diffDays = (end - start) / (1000 * 60 * 60 * 24);
return Math.abs(diffDays) > 365;
}
let startDate = "";
let endDate = "";
const handleBlur = (dateId) => {
console.log(
"handleBlur",
startDate,
endDate,
isOver365DaysYYYYMMDD(startDate, endDate),
);
if (startDate && endDate && isOver365DaysYYYYMMDD(startDate, endDate)) {
alert("起止日期间隔不能超过365天");
if (dateId === "dateFrom") {
startDate = "";
document.getElementById(dateId).value = "";
} else {
endDate = "";
document.getElementById(dateId).value = "";
}
const checkedQuickDate = document.querySelector(
'input[name="quickDate"]:checked',
);
checkedQuickDate && (checkedQuickDate.checked = false);
return;
}
if (dateId === "dateFrom") {
startDate = startDate;
document.getElementById(dateId).value = startDate;
} else {
endDate = endDate;
document.getElementById(dateId).value = endDate;
}
};
const pickerStart = new CalendarPlugin({
trigger: "#sDate",
onSelect: function (date) {
startDate = date.replaceAll("-", "");
handleBlur("dateFrom");
},
});
const pickerEnd = new CalendarPlugin({
trigger: "#eDate",
onSelect: function (date) {
endDate = date.replaceAll("-", "");
handleBlur("dateTo");
},
});
const form = document.getElementById('myForm');
// 快速日期
document.querySelectorAll("input[name=quickDate]").forEach((el) => {
el.addEventListener("change", () => {
const days = parseInt(el.value, 10);
const now = new Date();
const year = now.getFullYear();
const month = String(now.getMonth() + 1).padStart(2, "0"); // 补零
const day = String(now.getDate()).padStart(2, "0");
const formattedDate = `${year}-${month}-${day}`;
const today = new Date(formattedDate);
const from = new Date(today.getTime() - days * 86400000);
const fmt = (d) =>
d.getFullYear() +
String(d.getMonth() + 1).padStart(2, "0") +
String(d.getDate()).padStart(2, "0");
startDate = fmt(from);
endDate = fmt(today);
document.getElementById("dateFrom").value = startDate;
document.getElementById("dateTo").value = endDate;
});
});
function onSubmit() {
form.addEventListener('submit', async (e) => {
const form = document.getElementById("myForm");
function onAccount(number) {
if (number == 1) {
form.addEventListener("submit", async (e) => {
e.preventDefault(); // 阻止页面刷新
// 方式1:使用 FormData 自动搜集
const formData = new FormData(form);
localStorage.setItem('historyQueryParams', JSON.stringify(Object.fromEntries(formData.entries())));
setTimeout(() => {
window.location.href = './history_balance.html'
}, 500);
localStorage.setItem(
"accountQueryParams",
JSON.stringify(Object.fromEntries(formData.entries())),
);
// setTimeout(() => {
// window.localStorage.setItem("dateFrom", startDate);
// window.location.href = "./account_list.html";
// }, 500);
});
}
// formn表单返回
document.getElementById('backButton').addEventListener('click', function() {
if (number == 2) {
window.history.back();
});
return false;
}
if (number == 3) {
console.log(33333);
window.location.href = "./account_detail-long.html";
return false;
}
}
</script>
\ No newline at end of file
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="calendar-plugin/calendar.css">
<title>历史回单查询</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Microsoft Yahei", sans-serif;
font-size: 14px;
}
body {
background-color: #ffffff;
padding: 0;
}
li, ul {
list-style: none;
}
/* 顶部导航栏 */
.top-nav {
background-color: #ffffff;
border-bottom: 2px solid #1f93d5;
display: flex;
align-items: center;
padding: 10px 20px;
gap: 40px;
}
.top-nav a {
color: #1f93d5;
text-decoration: none;
font-size: 16px;
}
/* 面包屑 */
.breadcrumb {
height: 42px;
background-color: #f4f5fb;
border: 1px solid #dfe1f2;
line-height: 40px;
padding-left: 10px;
margin: 15px 0;
font-size: 14px;
color: #2C2C2C;
}
.breadcrumb_item{
font-weight: bold;
}
.content{
display: flex;
align-items: center;
justify-content: center;
padding: 50px;
}
/* 账户信息卡片 */
.account-card {
margin-top: 15px;
border-radius: 4px;
}
.account-card .account-number {
background: #fff;
position: relative;
}
.account-card .account-number::before {
content: '';
height: 2px;
background-color: #1f93d5;
position: absolute;
bottom: -2px;
left: 0;
width: 25px;
}
.account-card .account-number::after {
content: '';
height: 2px;
background-color: #1f93d5;
position: absolute;
bottom: -2px;
left: 141px;
right: 0
}
.account-number div {
display: inline-block;
border: 2px solid #1f93d5;
border-bottom: none;
color: #1f93d5;
padding: 4px 8px;
border-radius: 4px 4px 0 0;
margin-left:23px;
height: 40px;
width: 120px;
text-align: center;
line-height: 30px;
font-weight: bold;
}
.tabMenuBox{
background: url(./images/menuTabline.png) repeat-x bottom;
height: 40px;
padding-left: 23px;
margin: 15px 0px 5px 0px;
}
.tabMenuBox li {
display: inline;
line-height: 20px;
float: left;
}
.tabMenuBox .tabMenu {
display: inline;
line-height: 20px;
float: left;
}
.tabMenuBox .tabMenu span{
display: block;
height: 40px;
width: 5px;
float: left;
}
.tabMenuBox li span {
display: block;
height: 40px;
width: 5px;
float: left;
background: url(./images/menuTabDL.png) no-repeat top left;
}
#tabMenuCur span {
background: url(./images/menuTabL.png) no-repeat bottom left;
}
#tabMenuCur a {
background: url(./images/menuTabR.png) no-repeat bottom right;
height: 40px;
cursor: default;
font-weight: bold;
color: #1f93d5;
white-space: nowrap;
}
.tabMenuBox .tabMenu a {
display: block;
float: left;
padding-left: 10px;
padding-right: 15px;
height: 40px;
line-height: 40px;
background: url(./images/menuTabDR.png) no-repeat top right;
margin: 0px 5px 0px 0px;
text-decoration: none;
color: #2c2c2c;
text-align: center;
white-space: nowrap;
}
.tabMenuBox li a {
display: block;
float: left;
padding-left: 10px;
padding-right: 15px;
height: 40px;
line-height: 40px;
background: url(./images/menuTabDR.png) no-repeat top right;
margin: 0px 5px 0px 0px;
text-decoration: none;
color: #2c2c2c;
text-align: center;
white-space: nowrap;
_padding-top: 0px;
}
/* 查询表单 */
.form-container {
padding: 20px;
}
.form-title {
font-size: 16px;
font-weight: bold;
margin-bottom: 20px;
}
.form-row {
display: flex;
align-items: center;
margin-bottom: 15px;
/* gap: 10px; */
}
.form-label {
width: 120px;
text-align: right;
color: #333;
}
.form-label .required {
color: red;
margin-right: 4px;
}
.form-input,
.form-select {
padding: 5px 8px;
border: 1px solid #d9d9d9;
width: 230px;
}
.select-down-icon {
height: 31px;
width: 32px;
display: flex;
align-items: center;
justify-content: center;
background-color: #f3f3f3;
border: 1px solid #d9d9d9;
border-left: none;
}
.down-arrow {
width: 0;
height: 0;
border-left: 6px solid transparent;
border-right: 6px solid transparent;
border-top: 8px solid #b0b0b0;
}
.form-select.hide {
appearance: none;
}
.form-input.small {
width: 111px;
}
.px-2 {
padding-left: 2px;
padding-right: 2px;
}
.form-input.x-small {
width: 84px;
}
.form-input.wide {
width: 234px;
}
.radio-group {
display: flex;
gap: 30px;
margin-left: 10px;
}
.radio-group label {
display: flex;
align-items: center;
input {
margin-right: 5px;
}
}
.form-tip {
color: #0066b3;
margin-left: 8px;
}
.form-question {
cursor: pointer;
margin-left: 8px;
display: inline-block;
width: 16px;
height: 16px;
line-height: 16px;
text-align: center;
border-radius: 50%;
background-color: #1f93d5;
color: #fff;
padding-left: 4px;
}
.question1 {
margin-left: 30px;
}
.question2 {
margin-left: 70px;
}
/* 按钮组 */
.btn-group {
display: flex;
gap: 20px;
margin: 30px 0;
padding-left: 120px;
}
.buttonx,
.btn-group button {
background-color: #1f93d5;
color: #fff;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 15px;
height: 35px;
width: 100px;
display: flex;
align-items: center;
justify-content: center;
}
.buttonx {
position: absolute;
}
.xx {
left: 120px;
bottom: 34px;
}
.yy {
left: 264px;
bottom: 34px;
}
.zz {
left: 390px;
bottom: -57px;
}
/* 温馨提示 */
.tips-section {
background-color: #f0f7ff;
padding: 10px;
border: 1px solid #e8e8e8;
}
.tips-title {
color: red;
font-weight: bold;
margin-bottom: 10px;
}
.tips-section p {
line-height: 1.8;
color: #333;
}
.mt-24 {
margin-top: 24px;
}
.mt-20 {
margin-top: 20px;
}
.date-picker {
width: 27px;
height: 27px;
position: relative;
}
.date-picker .date-input {
position: absolute;
top: 0;
left: 0;
width: 27px;
height: 27px;
opacity: 0;
z-index: 1;
}
.date-picker .dateimg {
width: 27px;
height: 27px;
}
#myForm {
position: relative;
}
</style>
</head>
<body>
<!-- 面包屑导航 -->
<div class="breadcrumb">
当前位置:账户查询 > <span class="breadcrumb_item">历史回单查询</span>
</div>
<!-- 账户信息卡片 -->
<ul class="tabMenuBox">
<li class="tabMenu">
<span></span>
<a href="./electronic_receipt.html">电子回单查询</a>
</li>
<li class="tabMenu">
<span></span>
<a href="./unit_receipt.html">单位结算卡回单查询</a>
</li>
<li id="tabMenuCur">
<span></span>
<a href="javascript:void(0)">历史回单查询</a>
</li>
</ul>
<!-- 温馨提示 -->
<div class="tips-section">
<div class="tips-title">温馨提示</div>
<p>1.本功能提供查询您的交易对手的建行交易确认信息。</p>
<p>2.交易流水号可由交易对手提供,或者账户明细中查询。</p>
<script src="./calendar-plugin/calendar.js"></script>
</body>
</html>
<script>
function sendHeight() {
const pageHeight = Math.ceil(Math.max(
document.body.scrollHeight,
document.documentElement.scrollHeight
));
window.parent.postMessage({
type: 'STATUS_HEIGHT',
value: pageHeight
}, '*');
}
window.addEventListener('load', sendHeight);
const form = document.getElementById('myForm');
function onSubmit() {
form.addEventListener('submit', async (e) => {
e.preventDefault(); // 阻止页面刷新
// 方式1:使用 FormData 自动搜集
const formData = new FormData(form);
localStorage.setItem('historyQueryParams', JSON.stringify(Object.fromEntries(formData.entries())));
setTimeout(() => {
window.location.href = './history_balance.html'
}, 500);
});
}
// formn表单返回
document.getElementById('backButton').addEventListener('click', function() {
window.history.back();
});
</script>
\ No newline at end of file
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="calendar-plugin/calendar.css">
<title>单位结算卡回单查询</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Microsoft Yahei", sans-serif;
font-size: 14px;
}
body {
background-color: #ffffff;
padding: 0;
}
li, ul {
list-style: none;
}
/* 顶部导航栏 */
.top-nav {
background-color: #ffffff;
border-bottom: 2px solid #1f93d5;
display: flex;
align-items: center;
padding: 10px 20px;
gap: 40px;
}
.top-nav a {
color: #1f93d5;
text-decoration: none;
font-size: 16px;
}
/* 面包屑 */
.breadcrumb {
height: 42px;
background-color: #f4f5fb;
border: 1px solid #dfe1f2;
line-height: 40px;
padding-left: 10px;
margin: 15px 0;
font-size: 14px;
color: #2C2C2C;
}
.breadcrumb_item{
font-weight: bold;
}
.content{
display: flex;
align-items: center;
justify-content: center;
padding: 50px;
}
/* 账户信息卡片 */
.account-card {
margin-top: 15px;
border-radius: 4px;
}
.account-card .account-number {
background: #fff;
position: relative;
}
.account-card .account-number::before {
content: '';
height: 2px;
background-color: #1f93d5;
position: absolute;
bottom: -2px;
left: 0;
width: 25px;
}
.account-card .account-number::after {
content: '';
height: 2px;
background-color: #1f93d5;
position: absolute;
bottom: -2px;
left: 141px;
right: 0
}
.account-number div {
display: inline-block;
border: 2px solid #1f93d5;
border-bottom: none;
color: #1f93d5;
padding: 4px 8px;
border-radius: 4px 4px 0 0;
margin-left:23px;
height: 40px;
width: 120px;
text-align: center;
line-height: 30px;
font-weight: bold;
}
.tabMenuBox{
background: url(./images/menuTabline.png) repeat-x bottom;
height: 40px;
padding-left: 23px;
margin: 15px 0px 5px 0px;
}
.tabMenuBox li {
display: inline;
line-height: 20px;
float: left;
}
.tabMenuBox .tabMenu {
display: inline;
line-height: 20px;
float: left;
}
.tabMenuBox .tabMenu span{
display: block;
height: 40px;
width: 5px;
float: left;
}
.tabMenuBox li span {
display: block;
height: 40px;
width: 5px;
float: left;
background: url(./images/menuTabDL.png) no-repeat top left;
}
#tabMenuCur span {
background: url(./images/menuTabL.png) no-repeat bottom left;
}
#tabMenuCur a {
background: url(./images/menuTabR.png) no-repeat bottom right;
height: 40px;
cursor: default;
font-weight: bold;
color: #1f93d5;
white-space: nowrap;
}
.tabMenuBox .tabMenu a {
display: block;
float: left;
padding-left: 10px;
padding-right: 15px;
height: 40px;
line-height: 40px;
background: url(./images/menuTabDR.png) no-repeat top right;
margin: 0px 5px 0px 0px;
text-decoration: none;
color: #2c2c2c;
text-align: center;
white-space: nowrap;
}
.tabMenuBox li a {
display: block;
float: left;
padding-left: 10px;
padding-right: 15px;
height: 40px;
line-height: 40px;
background: url(./images/menuTabDR.png) no-repeat top right;
margin: 0px 5px 0px 0px;
text-decoration: none;
color: #2c2c2c;
text-align: center;
white-space: nowrap;
_padding-top: 0px;
}
/* 查询表单 */
.form-container {
padding: 20px;
}
.form-title {
font-size: 16px;
font-weight: bold;
margin-bottom: 20px;
}
.form-row {
display: flex;
align-items: center;
margin-bottom: 15px;
/* gap: 10px; */
}
.form-label {
width: 120px;
text-align: right;
color: #333;
}
.form-label .required {
color: red;
margin-right: 4px;
}
.form-input,
.form-select {
padding: 5px 8px;
border: 1px solid #d9d9d9;
width: 230px;
}
.select-down-icon {
height: 31px;
width: 32px;
display: flex;
align-items: center;
justify-content: center;
background-color: #f3f3f3;
border: 1px solid #d9d9d9;
border-left: none;
}
.down-arrow {
width: 0;
height: 0;
border-left: 6px solid transparent;
border-right: 6px solid transparent;
border-top: 8px solid #b0b0b0;
}
.form-select.hide {
appearance: none;
}
.form-input.small {
width: 111px;
}
.px-2 {
padding-left: 2px;
padding-right: 2px;
}
.form-input.x-small {
width: 84px;
}
.form-input.wide {
width: 234px;
}
.radio-group {
display: flex;
gap: 30px;
margin-left: 10px;
}
.radio-group label {
display: flex;
align-items: center;
input {
margin-right: 5px;
}
}
.form-tip {
color: #0066b3;
margin-left: 8px;
}
.form-question {
cursor: pointer;
margin-left: 8px;
display: inline-block;
width: 16px;
height: 16px;
line-height: 16px;
text-align: center;
border-radius: 50%;
background-color: #1f93d5;
color: #fff;
padding-left: 4px;
}
.question1 {
margin-left: 30px;
}
.question2 {
margin-left: 70px;
}
/* 按钮组 */
.btn-group {
display: flex;
gap: 20px;
margin: 30px 0;
padding-left: 120px;
}
.buttonx,
.btn-group button {
background-color: #1f93d5;
color: #fff;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 15px;
height: 35px;
width: 100px;
display: flex;
align-items: center;
justify-content: center;
}
.buttonx {
position: absolute;
}
.xx {
left: 120px;
bottom: 34px;
}
.yy {
left: 264px;
bottom: 34px;
}
.zz {
left: 390px;
bottom: -57px;
}
/* 温馨提示 */
.tips-section {
background-color: #f0f7ff;
padding: 10px;
border: 1px solid #e8e8e8;
}
.tips-title {
color: red;
font-weight: bold;
margin-bottom: 10px;
}
.tips-section p {
line-height: 1.8;
color: #333;
}
.mt-24 {
margin-top: 24px;
}
.mt-20 {
margin-top: 20px;
}
.date-picker {
width: 27px;
height: 27px;
position: relative;
}
.date-picker .date-input {
position: absolute;
top: 0;
left: 0;
width: 27px;
height: 27px;
opacity: 0;
z-index: 1;
}
.date-picker .dateimg {
width: 27px;
height: 27px;
}
#myForm {
position: relative;
}
</style>
</head>
<body>
<!-- 面包屑导航 -->
<div class="breadcrumb">
当前位置:账户查询 > <span class="breadcrumb_item">单位结算卡回单查询</span>
</div>
<!-- 账户信息卡片 -->
<ul class="tabMenuBox">
<li class="tabMenu">
<span></span>
<a href="./electronic_receipt.html">电子回单查询</a>
</li>
<li id="tabMenuCur">
<span></span>
<a href="javascript:void(0)">单位结算卡回单查询</a>
</li>
<li class="tabMenu">
<span></span>
<a href="./history_receipt.html">历史回单查询</a>
</li>
</ul>
<!-- 温馨提示 -->
<div class="tips-section">
<div class="tips-title">温馨提示</div>
<p>1.本功能提供查询您的交易对手的建行交易确认信息。</p>
<p>2.交易流水号可由交易对手提供,或者账户明细中查询。</p>
<script src="./calendar-plugin/calendar.js"></script>
</body>
</html>
<script>
function sendHeight() {
const pageHeight = Math.ceil(Math.max(
document.body.scrollHeight,
document.documentElement.scrollHeight
));
window.parent.postMessage({
type: 'STATUS_HEIGHT',
value: pageHeight
}, '*');
}
window.addEventListener('load', sendHeight);
const form = document.getElementById('myForm');
function onSubmit() {
form.addEventListener('submit', async (e) => {
e.preventDefault(); // 阻止页面刷新
// 方式1:使用 FormData 自动搜集
const formData = new FormData(form);
localStorage.setItem('historyQueryParams', JSON.stringify(Object.fromEntries(formData.entries())));
setTimeout(() => {
window.location.href = './history_balance.html'
}, 500);
});
}
// formn表单返回
document.getElementById('backButton').addEventListener('click', function() {
window.history.back();
});
</script>
\ No newline at end of file
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