yingsa/miniprogram/pages/user/index.wxss
2026-01-20 08:50:50 +08:00

213 lines
3.1 KiB
Plaintext

/* 用户卡片 */
.user-card {
background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
border-radius: 20rpx;
padding: 40rpx;
margin-bottom: 20rpx;
color: #fff;
}
.user-header {
display: flex;
align-items: center;
margin-bottom: 30rpx;
}
.user-header .avatar-large {
width: 120rpx;
height: 120rpx;
border-radius: 50%;
border: 4rpx solid rgba(255, 255, 255, 0.3);
margin-right: 24rpx;
}
.user-meta {
flex: 1;
}
.user-meta .nickname {
font-size: 36rpx;
font-weight: 600;
display: block;
margin-bottom: 8rpx;
}
.member-code {
display: flex;
align-items: center;
font-size: 24rpx;
opacity: 0.9;
}
.member-code image {
width: 32rpx;
height: 32rpx;
margin-left: 8rpx;
}
.points-display {
text-align: center;
padding: 30rpx;
background: rgba(255, 255, 255, 0.15);
border-radius: 16rpx;
}
.points-value {
font-size: 56rpx;
font-weight: 700;
}
.points-label {
font-size: 24rpx;
opacity: 0.8;
margin-top: 8rpx;
}
/* 天梯卡片 */
.ladder-card {
background: #fff;
border-radius: 20rpx;
padding: 30rpx;
margin-bottom: 20rpx;
}
.card-title {
font-size: 28rpx;
font-weight: 500;
margin-bottom: 24rpx;
padding-bottom: 16rpx;
border-bottom: 1rpx solid var(--border-color);
}
.ladder-info {
display: flex;
justify-content: space-around;
}
.info-item {
display: flex;
flex-direction: column;
align-items: center;
}
.info-item .value {
font-size: 32rpx;
font-weight: 600;
margin-bottom: 8rpx;
}
.info-item .value.highlight {
color: var(--primary-color);
}
.info-item .label {
font-size: 22rpx;
color: var(--text-secondary);
}
/* 提示卡片 */
.notice-card {
display: flex;
align-items: center;
background: #FFF9E6;
border-radius: 16rpx;
padding: 24rpx;
margin-bottom: 20rpx;
}
.notice-card image {
width: 40rpx;
height: 40rpx;
margin-right: 16rpx;
}
.notice-card text {
font-size: 26rpx;
color: #B7791F;
flex: 1;
}
/* 菜单列表 */
.menu-list {
background: #fff;
border-radius: 20rpx;
overflow: hidden;
}
.menu-item {
display: flex;
align-items: center;
padding: 30rpx;
border-bottom: 1rpx solid var(--border-color);
}
.menu-item:last-child {
border-bottom: none;
}
.menu-item image:first-child {
width: 44rpx;
height: 44rpx;
margin-right: 20rpx;
}
.menu-item text {
flex: 1;
font-size: 28rpx;
}
.menu-item .arrow {
width: 32rpx;
height: 32rpx;
opacity: 0.4;
}
/* 二维码弹窗 */
.qrcode-modal {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.6);
display: flex;
align-items: center;
justify-content: center;
z-index: 999;
}
.modal-content {
background: #fff;
border-radius: 20rpx;
padding: 40rpx;
text-align: center;
width: 80%;
max-width: 600rpx;
}
.modal-title {
font-size: 32rpx;
font-weight: 600;
margin-bottom: 30rpx;
}
.qrcode-canvas {
width: 400rpx;
height: 400rpx;
margin: 0 auto 20rpx;
}
.qrcode-text {
display: block;
font-size: 32rpx;
font-weight: 600;
color: var(--primary-color);
margin-bottom: 16rpx;
}
.qrcode-tip {
display: block;
font-size: 24rpx;
color: var(--text-secondary);
}