Files
miniprogram-1/miniprogram/pages/profile/profile.wxss
2025-11-25 19:46:31 +08:00

363 lines
5.7 KiB
Plaintext
Executable File

/* profile.wxss - 个人中心页面样式(扁平化设计 */
.profile-container {
min-height: 100vh;
background-color: #f5f5f5;
}
/* 主要内容 */
.main-content {
height: 100vh;
}
/* 用户信息卡片 */
.user-info-section {
padding: 32rpx;
/* 确保可见 */
display: block;
opacity: 1;
}
.user-card {
background: #ffffff;
padding: 40rpx;
border-radius: 16rpx;
box-shadow: 0 2rpx 16rpx rgba(0, 0, 0, 0.05);
/* 确保可见 */
display: block;
opacity: 1;
min-height: 100rpx;
}
.user-details {
text-align: center;
}
.user-name {
font-size: 36rpx;
font-weight: 600;
color: #333333;
margin-bottom: 12rpx;
display: block;
}
.user-status {
font-size: 28rpx;
color: #666666;
display: block;
}
/* 统计信息 */
.stats-section {
padding: 0 32rpx 32rpx;
}
.stats-card {
background: #ffffff;
padding: 32rpx;
border-radius: 16rpx;
box-shadow: 0 2rpx 16rpx rgba(0, 0, 0, 0.05);
}
.section-title {
font-size: 32rpx;
font-weight: 600;
color: #333333;
margin-bottom: 24rpx;
display: block;
}
.stats-grid {
display: flex;
justify-content: space-around;
}
.stat-item {
text-align: center;
}
.stat-number {
font-size: 48rpx;
font-weight: 700;
color: #007AFF;
margin-bottom: 8rpx;
display: block;
}
.stat-label {
font-size: 24rpx;
color: #666666;
display: block;
}
/* 设置选项 */
.settings-section {
padding: 0 32rpx 32rpx;
}
.t-cell--bordered {
--td-cell-border-right-space: 28rpx;
--td-cell-border-left-space: 28rpx;
}
.settings-card {
background: #ffffff;
border-radius: 44rpx;
overflow: hidden;
box-shadow: 0 2rpx 16rpx rgba(0, 0, 0, 0.05);
--td-spacer-4: 28rpx;
}
.section-title {
padding: 24rpx 64rpx 16rpx;
margin-bottom: 0;
color: #b3b3b3;
}
.setting-item {
display: flex;
align-items: center;
justify-content: space-between;
padding: 24rpx 32rpx;
border-bottom: 1rpx solid #f0f0f0;
}
.setting-item:last-child {
border-bottom: none;
}
.setting-info {
flex: 1;
}
.setting-name {
font-size: 30rpx;
font-weight: 500;
color: #333333;
margin-bottom: 8rpx;
display: block;
}
.setting-desc {
font-size: 24rpx;
color: #666666;
display: block;
}
.setting-switch {
transform: scale(0.8);
}
/* 设置按钮样式 */
.setting-button {
background: none;
border: none;
padding: 16rpx 24rpx;
border-radius: 8rpx;
display: flex;
align-items: center;
justify-content: center;
}
.setting-button:active {
background-color: #f0f0f0;
}
.button-text {
font-size: 28rpx;
color: #007AFF;
margin-right: 8rpx;
}
.button-arrow {
font-size: 24rpx;
color: #cccccc;
}
/* 功能选项 */
.functions-section {
padding: 0 32rpx 32rpx;
}
.functions-card {
background: #ffffff;
border-radius: 16rpx;
overflow: hidden;
box-shadow: 0 2rpx 16rpx rgba(0, 0, 0, 0.05);
}
.functions-card .section-title {
padding: 32rpx 32rpx 16rpx;
margin-bottom: 0;
}
.function-list {
display: flex;
flex-direction: column;
}
.function-item {
display: flex;
align-items: center;
justify-content: space-between;
padding: 24rpx 32rpx;
background: none;
border: none;
border-bottom: 1rpx solid #f0f0f0;
text-align: left;
}
.function-item:last-child {
border-bottom: none;
}
.function-item:active {
background-color: #f8f8f8;
}
.function-info {
flex: 1;
}
.function-name {
font-size: 30rpx;
font-weight: 500;
color: #333333;
margin-bottom: 8rpx;
display: block;
}
.function-desc {
font-size: 24rpx;
color: #666666;
display: block;
}
.function-arrow {
font-size: 28rpx;
color: #cccccc;
margin-left: 16rpx;
}
/* 退出登录 */
.logout-section {
padding: 0 32rpx 32rpx;
}
.logout-btn {
width: 100%;
background-color: #ff4757;
color: #ffffff;
border: none;
padding: 28rpx;
border-radius: 16rpx;
font-size: 32rpx;
font-weight: 600;
}
.logout-btn:active {
background-color: #ff3742;
}
.logout-text {
color: #ffffff;
}
/* 调试信息 */
.debug-info {
margin-top: 16rpx;
padding: 16rpx;
background-color: #f0f0f0;
border-radius: 8rpx;
font-size: 24rpx;
color: #666666;
word-break: break-all;
}
/* 版本信息 */
.version-section {
text-align: center;
padding: 20rpx 32rpx 80rpx; /* 增加底部间距 */
}
.version-text {
font-size: 24rpx;
color: #999999;
}
/* Avatar Styles */
.avatar-section {
display: flex;
justify-content: center;
padding: 40rpx 0;
}
.avatar-container {
position: relative;
width: 200rpx;
height: 200rpx;
border-radius: 50%;
border: 8rpx solid #ffffff;
box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.1);
}
.avatar-image {
width: 100%;
height: 100%;
border-radius: 50%;
display: block;
}
.avatar-placeholder {
width: 100%;
height: 100%;
border-radius: 50%;
background-color: #fef6e4;
position: relative;
display: flex;
align-items: center;
justify-content: center;
}
.avatar-svg {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 100rpx;
height: 100rpx;
z-index: 1;
}
.avatar-text {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 36rpx;
color: #999999;
}
.coupon-input {
padding: 20rpx;
font-size: 28rpx;
text-align: center;
border: 1rpx solid #e0e0e0;
border-radius: 8rpx;
margin: 20rpx;
}
/* Navigation cell styles */
.cell-navigator {
display: block;
text-decoration: none;
}
.cell-navigator .t-cell {
background: #ffffff;
}
.cell-navigator::after {
border: none;
}