小程序页面优化(门店)

This commit is contained in:
2026-07-22 17:56:25 +08:00
parent b392c28787
commit addfcfb0b1
5 changed files with 345 additions and 71 deletions
+85 -47
View File
@@ -3,56 +3,34 @@
background: var(--color-background);
}
.store-toolbar {
display: flex;
align-items: center;
gap: 8px;
.store-filter {
padding: 0 var(--space-page) 12px;
}
.store-location {
.store-search-row {
display: flex;
align-items: center;
flex-shrink: 0;
max-width: 42%;
color: var(--color-on-surface-variant);
font-size: 12px;
font-weight: 500;
gap: 8px;
width: 100%;
box-sizing: border-box;
}
.store-location-pin {
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--color-heritage-red);
margin-right: 6px;
flex-shrink: 0;
}
.store-location-text {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.store-search {
.store-search-input {
flex: 1;
min-width: 0;
height: 40px;
padding: 0 12px;
padding: 0 14px;
border-radius: var(--radius-md);
background: var(--color-surface-container-low);
font-size: 13px;
line-height: 40px;
color: var(--color-on-surface);
box-sizing: border-box;
display: flex;
align-items: center;
}
.store-search input,
.store-search .taro-input,
.store-search .weui-input {
.store-search-input input,
.store-search-input .taro-input,
.store-search-input .weui-input {
width: 100% !important;
height: 100% !important;
min-height: 0 !important;
@@ -66,32 +44,92 @@
color: inherit;
}
.store-category-tabs {
.store-search-btn {
flex-shrink: 0;
width: 40px;
height: 40px;
border-radius: var(--radius-md);
background: var(--color-heritage-red);
color: #fff;
display: flex;
padding: 12px var(--space-page);
overflow-x: auto;
white-space: nowrap;
border-bottom: 1px solid rgba(226, 190, 188, 0.1);
align-items: center;
justify-content: center;
}
.store-category-tab {
flex-shrink: 0;
margin-right: 24px;
.store-search-icon {
position: relative;
width: 14px;
height: 14px;
border: 2px solid currentColor;
border-radius: 50%;
box-sizing: border-box;
}
.store-search-icon::after {
content: '';
position: absolute;
right: -5px;
bottom: -4px;
width: 7px;
height: 2px;
background: currentColor;
border-radius: 1px;
transform: rotate(45deg);
transform-origin: left center;
}
.store-filter-row {
display: flex;
align-items: center;
gap: 8px;
margin-top: 10px;
}
.store-filter-chip {
flex: 1;
min-width: 0;
height: 36px;
padding: 0 10px;
border-radius: var(--radius-md);
background: var(--color-surface-container-low);
display: flex;
align-items: center;
justify-content: space-between;
gap: 4px;
box-sizing: border-box;
}
.store-filter-chip-text {
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 12px;
font-weight: 500;
color: var(--color-on-surface-variant);
padding-bottom: 6px;
border-bottom: 2px solid transparent;
color: var(--color-on-surface);
}
.store-category-tab--active {
.store-filter-chip-arrow {
flex-shrink: 0;
font-size: 10px;
color: var(--color-subtle-gray);
}
.store-filter-reset {
flex-shrink: 0;
height: 36px;
padding: 0 10px;
display: flex;
align-items: center;
justify-content: center;
font-size: 13px;
font-weight: 600;
color: var(--color-heritage-red);
border-bottom-color: var(--color-heritage-red);
font-weight: 700;
}
.store-list {
padding: 16px var(--space-page);
padding: 4px var(--space-page) 16px;
}
.store-card {