合并 main 分支并融合订单列表最小化与 SQL 治理

- Auth/权限中间件取 main 演进版(错误细分、token 来源),保留 dev 的用户 cookie 与登出撤销语义
- 后台订单列表:融合 main 的首页免 COUNT 优化与关键词索引路由,保留 dev 的最小化 AdminOrderListItemDTO(结账明细仍由详情接口返回,同步调整对应集成测试)
- 保留 dev 的 token_version 冻结/解冻递增与 main 的状态变化判断及通知
- 前端:保留 dev 登出接口与 main 的 fetchMe silent 参数、SSE 登录跳转;后台订单表按 dev 最小化 DTO 移除号主到手列
This commit is contained in:
yml2213
2026-09-05 11:43:13 +08:00
294 changed files with 30171 additions and 13439 deletions
@@ -663,489 +663,4 @@ function statusType(status: string): 'primary' | 'success' | 'danger' | 'warning
</main>
</template>
<style scoped>
.mobile-withdrawal {
--van-primary-color: #ff6a00;
--van-button-primary-background: #ff6a00;
--van-button-primary-border-color: #ff6a00;
--van-radio-checked-icon-color: #ff6a00;
--van-checkbox-checked-icon-color: #ff6a00;
--van-tag-warning-color: #ff6a00;
min-height: 100vh;
padding: 12px 14px 28px;
background: #fff7ed;
}
.page-header {
display: grid;
grid-template-columns: 40px 1fr 40px;
align-items: center;
height: 44px;
margin-bottom: 12px;
}
.page-header h1 {
margin: 0;
text-align: center;
font-size: 17px;
color: #101828;
}
.back-btn,
.refresh-btn {
display: inline-flex;
align-items: center;
justify-content: center;
width: 36px;
height: 36px;
border: 0;
border-radius: 18px;
background: #fff;
color: #1f2937;
}
.refresh-btn {
justify-self: end;
}
.balance-panel {
display: grid;
gap: 6px;
padding: 18px;
border-radius: 8px;
background: linear-gradient(135deg, #ff8a1f 0%, #ff5a00 100%);
color: #fff;
box-shadow: 0 14px 28px rgba(255, 106, 0, 0.22);
}
.balance-panel span,
.balance-panel small {
color: rgba(255, 255, 255, 0.72);
font-size: 12px;
}
.balance-panel strong {
font-size: 31px;
line-height: 1.1;
}
.withdraw-card,
.records-card {
margin-top: 12px;
padding: 14px;
border-radius: 8px;
background: #fff;
}
.section-title {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
margin-bottom: 12px;
}
.section-title h2 {
margin: 0;
font-size: 16px;
color: #101828;
}
.section-title button {
display: inline-flex;
align-items: center;
gap: 4px;
border: 0;
background: transparent;
color: #ff6a00;
font-size: 13px;
}
.section-title button:disabled {
color: #98a2b3;
}
.section-title span {
color: #98a2b3;
font-size: 12px;
}
.center-loading {
display: flex;
justify-content: center;
padding: 28px 0;
}
.empty-state {
display: grid;
justify-items: center;
gap: 10px;
padding: 24px 0;
color: #98a2b3;
}
.empty-state p {
margin: 0;
}
.account-list {
display: grid;
gap: 8px;
margin-bottom: 12px;
}
.account-option {
display: grid;
gap: 8px;
padding: 10px;
border: 1px solid #eaecf0;
border-radius: 8px;
background: #fff;
}
.account-option.active {
border-color: #ff6a00;
background: #fff7ed;
}
.account-select {
display: grid;
grid-template-columns: 34px 1fr auto 20px;
align-items: center;
gap: 8px;
width: 100%;
min-height: 44px;
padding: 0;
border: 0;
background: transparent;
text-align: left;
}
.account-icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 34px;
height: 34px;
border-radius: 8px;
background: #fff3e8;
color: #ff6a00;
}
.account-main {
display: grid;
gap: 3px;
min-width: 0;
}
.account-main strong {
overflow: hidden;
color: #101828;
font-size: 14px;
text-overflow: ellipsis;
white-space: nowrap;
}
.account-main small {
overflow: hidden;
color: #667085;
font-size: 12px;
text-overflow: ellipsis;
white-space: nowrap;
}
.account-actions {
display: flex;
justify-content: flex-end;
gap: 8px;
padding-top: 8px;
border-top: 1px solid #f2f4f7;
}
.account-actions button {
border: 0;
background: transparent;
color: #ff6a00;
font-size: 12px;
}
.account-actions button.danger {
color: #b42318;
}
.account-actions button:disabled {
color: #98a2b3;
}
:deep(.van-cell) {
padding-right: 0;
padding-left: 0;
}
.amount-meta,
.amount-preview {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
margin: 10px 0;
color: #667085;
font-size: 12px;
}
.amount-meta button {
border: 0;
background: transparent;
color: #ff6a00;
}
.amount-preview {
padding: 10px 12px;
border-radius: 8px;
background: #f8fafc;
}
.amount-preview strong {
color: #ff6a00;
font-size: 18px;
}
.submit-btn {
margin-top: 14px;
}
.record-list {
display: grid;
gap: 10px;
}
.record-item {
padding: 12px;
border: 1px solid #eaecf0;
border-radius: 8px;
background: #fff;
}
.record-top,
.record-meta {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 10px;
}
.record-top strong {
display: block;
color: #101828;
font-size: 18px;
}
.record-top small,
.record-meta {
color: #98a2b3;
font-size: 12px;
}
.record-meta {
margin-top: 8px;
}
.record-remark {
margin: 10px 0 0;
color: #b42318;
font-size: 12px;
}
.cancel-btn {
margin-top: 10px;
padding: 6px 10px;
border: 1px solid #fecdca;
border-radius: 999px;
background: #fff;
color: #b42318;
font-size: 12px;
}
.account-popup {
max-height: 86vh;
}
.popup-body {
padding: 20px 16px 24px;
}
.popup-body h2 {
margin: 0 0 16px;
font-size: 17px;
color: #101828;
}
.delete-account-btn {
margin-top: 10px;
}
.type-tabs {
gap: 8px 12px;
flex-wrap: wrap;
margin-bottom: 6px;
}
.type-tabs :deep(.van-radio) {
margin-right: 0;
}
.type-tabs :deep(.van-radio__label) {
color: #1f2937;
font-size: 15px;
}
.type-label {
display: inline-flex;
align-items: center;
gap: 5px;
}
.recommend-badge {
display: inline-flex;
align-items: center;
height: 17px;
padding: 0 6px;
border-radius: 999px;
background: #fff7ed;
color: #c2410c;
font-size: 11px;
font-weight: 700;
line-height: 1;
}
.type-tip {
margin: 0 0 12px;
color: #8a5a13;
font-size: 12px;
line-height: 1.5;
}
.account-tip {
margin: 12px 0;
padding: 10px 12px;
border-radius: 8px;
background: #fffbeb;
color: #92400e;
font-size: 12px;
line-height: 1.6;
}
.receive-qr-tip {
display: grid;
grid-template-columns: minmax(0, 1fr) 108px;
gap: 10px;
align-items: center;
margin: 12px 0;
padding: 10px;
border: 1px solid #fed7aa;
border-radius: 10px;
background: #fff7ed;
color: #92400e;
}
.receive-qr-tip strong {
display: block;
margin-bottom: 5px;
color: #c2410c;
font-size: 13px;
}
.receive-qr-tip p {
margin: 0;
font-size: 12px;
line-height: 1.55;
}
.receive-qr-tip img {
display: block;
width: 108px;
border: 1px solid #fde6c8;
border-radius: 8px;
background: #ffffff;
}
.certificate-section {
margin: 14px 0;
}
.certificate-title {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 10px;
color: #1f2937;
font-size: 14px;
font-weight: 600;
}
.certificate-title small {
color: #98a2b3;
font-size: 12px;
font-weight: 400;
}
.certificate-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 10px;
}
.certificate-item,
.certificate-upload {
position: relative;
overflow: hidden;
aspect-ratio: 1;
border-radius: 8px;
background: #fff7ed;
}
.certificate-item {
border: 1px solid #fed7aa;
}
.certificate-item img {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
}
.certificate-remove {
position: absolute;
top: 6px;
right: 6px;
display: inline-flex;
align-items: center;
justify-content: center;
width: 22px;
height: 22px;
border: 0;
border-radius: 50%;
background: rgba(15, 23, 42, 0.72);
color: #fff;
}
.certificate-upload {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 6px;
border: 1px dashed #ff9f43;
color: #ff6a00;
font-size: 12px;
}
.certificate-upload input {
display: none;
}
.certificate-upload span {
line-height: 1;
}
</style>
<style scoped src="./MobileWithdrawalView.css"></style>