fix: 修复用户端页面移动端响应式布局问题

- ProductDetail.vue: 添加移动端布局适配
- OrderDetail.vue: 添加移动端布局适配
- Orders.vue: 添加移动端布局适配

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-05-30 17:07:20 +08:00
parent 38b03878e8
commit 1d8c2d92ba
3 changed files with 107 additions and 1 deletions
+31 -1
View File
@@ -183,10 +183,40 @@ async function applyRefund() {
padding: 16px;
background: rgba(245, 158, 11, 0.1);
border-radius: 8px;
p {
color: rgba(255, 255, 255, 0.7);
margin: 8px 0 0;
}
}
@media (max-width: 768px) {
.detail-card {
padding: 16px;
}
.status-section {
flex-direction: column;
align-items: flex-start;
gap: 8px;
}
.section-title {
font-size: 15px;
}
:deep(.el-descriptions) {
.el-descriptions__label {
width: 80px !important;
}
}
:deep(.el-table) {
font-size: 13px;
.el-table__cell {
padding: 8px 4px;
}
}
}
</style>
+24
View File
@@ -97,4 +97,28 @@ onMounted(fetchOrders)
<style scoped lang="scss">
.orders-page { padding: 0; }
.table-card { background: #2d2d44; border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 12px; padding: 20px; }
@media (max-width: 768px) {
.table-card {
padding: 12px;
border-radius: 8px;
}
:deep(.el-table) {
font-size: 12px;
.el-table__cell {
padding: 8px 4px;
}
.el-table__header th {
padding: 8px 4px;
}
}
:deep(.el-button) {
padding: 4px 8px;
font-size: 12px;
}
}
</style>
+52
View File
@@ -125,4 +125,56 @@ h1 { font-size: 28px; color: #fff; margin-bottom: 16px; }
.meta { display: flex; gap: 8px; margin-bottom: 16px; }
.custom-fields { margin-bottom: 24px; h4 { color: #fff; margin-bottom: 8px; } .field-item { color: rgba(255, 255, 255, 0.7); margin-bottom: 4px; .field-name { color: rgba(255, 255, 255, 0.5); margin-right: 8px; } } }
.purchase-section { display: flex; gap: 12px; align-items: center; margin-top: 24px; }
@media (max-width: 768px) {
.detail-card {
padding: 16px;
}
.el-row {
flex-direction: column;
}
.el-col {
max-width: 100%;
flex: 0 0 100%;
}
.product-images {
height: 300px;
}
.carousel-image, .single-image {
height: 300px;
}
.image-placeholder {
height: 300px;
}
h1 {
font-size: 22px;
margin-top: 16px;
}
.price {
font-size: 26px;
}
.description {
font-size: 14px;
}
.purchase-section {
flex-wrap: wrap;
:deep(.el-input-number) {
width: 100%;
}
:deep(.el-button) {
flex: 1;
}
}
}
</style>