refactor: 拆分小程序 vue 结构

This commit is contained in:
2026-03-11 14:11:26 +08:00
commit b050c01a24
141 changed files with 24904 additions and 0 deletions

View File

@@ -0,0 +1,161 @@
@import '../../../styles/variables';
.home-page {
min-height: 100vh;
padding: 14px 16px 24px;
display: flex;
flex-direction: column;
gap: 14px;
background: $bg;
}
.home-page__store-card {
background: $card;
border-radius: $r-lg;
padding: 14px 16px;
box-shadow: $shadow-sm;
display: flex;
align-items: center;
gap: 12px;
}
.home-page__store-icon-wrap {
width: 42px;
height: 42px;
border-radius: $r-sm;
background: $primary-light;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.home-page__store-icon-emoji {
font-size: 18px;
}
.home-page__store-text {
flex: 1;
min-width: 0;
}
.home-page__store-name {
font-size: 15px;
font-weight: 600;
color: $text-1;
display: flex;
align-items: center;
gap: 6px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.home-page__store-name-text {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.home-page__store-status {
display: inline-flex;
align-items: center;
gap: 3px;
font-size: 11px;
color: $primary;
font-weight: 500;
flex-shrink: 0;
}
.home-page__store-status-dot {
width: 6px;
height: 6px;
border-radius: 50%;
background: $primary;
animation: pulse-dot 2s ease-in-out infinite;
}
.home-page__store-addr {
font-size: 12px;
color: $text-3;
margin-top: 3px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.home-page__store-switch {
font-size: 13px;
color: $primary;
font-weight: 500;
display: flex;
align-items: center;
gap: 2px;
padding: 8px 0;
white-space: nowrap;
flex-shrink: 0;
}
.home-page__chevron {
font-size: 16px;
}
.home-page__scan-tab {
display: flex;
align-items: center;
justify-content: center;
gap: 5px;
height: 44px;
border-radius: $r-sm;
background: $primary;
color: #fff;
font-size: 14px;
font-weight: 600;
box-shadow: 0 2px 10px rgba(22, 163, 74, 0.35);
}
.home-page__search {
display: flex;
align-items: center;
gap: 8px;
background: #F1F5F9;
border-radius: $r-md;
padding: 0 14px;
height: 40px;
}
.home-page__search-icon {
font-size: 14px;
}
.home-page__search-placeholder {
font-size: 14px;
color: $text-4;
}
.home-page__section-head {
display: flex;
align-items: center;
justify-content: space-between;
padding: 2px 0;
}
.home-page__section-title {
font-size: 18px;
font-weight: 700;
color: $text-1;
}
.home-page__section-more {
font-size: 13px;
color: $text-4;
display: flex;
align-items: center;
gap: 2px;
}
.home-page__product-list {
display: flex;
flex-direction: column;
gap: 12px;
}