You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
317 lines
5.1 KiB
317 lines
5.1 KiB
.profile-container {
|
|
min-height: 100vh;
|
|
background-color: #f7f7f7;
|
|
padding-bottom: 40rpx;
|
|
}
|
|
|
|
/* 用户信息区域 */
|
|
.user-info {
|
|
position: relative;
|
|
height: 300rpx;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.user-info-bg {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: #3A86FF;
|
|
z-index: 1;
|
|
}
|
|
|
|
.user-info-content {
|
|
position: relative;
|
|
display: flex;
|
|
align-items: center;
|
|
padding: 40rpx 30rpx;
|
|
z-index: 2;
|
|
}
|
|
|
|
.avatar {
|
|
width: 120rpx;
|
|
height: 120rpx;
|
|
border-radius: 50%;
|
|
border: 4rpx solid #ffffff;
|
|
margin-right: 30rpx;
|
|
}
|
|
|
|
.user-details {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.nickname {
|
|
color: #ffffff;
|
|
font-size: 36rpx;
|
|
font-weight: bold;
|
|
margin-bottom: 10rpx;
|
|
}
|
|
|
|
.school {
|
|
color: rgba(255, 255, 255, 0.8);
|
|
font-size: 24rpx;
|
|
}
|
|
|
|
.login-btn {
|
|
background-color: rgba(255, 255, 255, 0.2);
|
|
color: #ffffff;
|
|
font-size: 28rpx;
|
|
padding: 12rpx 40rpx;
|
|
border-radius: 32rpx;
|
|
border: 1rpx solid rgba(255, 255, 255, 0.5);
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.login-btn::after {
|
|
border: none;
|
|
}
|
|
|
|
/* 钱包卡片 */
|
|
.wallet-card {
|
|
display: flex;
|
|
justify-content: space-around;
|
|
align-items: center;
|
|
margin: -50rpx 30rpx 30rpx;
|
|
padding: 30rpx 0;
|
|
background-color: #ffffff;
|
|
border-radius: 12rpx;
|
|
box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
|
|
position: relative;
|
|
z-index: 3;
|
|
}
|
|
|
|
.wallet-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
flex: 1;
|
|
}
|
|
|
|
.wallet-value {
|
|
font-size: 36rpx;
|
|
color: #333333;
|
|
font-weight: bold;
|
|
margin-bottom: 8rpx;
|
|
}
|
|
|
|
.wallet-label {
|
|
font-size: 24rpx;
|
|
color: #999999;
|
|
}
|
|
|
|
.wallet-divider {
|
|
width: 1rpx;
|
|
height: 50rpx;
|
|
background-color: #eeeeee;
|
|
}
|
|
|
|
/* 功能区块 */
|
|
.section-card {
|
|
margin: 0 30rpx 30rpx;
|
|
padding: 30rpx;
|
|
background-color: #ffffff;
|
|
border-radius: 12rpx;
|
|
box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
.section-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 30rpx;
|
|
}
|
|
|
|
.section-title {
|
|
font-size: 32rpx;
|
|
color: #333333;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.section-more {
|
|
display: flex;
|
|
align-items: center;
|
|
font-size: 24rpx;
|
|
color: #999999;
|
|
}
|
|
|
|
.arrow-icon {
|
|
width: 24rpx;
|
|
height: 24rpx;
|
|
margin-left: 6rpx;
|
|
}
|
|
|
|
/* 订单类型 */
|
|
.order-types {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.order-type-item {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
position: relative;
|
|
}
|
|
|
|
.order-type-icon {
|
|
width: 60rpx;
|
|
height: 60rpx;
|
|
margin-bottom: 12rpx;
|
|
}
|
|
|
|
.order-type-item text {
|
|
font-size: 24rpx;
|
|
color: #666666;
|
|
}
|
|
|
|
.badge {
|
|
position: absolute;
|
|
top: -10rpx;
|
|
right: -10rpx;
|
|
background-color: #FF5252;
|
|
color: #ffffff;
|
|
font-size: 20rpx;
|
|
border-radius: 20rpx;
|
|
padding: 2rpx 10rpx;
|
|
min-width: 32rpx;
|
|
text-align: center;
|
|
}
|
|
|
|
/* 服务列表 */
|
|
.service-list {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.service-item {
|
|
width: 33.33%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
margin-bottom: 30rpx;
|
|
}
|
|
|
|
.service-icon {
|
|
width: 60rpx;
|
|
height: 60rpx;
|
|
margin-bottom: 12rpx;
|
|
}
|
|
|
|
.service-item text {
|
|
font-size: 24rpx;
|
|
color: #666666;
|
|
}
|
|
|
|
/* 客服按钮 */
|
|
.customer-service {
|
|
width: 90%;
|
|
height: 88rpx;
|
|
line-height: 88rpx;
|
|
font-size: 30rpx;
|
|
color: #666666;
|
|
background-color: #ffffff;
|
|
border-radius: 44rpx;
|
|
margin-top: 30rpx;
|
|
box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.05);
|
|
}
|
|
/* 新增选择昵称和头像功能 */
|
|
/* 遮罩层 */
|
|
.edit-dialog-mask {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background-color: rgba(0, 0, 0, 0.5); /* 半透明黑色遮罩 */
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
z-index: 9999;
|
|
}
|
|
|
|
/* 弹窗主体 */
|
|
.edit-dialog {
|
|
width: 85%;
|
|
max-width: 400rpx;
|
|
background-color: #fff;
|
|
border-radius: 20rpx;
|
|
padding: 30rpx 30rpx 40rpx 30rpx;
|
|
box-shadow: 0 8rpx 20rpx rgba(0, 0, 0, 0.15);
|
|
text-align: center;
|
|
}
|
|
|
|
/* 标题 */
|
|
.dialog-title {
|
|
font-size: 32rpx;
|
|
font-weight: 600;
|
|
color: #333;
|
|
margin-bottom: 25rpx;
|
|
}
|
|
|
|
/* 头像图片 */
|
|
.edit-avatar {
|
|
width: 120rpx;
|
|
height: 120rpx;
|
|
border-radius: 60rpx;
|
|
margin: 0 auto 20rpx auto;
|
|
object-fit: cover;
|
|
border: 2rpx solid #1AAD19; /* 微信绿边框 */
|
|
}
|
|
|
|
/* 更换头像按钮 */
|
|
button[open-type="chooseAvatar"] {
|
|
display: inline-block;
|
|
background-color: #1AAD19;
|
|
color: #fff;
|
|
font-size: 28rpx;
|
|
padding: 10rpx 25rpx;
|
|
border-radius: 40rpx;
|
|
margin-bottom: 25rpx;
|
|
border: none;
|
|
}
|
|
|
|
/* 昵称输入框 */
|
|
.edit-nickname-input {
|
|
width: 100%;
|
|
height: 50rpx;
|
|
line-height: 50rpx;
|
|
font-size: 28rpx;
|
|
padding: 0 15rpx;
|
|
border: 1rpx solid #ddd;
|
|
border-radius: 10rpx;
|
|
box-sizing: border-box;
|
|
margin-bottom: 30rpx;
|
|
color: #333;
|
|
}
|
|
|
|
/* 底部按钮容器 */
|
|
.dialog-btns {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 20rpx;
|
|
}
|
|
|
|
/* 取消按钮 */
|
|
.dialog-btns button:first-child {
|
|
flex: 1;
|
|
background-color: #f5f5f5;
|
|
color: #666;
|
|
font-size: 28rpx;
|
|
padding: 12rpx 0;
|
|
border-radius: 12rpx;
|
|
border: none;
|
|
}
|
|
|
|
/* 确认按钮 */
|
|
.dialog-btns button:last-child {
|
|
flex: 1;
|
|
background-color: #1AAD19;
|
|
color: white;
|
|
font-size: 28rpx;
|
|
padding: 12rpx 0;
|
|
border-radius: 12rpx;
|
|
border: none;
|
|
}
|