style(home): 首页筛选/横幅视觉优化,重置按钮与筛选胶囊悬浮点击统一主题橙
This commit is contained in:
@@ -539,47 +539,41 @@ if (!restored) {
|
||||
|
||||
<div class="hero-section">
|
||||
<HomeBanner :banners="displayBanners" :stats="statCards" />
|
||||
</div>
|
||||
|
||||
<div class="biz-entry-grid" aria-label="业务入口">
|
||||
<RouterLink class="biz-entry" to="/">
|
||||
<div class="biz-title-row">
|
||||
<strong>租号大厅</strong>
|
||||
<small>安全交接 · 随租随玩</small>
|
||||
</div>
|
||||
<van-icon name="arrow" :size="12" class="biz-arrow" />
|
||||
</RouterLink>
|
||||
<RouterLink v-if="!siteStore.isDistribution" class="biz-entry crash" to="/crash">
|
||||
<div class="biz-title-row">
|
||||
<strong>撞车 <em>NEW</em></strong>
|
||||
<small>选购商品 · 进群交接</small>
|
||||
</div>
|
||||
<van-icon name="arrow" :size="12" class="biz-arrow" />
|
||||
</RouterLink>
|
||||
<button
|
||||
v-if="awRecycle.enabled"
|
||||
type="button"
|
||||
class="biz-entry aw-recycle"
|
||||
@click="openAWRecycle"
|
||||
>
|
||||
<div class="biz-title-row">
|
||||
<strong>{{ awRecycle.title }}</strong>
|
||||
<small>{{ awRecycle.subtitle }}</small>
|
||||
</div>
|
||||
<van-icon name="arrow" :size="12" class="biz-arrow" />
|
||||
</button>
|
||||
<button
|
||||
v-if="cooperationFeedback.enabled"
|
||||
type="button"
|
||||
class="biz-entry cooperation-feedback"
|
||||
@click="openCooperationFeedback"
|
||||
>
|
||||
<div class="biz-title-row">
|
||||
<strong>{{ cooperationFeedback.title }}</strong>
|
||||
<small>{{ cooperationFeedback.subtitle }}</small>
|
||||
</div>
|
||||
<van-icon name="arrow" :size="12" class="biz-arrow" />
|
||||
</button>
|
||||
<!-- 业务入口:贴在轮播右侧竖排;原「租号大厅」只是跳回首页,已移除 -->
|
||||
<div class="biz-entry-rail" aria-label="业务入口">
|
||||
<RouterLink v-if="!siteStore.isDistribution" class="biz-entry crash" to="/crash">
|
||||
<div class="biz-title-row">
|
||||
<strong>撞车 <em>NEW</em></strong>
|
||||
<small>选购商品 · 进群交接</small>
|
||||
</div>
|
||||
<van-icon name="arrow" :size="14" class="biz-arrow" />
|
||||
</RouterLink>
|
||||
<button
|
||||
v-if="awRecycle.enabled"
|
||||
type="button"
|
||||
class="biz-entry aw-recycle"
|
||||
@click="openAWRecycle"
|
||||
>
|
||||
<div class="biz-title-row">
|
||||
<strong>{{ awRecycle.title }}</strong>
|
||||
<small>{{ awRecycle.subtitle }}</small>
|
||||
</div>
|
||||
<van-icon name="arrow" :size="14" class="biz-arrow" />
|
||||
</button>
|
||||
<button
|
||||
v-if="cooperationFeedback.enabled"
|
||||
type="button"
|
||||
class="biz-entry cooperation-feedback"
|
||||
@click="openCooperationFeedback"
|
||||
>
|
||||
<div class="biz-title-row">
|
||||
<strong>{{ cooperationFeedback.title }}</strong>
|
||||
<small>{{ cooperationFeedback.subtitle }}</small>
|
||||
</div>
|
||||
<van-icon name="arrow" :size="14" class="biz-arrow" />
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<el-dialog
|
||||
@@ -695,29 +689,37 @@ if (!restored) {
|
||||
}
|
||||
|
||||
.hero-section {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) 320px;
|
||||
gap: 14px;
|
||||
align-items: stretch;
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.biz-entry-grid {
|
||||
.biz-entry-rail {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, minmax(0, 1fr));
|
||||
gap: 12px;
|
||||
grid-auto-rows: minmax(0, 1fr);
|
||||
gap: 14px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.biz-entry {
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 10px;
|
||||
min-height: 52px;
|
||||
padding: 12px 18px;
|
||||
border-radius: 12px;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
gap: 6px;
|
||||
min-height: 84px;
|
||||
padding: 16px 46px 16px 20px;
|
||||
border-radius: 14px;
|
||||
border: 1px solid #e2e8f0;
|
||||
background: #ffffff;
|
||||
text-decoration: none;
|
||||
text-align: left;
|
||||
cursor: pointer;
|
||||
font: inherit;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
|
||||
transition:
|
||||
border-color 0.2s ease,
|
||||
@@ -725,22 +727,39 @@ if (!restored) {
|
||||
transform 0.2s ease;
|
||||
}
|
||||
|
||||
.biz-entry::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
width: 3px;
|
||||
background: linear-gradient(180deg, #ff8a3d 0%, #ff6a00 100%);
|
||||
opacity: 0;
|
||||
transition: opacity 0.2s ease;
|
||||
}
|
||||
|
||||
.biz-entry:hover {
|
||||
border-color: #ffbe98;
|
||||
box-shadow: 0 6px 16px rgba(255, 106, 0, 0.08);
|
||||
box-shadow: 0 8px 20px rgba(255, 106, 0, 0.1);
|
||||
transform: translateY(-2px);
|
||||
}
|
||||
|
||||
.biz-entry:hover::before {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.biz-title-row {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
gap: 10px;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 5px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.biz-entry strong {
|
||||
color: #0f172a;
|
||||
font-size: 15px;
|
||||
font-size: 16px;
|
||||
font-weight: 700;
|
||||
letter-spacing: -0.01em;
|
||||
white-space: nowrap;
|
||||
@@ -749,14 +768,17 @@ if (!restored) {
|
||||
.biz-entry small {
|
||||
color: #64748b;
|
||||
font-size: 12px;
|
||||
white-space: nowrap;
|
||||
line-height: 1.4;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.biz-arrow {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
right: 18px;
|
||||
color: #94a3b8;
|
||||
flex-shrink: 0;
|
||||
transform: translateY(-50%);
|
||||
transition:
|
||||
transform 0.2s ease,
|
||||
color 0.2s ease;
|
||||
@@ -764,7 +786,7 @@ if (!restored) {
|
||||
|
||||
.biz-entry:hover .biz-arrow {
|
||||
color: #ff6a00;
|
||||
transform: translateX(2px);
|
||||
transform: translateY(-50%) translateX(2px);
|
||||
}
|
||||
|
||||
.biz-entry.crash strong em {
|
||||
@@ -797,9 +819,37 @@ if (!restored) {
|
||||
background: #f8fafc;
|
||||
}
|
||||
|
||||
@media (max-width: 960px) {
|
||||
.biz-entry-grid {
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
@media (max-width: 1440px) {
|
||||
.hero-section {
|
||||
grid-template-columns: minmax(0, 1fr) 280px;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.biz-entry-rail {
|
||||
gap: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 1024px) {
|
||||
.hero-section {
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
}
|
||||
|
||||
.biz-entry-rail {
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
grid-auto-rows: auto;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.biz-entry {
|
||||
min-height: 76px;
|
||||
padding: 14px 40px 14px 16px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 680px) {
|
||||
.biz-entry-rail {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user