细节调整

This commit is contained in:
dzl
2025-09-28 11:53:37 +08:00
parent afaa76be91
commit a0d8823b02
3 changed files with 66 additions and 26 deletions

View File

@@ -2,7 +2,7 @@
<!-- 头部 -->
<div class="header">
<span @click="$router.go(-1)"><返回</span>
<el-icon @click="$router.push(`/product/${firstProduct.id}`)"><ShoppingCart /></el-icon>
<el-icon @click="$router.push(`/product/${firstProduct.id}`)" style="color: #ffffff;"><ShoppingCart /></el-icon>
</div>
<div class="products-container">
@@ -260,14 +260,7 @@ onMounted(async () => {
.header {
/* 基础布局 */
padding: 16px 20px;
background-color: #ffffff;
border-bottom: 1px solid #f0f0f0;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
/* 固定在顶部 */
position: sticky;
top: 0;
z-index: 100;
background: #72c9ffae;
/* 内容居中 */
display: flex;
@@ -304,7 +297,7 @@ onMounted(async () => {
.header span {
/* 返回按钮样式 */
color: #333333;
color: #ffffff;
font-size: 16px;
font-weight: 500;
cursor: pointer;
@@ -312,6 +305,8 @@ onMounted(async () => {
border-radius: 6px;
transition: all 0.2s ease;
margin-left: -15px;
/* 添加返回图标占位 */
display: inline-flex;
align-items: center;
@@ -334,7 +329,7 @@ onMounted(async () => {
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
transition: all 0.3s ease;
overflow: hidden;
width: 374px;
width: 100%;
min-height: 526px;
display: flex;
flex-direction: column; /* 改为垂直布局 */