fix: 修复购物车移动端布局排序和商品图片显示问题
- 移除订单摘要的order: -1,保持正常顺序 - 移动端商品图片改为横向布局,图片大小80x80px - 支付方式改为2列显示 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -923,24 +923,27 @@ onMounted(() => {
|
|||||||
.cart-container {
|
.cart-container {
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: 1fr;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cart-summary-panel {
|
.cart-summary-panel {
|
||||||
position: static;
|
position: static;
|
||||||
order: -1;
|
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 768px) {
|
@media (max-width: 768px) {
|
||||||
|
.cart-page {
|
||||||
|
padding-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
.cart-header {
|
.cart-header {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.cart-item {
|
.cart-item {
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
gap: 12px;
|
gap: 12px;
|
||||||
padding: 14px;
|
padding: 14px;
|
||||||
|
|
||||||
> .el-checkbox { width: 24px; order: 1; }
|
> .el-checkbox { width: 24px; order: 1; }
|
||||||
> .item-product { flex: 1; min-width: 0; order: 2; }
|
> .item-product { flex: 1; min-width: 0; order: 2; }
|
||||||
> .item-price { width: auto; order: 4; margin-left: 36px; }
|
> .item-price { width: auto; order: 4; margin-left: 36px; }
|
||||||
@@ -948,27 +951,46 @@ onMounted(() => {
|
|||||||
> .item-subtotal { width: auto; order: 3; margin-left: auto; }
|
> .item-subtotal { width: auto; order: 3; margin-left: auto; }
|
||||||
> .item-action { width: auto; order: 6; }
|
> .item-action { width: auto; order: 6; }
|
||||||
}
|
}
|
||||||
|
|
||||||
.item-product {
|
.item-product {
|
||||||
flex-direction: column;
|
gap: 12px;
|
||||||
gap: 8px;
|
|
||||||
|
|
||||||
.item-image {
|
.item-image {
|
||||||
width: 100%;
|
width: 80px;
|
||||||
height: 120px;
|
height: 80px;
|
||||||
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.payment-methods {
|
.item-info {
|
||||||
grid-template-columns: 1fr;
|
flex: 1;
|
||||||
|
min-width: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.payment-methods {
|
||||||
|
grid-template-columns: repeat(2, 1fr);
|
||||||
|
}
|
||||||
|
|
||||||
.cart-left {
|
.cart-left {
|
||||||
gap: 16px;
|
gap: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.checkout-section {
|
.checkout-section {
|
||||||
padding: 16px;
|
padding: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.cart-summary-panel {
|
||||||
|
padding: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.summary-title {
|
||||||
|
font-size: 16px;
|
||||||
|
margin-bottom: 16px;
|
||||||
|
padding-bottom: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.summary-total .total-amount {
|
||||||
|
font-size: 20px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user