商品以及商品详情

This commit is contained in:
liu
2026-07-06 11:32:58 +08:00
parent 97e7a6083c
commit c25cf0e8b3
32 changed files with 3585 additions and 45 deletions
+98 -13
View File
@@ -80,30 +80,115 @@
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
/* ========== 标签区域 ========== */
.tabs-section {
/* ========== 统一板块 ========== */
.main-tabs-section {
margin: 0 24px 20px;
background: #fff;
border-radius: 16px;
overflow: hidden;
margin: 0 24px 20px;
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.van-tabs__wrap {
border-radius: 16px 16px 0 0;
/* 校园商城内容 */
.mall-content {
padding: 16px 20px 24px;
}
/* 分类标签 */
.category-scroll {
margin-bottom: 20px;
}
.category-tabs {
display: flex;
gap: 12px;
white-space: nowrap;
.category-tab {
flex-shrink: 0;
padding: 10px 24px;
border-radius: 32px;
background: #f7f8fa;
font-size: 26px;
color: #646566;
transition: all 0.2s;
&.active {
background: #1989fa;
color: #fff;
font-weight: 500;
}
}
}
/* ========== 文章列表 ========== */
.article-list {
padding: 0 24px;
/* 商品双列网格 */
.product-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 16px;
margin-bottom: 20px;
.empty-grid {
grid-column: 1 / -1;
text-align: center;
padding: 40px 0;
font-size: 28px;
color: #c8c9cc;
}
}
/* 商家入驻入口 */
.merchant-join-card {
display: flex;
align-items: center;
justify-content: space-between;
padding: 20px 24px;
background: linear-gradient(135deg, #f0f7ff 0%, #e8f4ff 100%);
border: 1px dashed #1989fa;
border-radius: 12px;
.join-content {
display: flex;
align-items: center;
gap: 16px;
.join-icon { font-size: 48px; }
.join-text-wrap {
.join-title {
display: block;
font-size: 30px;
font-weight: 500;
color: #1a1a1a;
margin-bottom: 4px;
}
.join-desc {
font-size: 24px;
color: #969799;
}
}
}
.join-arrow {
font-size: 36px;
color: #1989fa;
font-weight: 300;
}
}
/* 文章列表内容 */
.article-content {
padding: 0 20px 16px;
.article-item {
background: #fff;
border-radius: 16px;
padding: 24px;
margin-bottom: 16px;
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
padding: 24px 0;
transition: transform 0.2s;
& + .article-item {
border-top: 1px solid #f2f3f5;
}
&:active {
transform: scale(0.98);
}