|
@@ -1,10 +1,10 @@
|
|
-// 整体背景渐变,可以根据需要调整或移除
|
|
|
|
|
|
+/* 整体背景渐变,可以根据需要调整或移除 */
|
|
.content-background {
|
|
.content-background {
|
|
background: linear-gradient(to bottom, #e0f7fa, #ffffff);
|
|
background: linear-gradient(to bottom, #e0f7fa, #ffffff);
|
|
--padding-bottom: 0;
|
|
--padding-bottom: 0;
|
|
}
|
|
}
|
|
|
|
|
|
-// 标题栏相关样式
|
|
|
|
|
|
+/* 标题栏相关样式 */
|
|
.custom-toolbar {
|
|
.custom-toolbar {
|
|
--background: transparent;
|
|
--background: transparent;
|
|
display: flex;
|
|
display: flex;
|
|
@@ -23,7 +23,7 @@
|
|
font-family: "微软雅黑", sans-serif;
|
|
font-family: "微软雅黑", sans-serif;
|
|
}
|
|
}
|
|
|
|
|
|
-// 搜索栏区域样式
|
|
|
|
|
|
+/* 搜索栏区域样式 */
|
|
.search-container {
|
|
.search-container {
|
|
padding: 0 16px;
|
|
padding: 0 16px;
|
|
margin-top: 8px;
|
|
margin-top: 8px;
|
|
@@ -35,7 +35,16 @@
|
|
box-shadow: 0 2px 6px rgba(0,0,0,0.1);
|
|
box-shadow: 0 2px 6px rgba(0,0,0,0.1);
|
|
}
|
|
}
|
|
|
|
|
|
-// 分类区域(可横向滚动)
|
|
|
|
|
|
+/* 分类区域(可横向滚动) */
|
|
|
|
+.category-scroll {
|
|
|
|
+ overflow-x: auto; /* 如果需要横向滚动 */
|
|
|
|
+ width: 100%;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.category-scroll-inner {
|
|
|
|
+ width: 100%;
|
|
|
|
+}
|
|
|
|
+
|
|
.category-row {
|
|
.category-row {
|
|
margin: 0;
|
|
margin: 0;
|
|
}
|
|
}
|
|
@@ -46,6 +55,8 @@
|
|
align-items: center;
|
|
align-items: center;
|
|
text-align: center;
|
|
text-align: center;
|
|
margin-bottom: 16px;
|
|
margin-bottom: 16px;
|
|
|
|
+ max-width: 25%; /* 确保每个列最大宽度为25%,即四个一行 */
|
|
|
|
+ flex: 0 0 25%; /* 防止列自动扩展 */
|
|
}
|
|
}
|
|
|
|
|
|
.category-item {
|
|
.category-item {
|
|
@@ -55,11 +66,17 @@
|
|
justify-content: center;
|
|
justify-content: center;
|
|
text-align: center;
|
|
text-align: center;
|
|
cursor: pointer; /* 可选:让鼠标移上去有点击手势 */
|
|
cursor: pointer; /* 可选:让鼠标移上去有点击手势 */
|
|
|
|
+ width: 100%; /* 占满整个列 */
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+.category-image-wrapper {
|
|
|
|
+ width: 80px; /* 设定一个固定的宽度和高度 */
|
|
|
|
+ height: 80px;
|
|
}
|
|
}
|
|
|
|
|
|
.category-image {
|
|
.category-image {
|
|
- max-width: 90%;
|
|
|
|
- max-height: 90%;
|
|
|
|
|
|
+ width: 100%;
|
|
|
|
+ height: 100%;
|
|
object-fit: contain;
|
|
object-fit: contain;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -72,7 +89,7 @@
|
|
max-width: 100%;
|
|
max-width: 100%;
|
|
}
|
|
}
|
|
|
|
|
|
-// 商品列表区域样式
|
|
|
|
|
|
+/* 商品列表区域样式 */
|
|
.product-container {
|
|
.product-container {
|
|
padding: 0 16px;
|
|
padding: 0 16px;
|
|
margin-top: 16px;
|
|
margin-top: 16px;
|
|
@@ -116,7 +133,7 @@
|
|
.product-image {
|
|
.product-image {
|
|
width: 100%;
|
|
width: 100%;
|
|
height: 100%;
|
|
height: 100%;
|
|
- // object-fit: cover;
|
|
|
|
|
|
+ /* object-fit: cover; */
|
|
}
|
|
}
|
|
|
|
|
|
.product-info {
|
|
.product-info {
|
|
@@ -141,7 +158,7 @@
|
|
font-weight: bold;
|
|
font-weight: bold;
|
|
}
|
|
}
|
|
|
|
|
|
-// 底部弹窗(modal)样式
|
|
|
|
|
|
+/* 底部弹窗(modal)样式 */
|
|
.bottom-modal {
|
|
.bottom-modal {
|
|
--height: 75vh;
|
|
--height: 75vh;
|
|
--width: 100%;
|
|
--width: 100%;
|