优化店务小程序我的页信息卡片

This commit is contained in:
2026-07-22 18:03:28 +08:00
parent b9989f8344
commit ab008a351f
3 changed files with 214 additions and 41 deletions
+172 -32
View File
@@ -1,19 +1,20 @@
.profile-card {
display: flex;
align-items: center;
justify-content: space-between;
gap: 20rpx;
flex-direction: column;
gap: 24rpx;
padding: 28rpx;
}
.profile-main {
.profile-card-head {
display: flex;
align-items: center;
align-items: stretch;
min-width: 0;
gap: 20rpx;
width: 100%;
gap: 18rpx;
}
.profile-copy {
flex: 1;
min-width: 0;
}
@@ -22,13 +23,14 @@
align-items: center;
justify-content: center;
flex-shrink: 0;
width: 96rpx;
height: 96rpx;
width: 90rpx;
height: 90rpx;
overflow: hidden;
border-radius: 24rpx;
background: #6f8f83;
color: #fff;
font-size: 40rpx;
border: 2rpx solid #dce8e1;
border-radius: 22rpx;
background: #edf5ef;
color: #638978;
font-size: 38rpx;
font-weight: 900;
}
@@ -37,36 +39,141 @@
height: 100%;
}
.shop-name,
.phone {
.profile-title-row,
.profile-meta-row,
.profile-name,
.profile-meta-label,
.profile-meta-value {
display: block;
min-width: 0;
}
.shop-name {
font-size: 34rpx;
font-weight: 800;
.profile-title-row {
display: flex;
align-items: center;
gap: 14rpx;
margin-top: 2rpx;
}
.profile-name {
color: #2d2621;
font-size: 32rpx;
font-weight: 900;
line-height: 1.2;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.phone {
.profile-meta-row {
display: flex;
align-items: center;
gap: 8rpx;
margin-top: 8rpx;
color: #91897f;
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: 8rpx 18rpx;
padding: 7rpx 16rpx;
border-radius: 999rpx;
background: #e5eee9;
color: #4e7165;
font-size: 23rpx;
font-size: 22rpx;
font-weight: 800;
line-height: 1.2;
}
.shop-summary {
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;
}
.profile-summary-item text,
.profile-summary-item view {
display: block;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.profile-summary-item text {
flex-shrink: 0;
color: #94877b;
font-size: 21rpx;
line-height: 1.2;
}
.profile-summary-item view {
flex: 1;
color: #2c2722;
font-size: 25rpx;
font-weight: 900;
line-height: 1.2;
}
.menu-list {
overflow: hidden;
}
@@ -223,17 +330,24 @@
font-size: 22rpx;
}
.profile-avatar-actions {
display: flex;
flex-direction: column;
flex: 0 0 auto;
gap: 14rpx;
width: 150rpx;
}
.avatar-btn {
display: flex;
align-items: center;
justify-content: center;
flex: 0 0 auto;
min-width: 104rpx;
min-height: 58rpx;
padding: 0 18rpx;
width: 100%;
min-height: 60rpx;
padding: 0 14rpx;
border-radius: 16rpx;
background: #fffdf8;
color: #72553b;
background: #6f8f83;
color: #fffdf8;
font-size: 24rpx;
font-weight: 900;
}
@@ -242,17 +356,43 @@
display: flex;
align-items: center;
justify-content: center;
flex: 0 0 auto;
min-width: 76rpx;
min-height: 58rpx;
padding: 0 16rpx;
width: 100%;
min-height: 54rpx;
padding: 0 14rpx;
border-radius: 16rpx;
background: #f0e5dc;
background: #f4e8e0;
color: #9a5f43;
font-size: 24rpx;
font-weight: 900;
}
@media (max-width: 340px) {
.profile-card-head {
flex-wrap: wrap;
}
.profile-copy {
flex: 1 1 0;
}
.shop-summary {
flex: 1 1 100%;
}
.profile-summary-grid {
grid-template-columns: 1fr;
}
.profile-avatar-row {
flex-wrap: wrap;
}
.profile-avatar-actions {
flex-direction: row;
width: 100%;
}
}
.profile-info-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));