feat(home): 更新首页布局添加品牌展示和联系模块

- 移除售电业务相关内容,调整为门窗定制安装业务
- 新增 TrustSection 品牌信任区组件,展示品质保障和专业团队
- 新增 CaseShowcase 案例展示区组件,支持横向滚动浏览案例
- 新增 ContactSection 联系方式区组件,提供客服热线和在线咨询服务
- 更新首页布局结构,在热销商品后按序排列新功能模块
- 修复图标导入错误,替换为 NutUI 图标库中存在的图标
- 更新样式文件适配新的页面布局和组件间距
- 修改公告栏内容为门窗业务相关介绍
- 调整页面整体样式和间距,优化用户体验
This commit is contained in:
2026-03-31 00:36:51 +08:00
parent 1d004ee35d
commit ca4405638c
13 changed files with 868 additions and 37 deletions

View File

@@ -0,0 +1,143 @@
.contact-section {
background: #ffffff;
padding: 24px 16px;
margin: 16px 0;
border-radius: 16px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
&:first-child {
margin-top: 0;
}
&:last-child {
margin-bottom: 32px;
}
&__title {
text-align: center;
margin-bottom: 24px;
&-text {
display: block;
font-size: 18px;
font-weight: 600;
color: #1e293b;
margin-bottom: 4px;
}
}
&__subtitle {
font-size: 14px;
color: #64748b;
display: block;
}
&__grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 16px;
margin-bottom: 24px;
}
&__item {
display: flex;
align-items: center;
padding: 16px;
background: #f8fafc;
border-radius: 12px;
&:active {
background: #f1f5f9;
transform: scale(0.98);
transition: transform 0.1s;
}
}
&__icon {
width: 40px;
height: 40px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
margin-right: 12px;
flex-shrink: 0;
&--blue {
background: rgba(59, 130, 246, 0.1);
}
&--green {
background: rgba(16, 185, 129, 0.1);
}
&--orange {
background: rgba(245, 158, 11, 0.1);
}
&--cyan {
background: rgba(6, 182, 212, 0.1);
}
}
&__content {
flex: 1;
min-width: 0;
}
&__item-title {
display: block;
font-size: 14px;
color: #64748b;
margin-bottom: 4px;
}
&__item-value {
display: block;
font-size: 15px;
font-weight: 600;
color: #1e293b;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
&__footer {
text-align: center;
padding-top: 20px;
border-top: 1px solid #e2e8f0;
}
&__footer-text {
display: block;
font-size: 12px;
color: #64748b;
line-height: 1.6;
&:first-child {
margin-bottom: 4px;
}
}
}
// 响应式适配
@media (max-width: 375px) {
.contact-section {
padding: 20px 12px;
margin: 12px 0;
&__grid {
gap: 12px;
}
&__item {
padding: 12px;
}
&__icon {
width: 36px;
height: 36px;
margin-right: 10px;
}
}
}