Files
JayuCloud/JY-Salon-WeChat/pages/profile/index.wxss
T

496 lines
7.6 KiB
Plaintext

.profile-card {
display: flex;
flex-direction: column;
gap: 24rpx;
padding: 28rpx;
}
.profile-card-head {
display: flex;
align-items: stretch;
min-width: 0;
width: 100%;
gap: 18rpx;
}
.profile-copy {
flex: 1;
min-width: 0;
}
.shop-logo {
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
width: 90rpx;
height: 90rpx;
overflow: hidden;
border: 2rpx solid #dce8e1;
border-radius: 22rpx;
background: #edf5ef;
color: #638978;
font-size: 38rpx;
font-weight: 900;
}
.shop-logo image {
width: 100%;
height: 100%;
}
.profile-title-row,
.profile-meta-row,
.profile-name,
.profile-meta-label,
.profile-meta-value {
display: block;
min-width: 0;
}
.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;
}
.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;
border-radius: 999rpx;
background: #e5eee9;
color: #4e7165;
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;
}
.menu-row {
display: flex;
align-items: center;
justify-content: space-between;
min-height: 104rpx;
padding: 0 26rpx;
border-bottom: 1rpx solid #eee8df;
color: #302c27;
font-size: 28rpx;
font-weight: 700;
}
.menu-row:last-child {
border-bottom: 0;
}
.danger-row {
justify-content: center;
color: #c96868;
}
.arrow {
color: #b0a79e;
font-size: 44rpx;
}
.modal-mask {
position: fixed;
inset: 0;
z-index: 80;
display: flex;
align-items: flex-end;
justify-content: center;
background: rgba(18, 15, 12, 0.48);
animation: maskIn 180ms ease both;
}
.profile-modal {
width: 100%;
max-height: 88vh;
overflow-y: auto;
padding: 28rpx 28rpx calc(30rpx + env(safe-area-inset-bottom));
border-radius: 28rpx 28rpx 0 0;
background: #fffaf4;
box-shadow: 0 -18rpx 40rpx rgba(41, 31, 23, 0.16);
animation: modalUp 220ms ease both;
}
.modal-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 20rpx;
margin-bottom: 20rpx;
}
.modal-title {
color: #27211d;
font-size: 34rpx;
font-weight: 900;
}
.modal-close {
position: relative;
display: flex;
align-items: center;
justify-content: center;
width: 48rpx;
min-width: 48rpx;
height: 48rpx;
border-radius: 50%;
border: 1rpx solid #e4d8ca;
background: #fffaf4;
color: transparent;
font-size: 0;
line-height: 0;
}
.modal-close::before,
.modal-close::after {
content: "";
position: absolute;
width: 22rpx;
height: 3rpx;
border-radius: 999rpx;
background: #61554c;
}
.modal-close::before {
transform: rotate(45deg);
}
.modal-close::after {
transform: rotate(-45deg);
}
.profile-avatar-row {
display: flex;
align-items: center;
gap: 18rpx;
margin-bottom: 18rpx;
padding: 18rpx;
border-radius: 20rpx;
background: #f7efe7;
}
.profile-avatar {
display: flex;
align-items: center;
justify-content: center;
flex: 0 0 auto;
width: 92rpx;
height: 92rpx;
overflow: hidden;
border-radius: 50%;
background: #6f8f83;
color: #fff;
font-size: 24rpx;
font-weight: 900;
}
.profile-avatar image {
width: 100%;
height: 100%;
}
.profile-avatar-copy {
min-width: 0;
flex: 1;
}
.profile-avatar-name,
.profile-avatar-desc {
display: block;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.profile-avatar-name {
color: #29241f;
font-size: 28rpx;
font-weight: 900;
}
.profile-avatar-desc {
margin-top: 8rpx;
color: #8a7f75;
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;
width: 100%;
min-height: 60rpx;
padding: 0 14rpx;
border-radius: 16rpx;
background: #6f8f83;
color: #fffdf8;
font-size: 24rpx;
font-weight: 900;
}
.avatar-remove {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
min-height: 54rpx;
padding: 0 14rpx;
border-radius: 16rpx;
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));
gap: 14rpx;
margin-bottom: 18rpx;
}
.profile-info-item {
min-width: 0;
padding: 16rpx;
border-radius: 18rpx;
background: #f7efe7;
}
.profile-info-item text,
.profile-info-item view {
display: block;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.profile-info-item text {
color: #8a7f75;
font-size: 22rpx;
font-weight: 800;
}
.profile-info-item view {
margin-top: 8rpx;
color: #2c2722;
font-size: 25rpx;
font-weight: 900;
}
.modal-field {
margin-bottom: 16rpx;
padding: 16rpx 18rpx;
border-radius: 18rpx;
background: #f7efe7;
}
.modal-field text {
display: block;
margin-bottom: 8rpx;
color: #6c5f54;
font-size: 24rpx;
font-weight: 800;
}
.modal-field input,
.modal-field textarea,
.readonly-field view {
width: 100%;
padding: 0 18rpx;
border: 1rpx solid #eadfd2;
border-radius: 16rpx;
background: #fffdf8;
color: #2c2722;
font-size: 28rpx;
}
.modal-field input,
.readonly-field view {
min-height: 70rpx;
line-height: 70rpx;
}
.modal-field textarea {
min-height: 120rpx;
padding-top: 18rpx;
padding-bottom: 18rpx;
}
.readonly-field view {
color: #7f756b;
}
.modal-submit {
margin-top: 22rpx;
}
@keyframes maskIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes modalUp {
from {
transform: translateY(40rpx);
}
to {
transform: translateY(0);
}
}