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

343 lines
5.0 KiB
Plaintext

.profile-card {
display: flex;
align-items: center;
justify-content: space-between;
gap: 20rpx;
padding: 28rpx;
}
.profile-main {
display: flex;
align-items: center;
min-width: 0;
gap: 20rpx;
}
.profile-copy {
min-width: 0;
}
.shop-logo {
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
width: 96rpx;
height: 96rpx;
border-radius: 24rpx;
background: #6f8f83;
color: #fff;
font-size: 40rpx;
font-weight: 900;
}
.shop-name,
.phone {
display: block;
}
.shop-name {
font-size: 34rpx;
font-weight: 800;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.phone {
margin-top: 8rpx;
color: #91897f;
font-size: 24rpx;
}
.role-badge {
flex-shrink: 0;
padding: 8rpx 18rpx;
border-radius: 999rpx;
background: #e5eee9;
color: #4e7165;
font-size: 23rpx;
font-weight: 800;
line-height: 1.2;
}
.overview-card {
margin-top: 20rpx;
padding: 24rpx;
}
.overview-head {
display: flex;
align-items: baseline;
justify-content: space-between;
margin-bottom: 20rpx;
}
.overview-title {
color: #302c27;
font-size: 28rpx;
font-weight: 900;
}
.overview-date,
.overview-loading {
color: #91897f;
font-size: 22rpx;
}
.overview-loading {
padding: 28rpx 0;
text-align: center;
}
.overview-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 12rpx;
}
.overview-item {
display: flex;
min-height: 112rpx;
align-items: center;
justify-content: center;
flex-direction: column;
border-radius: 16rpx;
background: #f8f3ec;
}
.overview-item--warning {
background: #fff3e7;
}
.overview-item--status {
gap: 5rpx;
}
.overview-value {
color: #2f6f62;
font-size: 38rpx;
font-weight: 900;
line-height: 1;
}
.overview-label,
.overview-status {
margin-top: 10rpx;
color: #756b62;
font-size: 21rpx;
text-align: center;
}
.overview-status {
margin-top: 0;
color: #2f6f62;
font-size: 27rpx;
font-weight: 800;
}
.status-dot {
width: 18rpx;
height: 18rpx;
border-radius: 50%;
background: #c4bdb5;
}
.status-dot.is-open {
background: #55a27f;
}
.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;
}
.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(28rpx + 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: 16rpx;
margin-bottom: 18rpx;
padding: 18rpx;
border-radius: 18rpx;
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%;
}
.avatar-btn {
flex: 1;
min-width: 0;
max-width: none;
}
.avatar-remove {
flex: 0 0 auto;
}
.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%;
color: #2c2722;
font-size: 28rpx;
}
.modal-field input,
.readonly-field view {
min-height: 58rpx;
line-height: 58rpx;
}
.modal-field textarea {
min-height: 120rpx;
}
.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);
}
}