用户端小程序修改

This commit is contained in:
2026-07-12 20:24:03 +08:00
parent e2dfb08de3
commit b267e885be
16 changed files with 551 additions and 214 deletions
+24 -19
View File
@@ -7,18 +7,38 @@
position: sticky;
top: 0;
z-index: 50;
padding-left: var(--space-page);
background: var(--color-background);
box-sizing: border-box;
}
.benefit-header__content {
position: relative;
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
}
.benefit-header-title {
position: absolute;
left: 0;
right: 0;
top: var(--nav-status-bar-height);
height: var(--nav-content-height);
line-height: var(--nav-content-height);
text-align: center;
padding: 0 48px;
box-sizing: border-box;
font-family: var(--font-headline);
font-size: 16px;
font-weight: 700;
color: var(--color-heritage-red);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
pointer-events: none;
z-index: 1;
}
.benefit-header-city {
display: flex;
align-items: center;
@@ -26,6 +46,8 @@
font-size: 12px;
font-weight: 500;
max-width: 30vw;
position: relative;
z-index: 2;
}
.benefit-header-city-pin {
@@ -37,23 +59,6 @@
flex-shrink: 0;
}
.benefit-header-title {
font-family: var(--font-headline);
font-size: 18px;
font-weight: 700;
color: var(--color-heritage-red);
}
.benefit-header-btn {
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
color: var(--color-on-surface-variant);
font-size: 18px;
}
.benefit-main {
padding: 16px var(--space-page) 24px;
}
+124 -38
View File
@@ -1,11 +1,16 @@
/* 我的 */
.page-shell.mine-page {
min-height: auto;
padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
}
.mine-page {
background: var(--color-background);
}
.mine-header {
position: relative;
padding: 20px var(--space-page) 52px;
padding: 16px var(--space-page) 44px;
background: linear-gradient(135deg, #820012 0%, var(--color-heritage-red) 40%, #d4a373 100%);
overflow: hidden;
}
@@ -34,7 +39,36 @@
.mine-avatar-wrap {
position: relative;
flex-shrink: 0;
margin-right: 14px;
margin-right: 12px;
}
.mine-avatar-wrap--action {
cursor: pointer;
}
.mine-avatar-status {
position: absolute;
left: 50%;
bottom: -4px;
transform: translateX(-50%);
padding: 2px 8px;
border-radius: 999px;
font-size: 9px;
font-weight: 600;
line-height: 1.3;
white-space: nowrap;
border: 1px solid rgba(255, 255, 255, 0.85);
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.mine-avatar-status--ok {
background: #07c160;
color: #fff;
}
.mine-avatar-status--pending {
background: #fff;
color: var(--color-heritage-red);
}
.mine-avatar-badge {
@@ -54,26 +88,44 @@
.mine-wechat-hint {
display: block;
margin-top: 6px;
margin-top: 4px;
font-size: 10px;
color: rgba(255, 255, 255, 0.75);
}
.mine-avatar {
width: 72px;
height: 72px;
width: 64px;
height: 64px;
border-radius: 50%;
border: 2px solid rgba(255, 255, 255, 0.35);
background: #fff;
overflow: hidden;
flex-shrink: 0;
margin-right: 14px;
display: flex;
align-items: center;
justify-content: center;
color: var(--color-heritage-red);
font-size: 28px;
font-size: 24px;
font-weight: 700;
box-sizing: border-box;
}
.mine-avatar--wx-ok {
border-color: #07c160;
box-shadow: 0 0 0 2px rgba(7, 193, 96, 0.25);
}
.mine-avatar--wx-pending {
border-color: rgba(255, 255, 255, 0.9);
box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35);
}
.mine-avatar-wrap .mine-avatar {
margin-right: 0;
}
.mine-profile > .mine-avatar {
margin-right: 12px;
}
.mine-avatar-img {
@@ -84,10 +136,10 @@
.mine-profile-name {
display: block;
font-family: var(--font-headline);
font-size: 20px;
font-size: 18px;
font-weight: 600;
color: #fff;
margin-bottom: 4px;
margin-bottom: 2px;
}
.mine-member-tag {
@@ -100,30 +152,34 @@
}
.mine-main {
margin-top: -36px;
margin-top: -28px;
position: relative;
z-index: 2;
padding: 0 var(--space-page) 12px;
padding: 0 var(--space-page) 0;
}
.mine-card {
background: var(--color-card);
border-radius: var(--radius-lg);
padding: 14px;
padding: 12px;
box-shadow: var(--shadow-card);
margin-bottom: 10px;
margin-bottom: 8px;
}
.mine-card:last-of-type {
margin-bottom: 0;
}
.mine-card-head {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 14px;
margin-bottom: 10px;
}
.mine-card-title {
font-family: var(--font-headline);
font-size: 16px;
font-size: 15px;
font-weight: 700;
color: var(--color-on-surface);
}
@@ -137,7 +193,7 @@
display: flex;
align-items: center;
justify-content: space-between;
padding: 16px;
padding: 12px;
border-radius: var(--radius-md);
background: linear-gradient(135deg, #fff9e6 0%, #fff0c2 100%);
}
@@ -163,16 +219,16 @@
.mine-asset-value {
font-family: var(--font-headline);
font-size: 28px;
font-size: 24px;
font-weight: 700;
}
.mine-asset-cta {
padding: 8px 16px;
padding: 6px 14px;
border-radius: 999px;
background: var(--color-heritage-red);
color: #fff;
font-size: 13px;
font-size: 12px;
font-weight: 600;
}
@@ -185,22 +241,22 @@
display: flex;
flex-direction: column;
align-items: center;
padding: 8px;
padding: 4px;
position: relative;
width: 33%;
}
.mine-order-icon {
width: 40px;
height: 40px;
border-radius: 12px;
width: 36px;
height: 36px;
border-radius: 10px;
background: rgba(166, 29, 36, 0.08);
display: flex;
align-items: center;
justify-content: center;
color: var(--color-heritage-red);
font-size: 18px;
margin-bottom: 6px;
font-size: 16px;
margin-bottom: 4px;
}
.mine-order-badge {
@@ -233,21 +289,21 @@
display: flex;
flex-direction: column;
align-items: center;
padding: 12px 4px;
padding: 6px 4px;
box-sizing: border-box;
}
.mine-service-icon {
width: 36px;
height: 36px;
border-radius: 10px;
width: 32px;
height: 32px;
border-radius: 8px;
background: var(--color-surface-container-low);
display: flex;
align-items: center;
justify-content: center;
color: var(--color-heritage-red);
font-size: 16px;
margin-bottom: 6px;
font-size: 14px;
margin-bottom: 4px;
}
.mine-service-label {
@@ -257,29 +313,59 @@
}
.mine-footer {
text-align: center;
padding: 8px 0 4px;
display: flex;
align-items: center;
justify-content: space-between;
padding: 10px 0 0;
margin-top: 8px;
}
.mine-version {
display: block;
font-size: 12px;
color: var(--color-subtle-gray);
margin-bottom: 8px;
}
.mine-logout {
display: inline-flex;
padding: 10px 32px;
padding: 6px 18px;
border-radius: var(--radius-full);
border: 1px solid rgba(166, 29, 36, 0.3);
color: var(--color-heritage-red);
font-size: 14px;
font-size: 13px;
font-weight: 600;
}
.mine-login-gate {
margin-top: -32px;
margin-top: -24px;
margin-left: var(--space-page);
margin-right: var(--space-page);
margin-bottom: 8px;
padding: 16px;
position: relative;
z-index: 2;
background: var(--color-card);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-card);
box-sizing: border-box;
}
.mine-login-gate-hint {
text-align: center;
padding: 24px 0 16px;
color: var(--color-subtle-gray);
font-size: 14px;
}
.mine-login-btn {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
box-sizing: border-box;
padding: 12px 18px;
border-radius: var(--radius-md);
background: var(--color-heritage-red);
color: #fff;
font-size: 15px;
font-weight: 600;
}
+62 -29
View File
@@ -34,23 +34,29 @@
position: relative;
display: flex;
align-items: center;
justify-content: center;
justify-content: flex-end;
width: 100%;
}
.tab-main-header__title {
position: absolute;
left: var(--nav-padding-left);
right: var(--nav-padding-right);
left: 0;
right: 0;
top: var(--nav-status-bar-height);
height: var(--nav-content-height);
line-height: var(--nav-content-height);
text-align: center;
padding: 0 48px;
box-sizing: border-box;
font-family: var(--font-headline);
font-size: 18px;
font-size: 16px;
font-weight: 700;
color: var(--color-heritage-red);
line-height: 1.2;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
pointer-events: none;
z-index: 1;
}
.tab-main-header__extra {
@@ -94,11 +100,13 @@
position: relative;
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
}
.page-nav-bar__btn {
position: absolute;
top: 50%;
transform: translateY(-50%);
width: 40px;
height: 40px;
border-radius: 999px;
@@ -107,6 +115,16 @@
justify-content: center;
background: rgba(255, 255, 255, 0.8);
flex-shrink: 0;
z-index: 2;
}
.page-nav-bar__btn--back {
left: 0;
}
.page-nav-bar__btn--right {
left: auto;
right: 0;
}
.page-nav-bar--solid .page-nav-bar__btn {
@@ -119,10 +137,11 @@
}
.page-nav-bar__icon {
font-size: 28px;
font-size: 32px;
line-height: 1;
color: var(--color-ink-black);
font-weight: 300;
margin-top: -2px;
}
.page-nav-bar__icon--share {
@@ -132,19 +151,25 @@
.page-nav-bar__title {
position: absolute;
left: var(--nav-padding-left);
right: var(--nav-padding-right);
left: 0;
right: 0;
top: var(--nav-status-bar-height);
height: var(--nav-content-height);
line-height: var(--nav-content-height);
text-align: center;
padding: 0 48px;
box-sizing: border-box;
opacity: 0;
font-family: var(--font-headline);
font-size: 16px;
font-size: 15px;
font-weight: 600;
color: var(--color-ink-black);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
text-align: center;
transition: opacity 0.3s;
pointer-events: none;
z-index: 1;
}
.page-nav-bar__title--visible {
@@ -170,10 +195,31 @@
position: relative;
display: flex;
align-items: center;
justify-content: center;
justify-content: flex-end;
width: 100%;
}
.sub-page-header__title {
position: absolute;
left: 0;
right: 0;
top: var(--nav-status-bar-height);
height: var(--nav-content-height);
line-height: var(--nav-content-height);
text-align: center;
padding: 0 48px;
box-sizing: border-box;
font-family: var(--font-headline);
font-size: 16px;
font-weight: 700;
color: var(--color-heritage-red);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
pointer-events: none;
z-index: 1;
}
.sub-page-header__back {
position: absolute;
left: 0;
@@ -181,32 +227,18 @@
transform: translateY(-50%);
width: 40px;
height: 40px;
margin-left: -8px;
display: flex;
align-items: center;
justify-content: center;
z-index: 2;
}
.sub-page-header__back-icon {
font-size: 28px;
font-size: 32px;
line-height: 1;
color: var(--color-heritage-red);
font-weight: 300;
}
.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);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
pointer-events: none;
margin-top: -2px;
}
.sub-page-header__right {
@@ -214,6 +246,7 @@
right: 0;
top: 50%;
transform: translateY(-50%);
z-index: 2;
}
.sub-page-body {