This commit is contained in:
2026-02-12 23:40:26 +08:00
parent 55e335ea06
commit d8506c383c
4 changed files with 68 additions and 49 deletions

View File

@@ -60,7 +60,7 @@ const ActivityDetail = () => {
sessionStorage.setItem(hasRefreshedKey, 'true'); sessionStorage.setItem(hasRefreshedKey, 'true');
window.location.reload(); window.location.reload();
} }
}, 2000); }, 5000);
return () => clearTimeout(timer); return () => clearTimeout(timer);
}, [id, refetch]); }, [id, refetch]);

View File

@@ -0,0 +1,3 @@
export default definePageConfig({
navigationBarTitleText: '订单详情'
})

View File

@@ -1,65 +1,77 @@
.page-container { .page-container {
min-height: 100vh; min-height: 100vh;
background-color: #f7f8fa; background-color: var(--bg-dark);
padding: 15px; padding: 15px;
} }
.card { .card {
background: #fff; background: var(--card-bg);
border-radius: 8px; border: 1px solid var(--glass-border);
padding: 15px; border-radius: 12px;
margin-bottom: 15px; padding: 20px;
margin-bottom: 20px;
.header { .header {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
border-bottom: 1px solid #f5f5f5; border-bottom: 1px solid var(--glass-border);
padding-bottom: 10px; padding-bottom: 15px;
margin-bottom: 10px; margin-bottom: 15px;
font-size: 12px; font-size: 14px;
color: #999; color: var(--text-secondary);
.status { .status {
&.pending { color: #faad14; } &.pending { color: var(--primary-cyan); }
&.paid { color: #52c41a; } &.paid { color: var(--primary-green); }
} }
} }
.body { .body {
display: flex; display: flex;
align-items: center;
.img { .img {
width: 80px; width: 100px;
height: 80px; height: 100px;
border-radius: 4px; border-radius: 8px;
background: #eee; background: #333;
margin-right: 10px; margin-right: 15px;
} }
.info { .info {
flex: 1; flex: 1;
.name { font-size: 14px; color: #333; display: block; margin-bottom: 5px; } .name {
.qty { font-size: 12px; color: #999; } font-size: 18px;
color: var(--text-main);
display: block;
margin-bottom: 8px;
font-weight: 500;
}
.qty {
font-size: 14px;
color: var(--text-secondary);
}
} }
.price { .price {
font-size: 16px; font-size: 20px;
font-weight: bold; font-weight: bold;
color: #333; color: var(--text-main);
} }
} }
.footer { .footer {
display: flex; display: flex;
justify-content: flex-end; justify-content: flex-end;
margin-top: 10px; margin-top: 15px;
.btn-pay { .btn-pay {
border: 1px solid #00b96b; border: 1px solid var(--primary-green);
color: #00b96b; color: var(--primary-green);
padding: 4px 12px; padding: 6px 18px;
border-radius: 14px; border-radius: 20px;
font-size: 12px; font-size: 14px;
background: rgba(0, 185, 107, 0.1);
} }
} }
} }
@@ -67,6 +79,6 @@
.empty { .empty {
text-align: center; text-align: center;
padding-top: 100px; padding-top: 100px;
color: #999; color: var(--text-secondary);
font-size: 14px; font-size: 16px;
} }

View File

@@ -1,58 +1,62 @@
.page-container { .page-container {
min-height: 100vh; min-height: 100vh;
background-color: #f7f8fa; background-color: var(--bg-dark);
padding: 20px; padding: 20px;
} }
.status-header { .status-header {
text-align: center; text-align: center;
padding: 40px 0; padding: 50px 0;
.amount { .amount {
font-size: 40px; font-size: 48px;
font-weight: bold; font-weight: bold;
color: #333; color: var(--primary-green);
display: block; display: block;
text-shadow: 0 0 20px rgba(0, 185, 107, 0.3);
} }
.desc { .desc {
font-size: 14px; font-size: 16px;
color: #999; color: var(--text-secondary);
margin-top: 10px; margin-top: 15px;
display: block; display: block;
} }
} }
.info-card { .info-card {
background: #fff; background: var(--card-bg);
border-radius: 12px; border: 1px solid var(--glass-border);
padding: 20px; border-radius: 16px;
margin-bottom: 30px; padding: 25px;
margin-bottom: 40px;
.row { .row {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
margin-bottom: 15px; margin-bottom: 20px;
&:last-child { margin-bottom: 0; } &:last-child { margin-bottom: 0; }
.label { color: #999; font-size: 14px; } .label { color: var(--text-secondary); font-size: 16px; }
.value { color: #333; font-size: 14px; font-weight: 500; } .value { color: var(--text-main); font-size: 16px; font-weight: 500; }
} }
} }
.btn-area { .btn-area {
.btn-pay { .btn-pay {
background: #07c160; background: var(--primary-green);
color: #fff; color: #fff;
border: none; border: none;
border-radius: 8px; border-radius: 12px;
font-size: 16px; font-size: 18px;
height: 48px; height: 56px;
line-height: 48px; line-height: 56px;
box-shadow: 0 4px 20px rgba(0, 185, 107, 0.4);
&:active { &:active {
opacity: 0.8; opacity: 0.8;
transform: scale(0.98);
} }
} }
} }