优化店务小程序个人中心界面
This commit is contained in:
@@ -1,223 +1,345 @@
|
||||
.profile-card {
|
||||
.profile-page {
|
||||
min-height: 100vh;
|
||||
padding: 20rpx 24rpx 156rpx;
|
||||
background:
|
||||
linear-gradient(180deg, rgba(253, 249, 242, 0.98), rgba(248, 244, 237, 0.98)),
|
||||
linear-gradient(135deg, rgba(116, 148, 130, 0.12), rgba(230, 205, 160, 0.1));
|
||||
}
|
||||
|
||||
.profile-hero {
|
||||
overflow: hidden;
|
||||
border-radius: 8px;
|
||||
background:
|
||||
radial-gradient(circle at 92% 4%, rgba(255, 255, 255, 0.72), transparent 32%),
|
||||
linear-gradient(135deg, #eef8eb, #fffaf2);
|
||||
box-shadow: 0 16rpx 40rpx rgba(77, 91, 72, 0.1);
|
||||
}
|
||||
|
||||
.hero-main {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 24rpx;
|
||||
padding: 28rpx;
|
||||
}
|
||||
|
||||
.profile-card-head {
|
||||
display: flex;
|
||||
align-items: stretch;
|
||||
min-width: 0;
|
||||
width: 100%;
|
||||
gap: 18rpx;
|
||||
padding: 34rpx 30rpx 26rpx;
|
||||
}
|
||||
|
||||
.profile-copy {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.shop-logo {
|
||||
.hero-avatar {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-shrink: 0;
|
||||
width: 90rpx;
|
||||
height: 90rpx;
|
||||
flex: 0 0 auto;
|
||||
width: 128rpx;
|
||||
height: 128rpx;
|
||||
overflow: hidden;
|
||||
border: 2rpx solid #dce8e1;
|
||||
border-radius: 22rpx;
|
||||
background: #edf5ef;
|
||||
color: #638978;
|
||||
font-size: 38rpx;
|
||||
border: 4rpx solid rgba(255, 255, 255, 0.86);
|
||||
border-radius: 50%;
|
||||
background: #d8e8d9;
|
||||
color: #5a8d68;
|
||||
font-size: 42rpx;
|
||||
font-weight: 900;
|
||||
box-shadow: 0 12rpx 28rpx rgba(76, 105, 82, 0.14);
|
||||
}
|
||||
|
||||
.shop-logo image {
|
||||
.hero-avatar image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.profile-title-row,
|
||||
.profile-meta-row,
|
||||
.profile-name,
|
||||
.profile-meta-label,
|
||||
.profile-meta-value {
|
||||
display: block;
|
||||
.hero-copy {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.profile-title-row {
|
||||
.hero-title-row,
|
||||
.shop-line,
|
||||
.business-line {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 14rpx;
|
||||
margin-top: 2rpx;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.profile-name {
|
||||
color: #2d2621;
|
||||
font-size: 32rpx;
|
||||
.hero-title-row {
|
||||
gap: 14rpx;
|
||||
}
|
||||
|
||||
.hero-title {
|
||||
display: block;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
color: #25211d;
|
||||
font-size: 34rpx;
|
||||
font-weight: 900;
|
||||
line-height: 1.2;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.profile-meta-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8rpx;
|
||||
margin-top: 8rpx;
|
||||
color: #6d6258;
|
||||
font-size: 24rpx;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.profile-meta-label {
|
||||
flex-shrink: 0;
|
||||
color: #9a9086;
|
||||
}
|
||||
|
||||
.profile-meta-value {
|
||||
overflow: hidden;
|
||||
color: #4e7165;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.role-badge {
|
||||
flex-shrink: 0;
|
||||
padding: 7rpx 16rpx;
|
||||
flex: 0 0 auto;
|
||||
padding: 6rpx 16rpx;
|
||||
border-radius: 999rpx;
|
||||
background: #e5eee9;
|
||||
color: #4e7165;
|
||||
font-size: 22rpx;
|
||||
font-weight: 800;
|
||||
background: #dcefe0;
|
||||
color: #4e8a61;
|
||||
font-size: 21rpx;
|
||||
font-weight: 900;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.shop-summary {
|
||||
.shop-line {
|
||||
gap: 8rpx;
|
||||
margin-top: 14rpx;
|
||||
color: #67615a;
|
||||
font-size: 26rpx;
|
||||
font-weight: 700;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.shop-line text:first-child {
|
||||
display: block;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.hero-arrow {
|
||||
flex: 0 0 auto;
|
||||
color: #938b82;
|
||||
font-size: 38rpx;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.business-line {
|
||||
flex-wrap: wrap;
|
||||
gap: 12rpx;
|
||||
margin-top: 16rpx;
|
||||
}
|
||||
|
||||
.status-badge {
|
||||
flex: 0 0 auto;
|
||||
padding: 5rpx 14rpx;
|
||||
border-radius: 999rpx;
|
||||
color: #fff;
|
||||
font-size: 21rpx;
|
||||
font-weight: 900;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.status-badge.open {
|
||||
background: #5e9a71;
|
||||
}
|
||||
|
||||
.status-badge.warning {
|
||||
background: #c68a33;
|
||||
}
|
||||
|
||||
.status-badge.closed {
|
||||
background: #9a9a9a;
|
||||
}
|
||||
|
||||
.business-hours {
|
||||
display: block;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
color: #858077;
|
||||
font-size: 24rpx;
|
||||
line-height: 1.2;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.stats-card {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
border-top: 1rpx solid rgba(103, 131, 105, 0.1);
|
||||
background: rgba(255, 255, 255, 0.62);
|
||||
}
|
||||
|
||||
.stat-item {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
flex: 0 0 184rpx;
|
||||
min-width: 0;
|
||||
padding: 18rpx;
|
||||
border-radius: 22rpx;
|
||||
background: #f7efe7;
|
||||
}
|
||||
|
||||
.shop-summary text,
|
||||
.shop-summary view {
|
||||
display: block;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.shop-summary text {
|
||||
color: #94877b;
|
||||
font-size: 19rpx;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.shop-summary view {
|
||||
margin-top: 10rpx;
|
||||
color: #2c2722;
|
||||
font-size: 26rpx;
|
||||
font-weight: 900;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.profile-summary-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 20rpx;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.profile-summary-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
min-width: 0;
|
||||
min-height: 56rpx;
|
||||
gap: 14rpx;
|
||||
padding: 0 20rpx;
|
||||
border-radius: 18rpx;
|
||||
background: #f7efe7;
|
||||
padding: 22rpx 10rpx 24rpx;
|
||||
border-right: 1rpx solid rgba(103, 131, 105, 0.1);
|
||||
}
|
||||
|
||||
.profile-summary-item text,
|
||||
.profile-summary-item view {
|
||||
.stat-item:last-child {
|
||||
border-right: 0;
|
||||
}
|
||||
|
||||
.stat-mark {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 34rpx;
|
||||
height: 34rpx;
|
||||
margin-bottom: 8rpx;
|
||||
border-radius: 50%;
|
||||
background: #6d9878;
|
||||
color: #fff;
|
||||
font-size: 20rpx;
|
||||
font-weight: 900;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.stat-label,
|
||||
.stat-value,
|
||||
.stat-unit {
|
||||
display: block;
|
||||
min-width: 0;
|
||||
max-width: 100%;
|
||||
overflow: hidden;
|
||||
text-align: center;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.profile-summary-item text {
|
||||
flex-shrink: 0;
|
||||
color: #94877b;
|
||||
font-size: 21rpx;
|
||||
.stat-label {
|
||||
color: #8c857d;
|
||||
font-size: 22rpx;
|
||||
font-weight: 700;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.profile-summary-item view {
|
||||
flex: 1;
|
||||
color: #2c2722;
|
||||
font-size: 25rpx;
|
||||
.stat-value {
|
||||
margin-top: 10rpx;
|
||||
color: #25211d;
|
||||
font-size: 34rpx;
|
||||
font-weight: 900;
|
||||
line-height: 1.05;
|
||||
}
|
||||
|
||||
.stat-unit {
|
||||
margin-top: 4rpx;
|
||||
color: #a29a92;
|
||||
font-size: 20rpx;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.menu-section {
|
||||
margin-top: 34rpx;
|
||||
}
|
||||
|
||||
.section-title {
|
||||
display: block;
|
||||
margin: 0 8rpx 16rpx;
|
||||
color: #302b26;
|
||||
font-size: 28rpx;
|
||||
font-weight: 900;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.menu-list {
|
||||
.menu-card {
|
||||
overflow: hidden;
|
||||
border-radius: 8px;
|
||||
background: rgba(255, 255, 255, 0.86);
|
||||
box-shadow: 0 12rpx 30rpx rgba(65, 54, 42, 0.06);
|
||||
}
|
||||
|
||||
.menu-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
min-height: 104rpx;
|
||||
padding: 0 26rpx;
|
||||
gap: 20rpx;
|
||||
min-height: 92rpx;
|
||||
padding: 14rpx 24rpx;
|
||||
border-bottom: 1rpx solid #eee8df;
|
||||
color: #302c27;
|
||||
font-size: 28rpx;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.menu-row:last-child {
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
.danger-row {
|
||||
.menu-row.disabled {
|
||||
opacity: 0.58;
|
||||
}
|
||||
|
||||
.menu-mark {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: #c96868;
|
||||
flex: 0 0 auto;
|
||||
width: 46rpx;
|
||||
height: 46rpx;
|
||||
border-radius: 12rpx;
|
||||
background: #e8f3e9;
|
||||
color: #63936c;
|
||||
font-size: 23rpx;
|
||||
font-weight: 900;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.menu-copy {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.menu-title,
|
||||
.menu-desc {
|
||||
display: block;
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.menu-title {
|
||||
color: #2f2a25;
|
||||
font-size: 28rpx;
|
||||
font-weight: 800;
|
||||
line-height: 1.25;
|
||||
}
|
||||
|
||||
.menu-desc {
|
||||
margin-top: 6rpx;
|
||||
color: #938b82;
|
||||
font-size: 22rpx;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
.arrow {
|
||||
color: #b0a79e;
|
||||
font-size: 44rpx;
|
||||
flex: 0 0 auto;
|
||||
color: #b7afa6;
|
||||
font-size: 42rpx;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.logout-card {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 100%;
|
||||
min-height: 86rpx;
|
||||
margin-top: 34rpx;
|
||||
border-radius: 8px;
|
||||
background: rgba(255, 255, 255, 0.9);
|
||||
color: #d55e58;
|
||||
font-size: 28rpx;
|
||||
font-weight: 900;
|
||||
box-shadow: 0 12rpx 30rpx rgba(65, 54, 42, 0.05);
|
||||
}
|
||||
|
||||
@media (max-width: 340px) {
|
||||
.profile-card-head {
|
||||
flex-wrap: wrap;
|
||||
.hero-main {
|
||||
align-items: flex-start;
|
||||
gap: 18rpx;
|
||||
padding: 28rpx 22rpx 22rpx;
|
||||
}
|
||||
|
||||
.profile-copy {
|
||||
flex: 1 1 0;
|
||||
.hero-avatar {
|
||||
width: 108rpx;
|
||||
height: 108rpx;
|
||||
}
|
||||
|
||||
.shop-summary {
|
||||
flex: 1 1 100%;
|
||||
}
|
||||
|
||||
.profile-summary-grid {
|
||||
.stats-card {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.stat-item {
|
||||
border-right: 0;
|
||||
border-bottom: 1rpx solid rgba(103, 131, 105, 0.1);
|
||||
}
|
||||
|
||||
.stat-item:last-child {
|
||||
border-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user