小程序修改

This commit is contained in:
2026-07-12 19:44:36 +08:00
parent 3b4833b51a
commit e2dfb08de3
45 changed files with 2028 additions and 347 deletions
+118
View File
@@ -105,3 +105,121 @@
font-size: 15px;
box-sizing: border-box;
}
.address-form-row {
display: flex;
align-items: center;
justify-content: space-between;
margin: 0 var(--space-page) 12px;
padding: 12px 14px;
border-radius: var(--radius-md);
background: var(--color-card);
box-shadow: var(--shadow-card);
}
.address-form-error {
display: block;
margin: -6px var(--space-page) 12px;
font-size: 12px;
color: var(--color-heritage-red);
}
.region-picker-overlay {
position: fixed;
inset: 0;
z-index: 1000;
background: rgba(26, 26, 26, 0.45);
display: flex;
align-items: flex-end;
justify-content: center;
}
.region-picker-sheet {
width: 100%;
background: #fff;
border-radius: 16px 16px 0 0;
padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 8px);
max-height: 56vh;
display: flex;
flex-direction: column;
}
.region-picker-toolbar {
display: flex;
align-items: stretch;
padding: 0 16px;
border-bottom: 1px solid rgba(0, 0, 0, 0.08);
flex-shrink: 0;
}
.region-picker-tabs {
flex: 1;
display: flex;
align-items: stretch;
gap: 28px;
min-width: 0;
}
.region-picker-tab {
position: relative;
padding: 14px 0 12px;
font-size: 15px;
line-height: 22px;
color: var(--color-on-surface-variant);
white-space: nowrap;
}
.region-picker-tab.active {
color: var(--color-on-surface);
font-weight: 500;
}
.region-picker-tab.active::after {
content: '';
position: absolute;
left: 0;
right: 0;
bottom: 0;
height: 2px;
background: var(--color-heritage-red);
border-radius: 1px;
}
.region-picker-tab.disabled {
opacity: 0.45;
}
.region-picker-confirm {
flex-shrink: 0;
padding: 14px 0 12px 12px;
font-size: 15px;
line-height: 22px;
color: var(--color-on-surface-variant);
}
.region-picker-confirm.ready {
color: var(--color-heritage-red);
font-weight: 500;
}
.region-picker-list {
flex: 1;
min-height: 0;
max-height: 40vh;
padding: 4px 0 8px;
}
.region-picker-option {
padding: 14px 20px;
font-size: 16px;
line-height: 24px;
color: var(--color-on-surface);
}
.region-picker-option.selected {
color: var(--color-heritage-red);
}
.region-picker-option--all {
font-weight: 500;
}
+20 -1
View File
@@ -34,7 +34,7 @@
.home-aroma-nav {
display: flex;
align-items: center;
justify-content: center;
justify-content: space-between;
gap: 8px;
padding: 8px var(--space-page);
background: rgba(250, 249, 247, 0.95);
@@ -44,6 +44,25 @@
z-index: 40;
}
.home-aroma-tabs {
display: flex;
align-items: center;
gap: 8px;
flex: 1;
min-width: 0;
}
.home-aroma-city {
flex-shrink: 0;
font-size: 11px;
color: var(--color-subtle-gray);
pointer-events: none;
max-width: 72px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.home-aroma-tab {
border: none;
background: transparent;
+7 -9
View File
@@ -18,24 +18,22 @@
.login-logo-wrap {
position: relative;
width: 120px;
height: 120px;
width: 200px;
height: 72px;
margin-bottom: 28px;
}
.login-logo {
width: 100%;
height: 100%;
border-radius: var(--radius-lg);
background: var(--color-card);
box-shadow: var(--shadow-card);
display: flex;
align-items: center;
justify-content: center;
font-family: var(--font-headline);
font-size: 48px;
font-weight: 700;
color: var(--color-heritage-red);
}
.login-logo-img {
width: 100%;
height: 100%;
}
.login-logo-badge {
+35 -7
View File
@@ -5,7 +5,7 @@
.mine-header {
position: relative;
padding: 24px var(--space-page) 80px;
padding: 20px var(--space-page) 52px;
background: linear-gradient(135deg, #820012 0%, var(--color-heritage-red) 40%, #d4a373 100%);
overflow: hidden;
}
@@ -31,6 +31,34 @@
z-index: 1;
}
.mine-avatar-wrap {
position: relative;
flex-shrink: 0;
margin-right: 14px;
}
.mine-avatar-badge {
position: absolute;
right: -4px;
bottom: -2px;
background: var(--color-heritage-red);
color: #fff;
font-size: 9px;
padding: 2px 6px;
border-radius: 999px;
}
.mine-member-tag--wechat {
background: rgba(255, 255, 255, 0.25);
}
.mine-wechat-hint {
display: block;
margin-top: 6px;
font-size: 10px;
color: rgba(255, 255, 255, 0.75);
}
.mine-avatar {
width: 72px;
height: 72px;
@@ -72,18 +100,18 @@
}
.mine-main {
margin-top: -48px;
margin-top: -36px;
position: relative;
z-index: 2;
padding: 0 var(--space-page) 24px;
padding: 0 var(--space-page) 12px;
}
.mine-card {
background: var(--color-card);
border-radius: var(--radius-lg);
padding: 16px;
padding: 14px;
box-shadow: var(--shadow-card);
margin-bottom: 12px;
margin-bottom: 10px;
}
.mine-card-head {
@@ -230,14 +258,14 @@
.mine-footer {
text-align: center;
padding: 16px 0 8px;
padding: 8px 0 4px;
}
.mine-version {
display: block;
font-size: 12px;
color: var(--color-subtle-gray);
margin-bottom: 12px;
margin-bottom: 8px;
}
.mine-logout {
+14 -7
View File
@@ -25,7 +25,6 @@
position: sticky;
top: 0;
z-index: 50;
padding-left: var(--space-page);
background: var(--color-background);
box-shadow: var(--shadow-card);
box-sizing: border-box;
@@ -40,12 +39,15 @@
}
.tab-main-header__title {
position: absolute;
left: var(--nav-padding-left);
right: var(--nav-padding-right);
text-align: center;
font-family: var(--font-headline);
font-size: 18px;
font-weight: 700;
color: var(--color-heritage-red);
line-height: 1.2;
max-width: 52vw;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
@@ -78,7 +80,6 @@
left: 0;
right: 0;
z-index: 50;
padding-left: var(--space-page);
background: transparent;
box-sizing: border-box;
transition: background 0.3s, box-shadow 0.3s;
@@ -90,6 +91,7 @@
}
.page-nav-bar__content {
position: relative;
display: flex;
align-items: center;
justify-content: space-between;
@@ -129,9 +131,10 @@
}
.page-nav-bar__title {
flex: 1;
position: absolute;
left: var(--nav-padding-left);
right: var(--nav-padding-right);
opacity: 0;
padding: 0 8px;
font-family: var(--font-headline);
font-size: 16px;
font-weight: 600;
@@ -141,6 +144,7 @@
white-space: nowrap;
text-align: center;
transition: opacity 0.3s;
pointer-events: none;
}
.page-nav-bar__title--visible {
@@ -157,7 +161,6 @@
position: sticky;
top: 0;
z-index: 50;
padding-left: var(--space-page);
background: var(--color-background);
box-shadow: var(--shadow-card);
box-sizing: border-box;
@@ -192,14 +195,18 @@
}
.sub-page-header__title {
position: absolute;
left: var(--nav-padding-left);
right: var(--nav-padding-right);
text-align: center;
font-family: var(--font-headline);
font-size: 18px;
font-weight: 700;
color: var(--color-heritage-red);
max-width: 60vw;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
pointer-events: none;
}
.sub-page-header__right {
+38
View File
@@ -250,3 +250,41 @@
font-size: 12px;
color: var(--color-on-surface);
}
.cs-body {
display: flex;
flex-direction: column;
align-items: center;
padding-top: 48px;
text-align: center;
}
.cs-title {
font-size: 14px;
color: var(--color-subtle-gray);
margin-bottom: 12px;
}
.cs-phone {
font-family: var(--font-headline);
font-size: 32px;
font-weight: 700;
color: var(--color-heritage-red);
margin-bottom: 8px;
letter-spacing: 1px;
}
.cs-hint {
font-size: 12px;
color: var(--color-subtle-gray);
margin-bottom: 32px;
}
.cs-call-btn {
padding: 12px 32px;
border-radius: 999px;
background: var(--color-heritage-red);
color: #fff;
font-size: 15px;
font-weight: 600;
}
@@ -146,3 +146,8 @@
background: var(--color-heritage-red);
color: #fff;
}
.store-detail-bar-btn--full {
flex: 1;
margin-right: 0;
}
+17 -5
View File
@@ -4,13 +4,17 @@
}
.store-toolbar {
display: flex;
align-items: center;
gap: 8px;
padding: 0 var(--space-page) 12px;
}
.store-location {
display: flex;
align-items: center;
margin-bottom: 10px;
flex-shrink: 0;
max-width: 42%;
color: var(--color-on-surface-variant);
font-size: 12px;
font-weight: 500;
@@ -22,17 +26,25 @@
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 {
height: 44px;
padding: 0 16px 0 40px;
flex: 1;
min-width: 0;
height: 40px;
padding: 0 12px;
border-radius: var(--radius-md);
background: var(--color-surface-container-low);
font-size: 14px;
font-size: 13px;
color: var(--color-on-surface);
box-sizing: border-box;
width: 100%;
}
.store-category-tabs {