diff --git a/src/pages/events/list/index.module.less b/src/pages/events/list/index.module.less
index 9974dc5..a5eb239 100644
--- a/src/pages/events/list/index.module.less
+++ b/src/pages/events/list/index.module.less
@@ -1,18 +1,21 @@
-/**
- * 表格 body 容器:占满 flex 剩余空间,并确保 antd 嵌套 div 逐层传递 height: 100%,
- * 使得 Table scroll.y = 'calc(100% - 55px)' 中的 100% 能正确解析。
- */
-.tableBody {
+.eventListMain {
flex: 1;
min-height: 0;
- overflow: hidden;
+ display: flex;
+ flex-direction: column;
- :global {
- .ant-spin-nested-loading,
- .ant-spin-container,
- .ant-table,
- .ant-table-container {
- height: 100%;
+ .tableBody {
+ flex: 1;
+ min-height: 0;
+ overflow: hidden;
+
+ :global {
+ .ant-spin-nested-loading,
+ .ant-spin-container,
+ .ant-table,
+ .ant-table-container {
+ height: 100%;
+ }
}
}
}
diff --git a/src/pages/events/list/index.tsx b/src/pages/events/list/index.tsx
index 7afab43..4142944 100644
--- a/src/pages/events/list/index.tsx
+++ b/src/pages/events/list/index.tsx
@@ -26,7 +26,7 @@ import EventRegulationModal from './components/EventRegulationModal';
import EventDetailModal from './components/EventDetailModal';
import EventAuditModal from './components/EventAuditModal';
import styles from './index.module.less';
-import pageStyles from '@/components/page/pageLayout.module.less';
+import pageStyles from '@/assets/styles/pageLayout.module.less';
const { RangePicker } = DatePicker;
@@ -309,37 +309,39 @@ export default defineComponent({
{/* ===== 表格区 ===== */}
-
-
- {{
- bodyCell: (args: any) =>
- renderBodyCell({
- ...args,
- onView: handleView,
- onAudit: handleAudit,
- onToggleShelf: handleToggleShelf,
- }),
- }}
-
-
+
+
+
+ {{
+ bodyCell: (args: any) =>
+ renderBodyCell({
+ ...args,
+ onView: handleView,
+ onAudit: handleAudit,
+ onToggleShelf: handleToggleShelf,
+ }),
+ }}
+
+
- {/* 独立分页,右下方 */}
-
diff --git a/src/pages/events/orders/components/OrderDetailModal.module.less b/src/pages/events/orders/components/OrderDetailModal.module.less
index 02e1d7f..0746a27 100644
--- a/src/pages/events/orders/components/OrderDetailModal.module.less
+++ b/src/pages/events/orders/components/OrderDetailModal.module.less
@@ -1,194 +1,186 @@
-// ===== 自定义标题栏 =====
-.modalHeader {
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 0 0 16px;
- margin-bottom: 16px;
- border-bottom: 1px solid #f0f0f0;
-}
+.orderDetailModalMain {
+ .modalHeader {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ padding: 0 0 16px;
+ margin-bottom: 16px;
+ border-bottom: 1px solid #f0f0f0;
+ }
-.modalTitle {
- font-size: 16px;
- font-weight: 600;
- color: rgba(0, 0, 0, 0.85);
-}
-
-.closeBtn {
- width: 28px;
- height: 28px;
- border: none;
- background: transparent;
- font-size: 22px;
- line-height: 1;
- color: rgba(0, 0, 0, 0.45);
- cursor: pointer;
- border-radius: 4px;
- transition: all 0.2s;
-
- &:hover {
- background: rgba(0, 0, 0, 0.04);
+ .modalTitle {
+ font-size: 16px;
+ font-weight: 600;
color: rgba(0, 0, 0, 0.85);
}
-}
-// ===== 内容区 =====
-.modalBody {
- padding-top: 0;
-}
-
-// ===== 订单信息 grid =====
-.infoGrid {
- display: grid;
- grid-template-columns: repeat(3, 1fr);
- row-gap: 12px;
- column-gap: 24px;
- font-size: 13px;
- margin-bottom: 24px;
- padding-bottom: 16px;
- border-bottom: 1px solid #f0f0f0;
-}
-
-.infoItem {
- display: flex;
- align-items: baseline;
- min-width: 0;
-}
-
-.infoLabel {
- color: rgba(0, 0, 0, 0.65);
- flex-shrink: 0;
-}
-
-// ===== 通用 section =====
-.section {
- margin-bottom: 24px;
-}
-
-.section:last-child {
- margin-bottom: 0;
-}
-
-.sectionTitle {
- font-size: 14px;
- font-weight: 600;
- color: rgba(0, 0, 0, 0.85);
- margin-bottom: 12px;
- padding-left: 8px;
- border-left: 3px solid #1677ff;
-}
-
-// ===== 退款记录 =====
-.refundHeader {
- margin-bottom: 12px;
-}
-
-.refundSummary {
- display: flex;
- gap: 32px;
- font-size: 13px;
- color: rgba(0, 0, 0, 0.85);
- margin-bottom: 12px;
-}
-
-/** 固定高度 + 滚动 */
-.refundList {
- max-height: 320px;
- overflow-y: auto;
- padding-right: 4px;
-
- // 自定义滚动条样式
- &::-webkit-scrollbar {
- width: 6px;
- }
- &::-webkit-scrollbar-thumb {
- background: #d9d9d9;
- border-radius: 3px;
- }
- &::-webkit-scrollbar-track {
+ .closeBtn {
+ width: 28px;
+ height: 28px;
+ border: none;
background: transparent;
+ font-size: 22px;
+ line-height: 1;
+ color: rgba(0, 0, 0, 0.45);
+ cursor: pointer;
+ border-radius: 4px;
+ transition: all 0.2s;
+
+ &:hover {
+ background: rgba(0, 0, 0, 0.04);
+ color: rgba(0, 0, 0, 0.85);
+ }
+ }
+
+ .modalBody {
+ padding-top: 0;
+ }
+
+ .infoGrid {
+ display: grid;
+ grid-template-columns: repeat(3, 1fr);
+ row-gap: 12px;
+ column-gap: 24px;
+ font-size: 13px;
+ margin-bottom: 24px;
+ padding-bottom: 16px;
+ border-bottom: 1px solid #f0f0f0;
+ }
+
+ .infoItem {
+ display: flex;
+ align-items: baseline;
+ min-width: 0;
+ }
+
+ .infoLabel {
+ color: rgba(0, 0, 0, 0.65);
+ flex-shrink: 0;
+ }
+
+ .section {
+ margin-bottom: 24px;
+
+ &:last-child {
+ margin-bottom: 0;
+ }
+ }
+
+ .sectionTitle {
+ font-size: 14px;
+ font-weight: 600;
+ color: rgba(0, 0, 0, 0.85);
+ margin-bottom: 12px;
+ padding-left: 8px;
+ border-left: 3px solid #1677ff;
+ }
+
+ .refundHeader {
+ margin-bottom: 12px;
+ }
+
+ .refundSummary {
+ display: flex;
+ gap: 32px;
+ font-size: 13px;
+ color: rgba(0, 0, 0, 0.85);
+ margin-bottom: 12px;
+ }
+
+ .refundList {
+ max-height: 320px;
+ overflow-y: auto;
+ padding-right: 4px;
+
+ &::-webkit-scrollbar {
+ width: 6px;
+ }
+ &::-webkit-scrollbar-thumb {
+ background: #d9d9d9;
+ border-radius: 3px;
+ }
+ &::-webkit-scrollbar-track {
+ background: transparent;
+ }
+ }
+
+ .refundCard {
+ padding: 14px 16px;
+ margin-bottom: 12px;
+ background: #fafafa;
+ border: 1px solid #f0f0f0;
+ border-radius: 6px;
+
+ &:last-child {
+ margin-bottom: 0;
+ }
+ }
+
+ .refundCardHeader {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ margin-bottom: 12px;
+ padding-bottom: 10px;
+ border-bottom: 1px dashed #e0e0e0;
+ }
+
+ .refundIndex {
+ font-size: 13px;
+ font-weight: 500;
+ color: rgba(0, 0, 0, 0.85);
+ }
+
+ .refundCardBody {
+ display: grid;
+ grid-template-columns: 1fr 1fr;
+ gap: 6px 24px;
+ font-size: 13px;
+ color: rgba(0, 0, 0, 0.65);
+ line-height: 1.8;
+ }
+
+ .refundCol {
+ min-width: 0;
+ }
+
+ .refundAmount {
+ color: rgba(0, 0, 0, 0.85);
+ font-weight: 500;
+ }
+
+ .partialMark {
+ margin-left: 4px;
+ color: #fa8c16;
+ font-size: 12px;
+ }
+
+ .refundEmpty {
+ padding: 32px 0;
+ text-align: center;
+ font-size: 13px;
+ color: rgba(0, 0, 0, 0.45);
+ background: #fafafa;
+ border-radius: 6px;
+ border: 1px dashed #e0e0e0;
+ }
+
+ .refundPagination {
+ display: flex;
+ justify-content: flex-end;
+ margin-top: 12px;
+ }
+
+ .modalFooter {
+ display: flex;
+ justify-content: flex-end;
+ gap: 12px;
+ padding-top: 16px;
+ margin-top: 8px;
+ border-top: 1px solid #f0f0f0;
}
}
-.refundCard {
- padding: 14px 16px;
- margin-bottom: 12px;
- background: #fafafa;
- border: 1px solid #f0f0f0;
- border-radius: 6px;
-}
-
-.refundCard:last-child {
- margin-bottom: 0;
-}
-
-.refundCardHeader {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 12px;
- padding-bottom: 10px;
- border-bottom: 1px dashed #e0e0e0;
-}
-
-.refundIndex {
- font-size: 13px;
- font-weight: 500;
- color: rgba(0, 0, 0, 0.85);
-}
-
-.refundCardBody {
- display: grid;
- grid-template-columns: 1fr 1fr;
- gap: 6px 24px;
- font-size: 13px;
- color: rgba(0, 0, 0, 0.65);
- line-height: 1.8;
-}
-
-.refundCol {
- min-width: 0;
-}
-
-.refundAmount {
- color: rgba(0, 0, 0, 0.85);
- font-weight: 500;
-}
-
-.partialMark {
- margin-left: 4px;
- color: #fa8c16;
- font-size: 12px;
-}
-
-.refundEmpty {
- padding: 32px 0;
- text-align: center;
- font-size: 13px;
- color: rgba(0, 0, 0, 0.45);
- background: #fafafa;
- border-radius: 6px;
- border: 1px dashed #e0e0e0;
-}
-
-// 分页:右下角
-.refundPagination {
- display: flex;
- justify-content: flex-end;
- margin-top: 12px;
-}
-
-// ===== 底部按钮区 =====
-.modalFooter {
- display: flex;
- justify-content: flex-end;
- gap: 12px;
- padding-top: 16px;
- margin-top: 8px;
- border-top: 1px solid #f0f0f0;
-}
-
-// ===== Modal 外层包裹:去除 antd 默认内边距,让自定义标题贴合 =====
.orderModalWrap {
:global(.ant-modal-body) {
padding-top: 16px;
diff --git a/src/pages/events/orders/components/OrderDetailModal.tsx b/src/pages/events/orders/components/OrderDetailModal.tsx
index 40df2ae..426c0fe 100644
--- a/src/pages/events/orders/components/OrderDetailModal.tsx
+++ b/src/pages/events/orders/components/OrderDetailModal.tsx
@@ -128,142 +128,144 @@ export default defineComponent({
closable={false}
wrapClassName={styles.orderModalWrap}
>
- {/* ===== 自定义标题栏 ===== */}
-
-
-
- {/* ===== 订单信息 ===== */}
-
-
- 赛事名称:
- {props.record?.eventName}
-
-
- 订单编号:
- {props.record?.orderId}
-
-
- 订单时间:
- {props.record?.orderTime}
-
-
- 支付时间:
- {props.record?.payTime}
-
-
- 订单金额:
- {props.record?.totalAmount?.toFixed(2)}元
-
-
- 优惠金额:
- {(props.record?.discountAmount || 0).toFixed(2)}元
-
-
- 实付金额:
- {props.record?.paidAmount?.toFixed(2)}元
-
-
- 退款金额:
- {props.record?.refundAmount?.toFixed(2)}元
-
+
+ {/* ===== 自定义标题栏 ===== */}
+
- {/* ===== 选手信息 ===== */}
-
-
- {/* ===== 退款记录 ===== */}
-
-