Commit ba261f11 authored by 黄同智's avatar 黄同智

完善

Co-authored-by: 's avatarCopilot <copilot@github.com>
parent 3eb1f191
...@@ -168,9 +168,9 @@ ...@@ -168,9 +168,9 @@
display: flex; display: flex;
gap: 20px; gap: 20px;
margin: 30px 0; margin: 30px 0;
padding-left: 120px;
} }
.buttonx,
.btn-group button { .btn-group button {
background-color: #1f93d5; background-color: #1f93d5;
color: #fff; color: #fff;
...@@ -185,6 +185,24 @@ ...@@ -185,6 +185,24 @@
justify-content: center; justify-content: center;
} }
.buttonx {
position: absolute;
}
.xx {
left: 140px;
bottom: 64px;
}
.yy {
left: 264px;
bottom: 64px;
}
.zz {
left: 390px;
bottom: 64px;
}
/* 温馨提示 */ /* 温馨提示 */
.tips-section { .tips-section {
background-color: #f0f7ff; background-color: #f0f7ff;
...@@ -269,12 +287,12 @@ ...@@ -269,12 +287,12 @@
<label class="form-label"><span class="required">*</span>起止日期:</label> <label class="form-label"><span class="required">*</span>起止日期:</label>
<input type="text" id="dateFrom" class="form-input small x-small" name="dateFrom"> <input type="text" id="dateFrom" class="form-input small x-small" name="dateFrom">
<div class="date-picker" id="sDate"> <div class="date-picker" id="sDate">
<img class="dateimg" src="/imagse/date.png" alt="" /> <img class="dateimg" src="./images/date.png" alt="" />
</div> </div>
<span>-</span> <span>-</span>
<input type="text" id="dateTo" class="form-input small x-small" name="dateTo"> <input type="text" id="dateTo" class="form-input small x-small" name="dateTo">
<div class="date-picker" id="eDate"> <div class="date-picker" id="eDate">
<img class="dateimg" src="/imagse/date.png" alt="" /> <img class="dateimg" src="./images/date.png" alt="" />
<!-- <input class="date-input dateTo" type="date" /> --> <!-- <input class="date-input dateTo" type="date" /> -->
</div> </div>
<div class="radio-group"> <div class="radio-group">
...@@ -320,12 +338,12 @@ ...@@ -320,12 +338,12 @@
</div> </div>
<!-- 按钮组 --> <!-- 按钮组 -->
<div class="btn-group"> <div style="height: 90px;"></div>
<button onclick="onAccount(1)">确定</button>
<button onclick="onAccount(2)">返回</button> <button class="buttonx xx" onclick="onAccount(1)" type="submit">确定</button>
<button onclick="onAccount(3)" type="submit">异步下载查询</button>
</div>
</form> </form>
<button class="buttonx yy" onclick="onAccount(2)">返回</button>
<button onclick="onAccount(3)" type="submit" class="buttonx zz" style="width: auto;padding: 0 20px;">异步下载查询</button>
</div> </div>
<!-- 温馨提示 --> <!-- 温馨提示 -->
...@@ -399,7 +417,7 @@ ...@@ -399,7 +417,7 @@
window.history.back(); window.history.back();
} }
if (number == 3) { if (number == 3) {
window.location.href = './async_detail_list.html'
} }
} }
......
...@@ -171,6 +171,7 @@ ...@@ -171,6 +171,7 @@
padding-left: 120px; padding-left: 120px;
} }
.buttonx,
.btn-group button { .btn-group button {
background-color: #1f93d5; background-color: #1f93d5;
color: #fff; color: #fff;
...@@ -185,6 +186,24 @@ ...@@ -185,6 +186,24 @@
justify-content: center; justify-content: center;
} }
.buttonx {
position: absolute;
}
.xx {
left: 120px;
bottom: 34px;
}
.yy {
left: 264px;
bottom: -57px;
}
.zz {
left: 390px;
bottom: -57px;
}
/* 温馨提示 */ /* 温馨提示 */
.tips-section { .tips-section {
background-color: #f0f7ff; background-color: #f0f7ff;
...@@ -231,6 +250,10 @@ ...@@ -231,6 +250,10 @@
width: 27px; width: 27px;
height: 27px; height: 27px;
} }
#myForm {
position: relative;
}
</style> </style>
</head> </head>
...@@ -316,7 +339,7 @@ ...@@ -316,7 +339,7 @@
<div class="form-row mt-20"> <div class="form-row mt-20">
<label class="form-label">对方户名:</label> <label class="form-label">对方户名:</label>
<input type="text" class="form-input wide" name="counterName"> <input type="text" class="form-input wide" name="counterName">
<span class="form-tip">录入生僻字</span> <!-- <span class="form-tip">录入生僻字</span> -->
</div> </div>
<div class="form-row"> <div class="form-row">
...@@ -327,7 +350,7 @@ ...@@ -327,7 +350,7 @@
<div class="form-row"> <div class="form-row">
<label class="form-label">交易备注:</label> <label class="form-label">交易备注:</label>
<input type="text" class="form-input wide" name="remark"> <input type="text" class="form-input wide" name="remark">
<span class="form-tip">录入生僻字</span> <!-- <span class="form-tip">录入生僻字</span> -->
</div> </div>
<div class="form-row"> <div class="form-row">
<label class="form-label">交易摘要:</label> <label class="form-label">交易摘要:</label>
...@@ -347,13 +370,19 @@ ...@@ -347,13 +370,19 @@
<span class="form-question"></span> <span class="form-question"></span>
</div> </div>
<div style="height: 90px;"></div>
<!-- 按钮组 --> <!-- 按钮组 -->
<div class="btn-group"> <button class="buttonx xx" onclick="onAccount(1)" type="submit">确定</button>
<button onclick="onAccount(1)" type="submit">确定</button>
<button onclick="onAccount(2)">返回</button>
<button onclick="onAccount(3)">查询长期</button>
</div>
</form> </form>
<button class="buttonx yy" onclick="onAccount(2)">返回</button>
<button class="buttonx zz" onclick="onAccount(3)">查询长期</button>
<!-- <div class="btn-group" style="margin-top: -65px;">
<button onclick="onAccount(1)" type="submit">确定</button>
</div> -->
</div> </div>
<!-- 温馨提示 --> <!-- 温馨提示 -->
...@@ -385,13 +414,21 @@ ...@@ -385,13 +414,21 @@
} }
}); });
// 快速日期 // 快速日期
document.querySelectorAll('input[name=quickDate]').forEach(el => { document.querySelectorAll('input[name=quickDate]').forEach(el => {
el.addEventListener('change', () => { el.addEventListener('change', () => {
const days = parseInt(el.value, 10); const days = parseInt(el.value, 10);
const today = new Date('2026-04-29');
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 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'); const fmt = d => d.getFullYear() + String(d.getMonth() + 1).padStart(2, '0') + String(d.getDate()).padStart(2, '0');
document.getElementById('dateFrom').value = fmt(from); document.getElementById('dateFrom').value = fmt(from);
...@@ -402,10 +439,8 @@ ...@@ -402,10 +439,8 @@
const form = document.getElementById('myForm'); const form = document.getElementById('myForm');
function onAccount(number) { function onAccount(number) {
if( number == 1) { if (number == 1) {
form.addEventListener('submit', async (e) => { form.addEventListener('submit', async (e) => {
e.preventDefault(); // 阻止页面刷新 e.preventDefault(); // 阻止页面刷新
...@@ -422,8 +457,7 @@ ...@@ -422,8 +457,7 @@
} }
if (number == 3) { if (number == 3) {
console.log(33333) console.log(33333)
window.location.href = './account_detail-long.html' window.location.href = './account_detail-long.html'
} }
} }
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
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