增量提交

This commit is contained in:
zqm
2026-04-21 13:46:20 +08:00
parent f64209cb04
commit 09eb6fb1bd
44 changed files with 4411 additions and 931 deletions

View File

@@ -29,6 +29,7 @@ Page({
onShow() {
this.loadUserData()
this.loadTaskStats()
// "我的"页面不在TabBar中无需设置选中态
},
// 加载用户数据

View File

@@ -1,3 +1 @@
{
"navigationBarTitleText": "个人中心"
}
{"navigationBarTitleText": "我的", "usingComponents": {"user-avatar": "/components/user-avatar/user-avatar"}}

View File

@@ -1,19 +1,19 @@
/* 用户中心页面样式 */
/* 用户中心页面 - 深色主题样式 */
.user-container {
display: flex;
flex-direction: column;
min-height: 100vh;
background-color: #f5f5f5;
background-color: #0d0d0d;
padding: 20rpx;
}
/* 用户信息卡片 */
.user-card {
background: white;
border-radius: 20rpx;
background: linear-gradient(145deg, #1e1e1e 0%, #1a1a1a 100%);
border-radius: 24rpx;
padding: 40rpx;
margin-bottom: 20rpx;
box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.1);
margin-bottom: 24rpx;
border: 2rpx solid rgba(255,255,255,0.06);
text-align: center;
}
@@ -33,21 +33,24 @@
display: block;
font-size: 36rpx;
font-weight: bold;
color: #333;
color: #ffffff;
margin-bottom: 10rpx;
}
.user-id {
display: block;
font-size: 24rpx;
color: #999;
color: #666666;
margin-bottom: 10rpx;
}
.status-text {
display: block;
font-size: 24rpx;
color: #07c160;
display: inline-block;
font-size: 22rpx;
background-color: rgba(82,196,26,0.15);
color: #52c41a;
padding: 4rpx 16rpx;
border-radius: 12rpx;
font-weight: 500;
}
@@ -56,7 +59,7 @@
display: flex;
justify-content: space-around;
padding-top: 30rpx;
border-top: 1rpx solid #f0f0f0;
border-top: 2rpx solid rgba(255,255,255,0.06);
}
.stat-item {
@@ -66,32 +69,34 @@
}
.stat-number {
font-size: 40rpx;
font-size: 44rpx;
font-weight: bold;
color: #07c160;
margin-bottom: 10rpx;
color: #1677FF;
margin-bottom: 8rpx;
}
.stat-label {
font-size: 24rpx;
color: #666;
color: #888888;
}
/* 菜单区域 */
.menu-section {
background: white;
border-radius: 20rpx;
margin-bottom: 20rpx;
box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.1);
background: linear-gradient(180deg, #1a1a1a 0%, #161616 100%);
border-radius: 24rpx;
margin-bottom: 24rpx;
overflow: hidden;
border: 2rpx solid rgba(255,255,255,0.06);
}
.menu-title {
font-size: 32rpx;
font-weight: bold;
color: #333;
padding: 30rpx 30rpx 20rpx;
border-bottom: 1rpx solid #f0f0f0;
font-size: 28rpx;
font-weight: 600;
color: #999999;
padding: 28rpx 32rpx 18rpx;
letter-spacing: 2rpx;
text-transform: uppercase;
font-size: 22rpx;
}
.menu-list {
@@ -101,9 +106,9 @@
.menu-item {
display: flex;
align-items: center;
padding: 30rpx;
border-bottom: 1rpx solid #f0f0f0;
transition: background-color 0.3s;
padding: 28rpx 32rpx;
border-bottom: 2rpx solid rgba(255,255,255,0.04);
transition: all 0.25s ease;
}
.menu-item:last-child {
@@ -111,45 +116,47 @@
}
.menu-item:active {
background-color: #f8f8f8;
background-color: rgba(22,119,255,0.08);
}
.menu-icon {
width: 40rpx;
height: 40rpx;
margin-right: 20rpx;
opacity: 0.7;
margin-right: 24rpx;
opacity: 0.65;
filter: brightness(0) invert(1) opacity(0.7);
}
.menu-text {
flex: 1;
font-size: 28rpx;
color: #333;
font-size: 29rpx;
color: #e5e5e5;
}
.menu-badge {
background: #dd524d;
background: linear-gradient(135deg, #ff4d4f, #cf1322);
color: white;
font-size: 20rpx;
padding: 4rpx 12rpx;
border-radius: 20rpx;
padding: 4rpx 14rpx;
border-radius: 16rpx;
margin-right: 20rpx;
min-width: 32rpx;
text-align: center;
font-weight: 600;
}
.menu-arrow {
font-size: 32rpx;
color: #999;
font-size: 34rpx;
color: #555555;
}
/* 系统信息 */
.system-info {
background: white;
border-radius: 20rpx;
padding: 30rpx;
margin-bottom: 20rpx;
box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.1);
background: linear-gradient(180deg, #1a1a1a 0%, #161616 100%);
border-radius: 24rpx;
padding: 30rpx 32rpx;
margin-bottom: 24rpx;
border: 2rpx solid rgba(255,255,255,0.06);
}
.info-item {
@@ -157,7 +164,7 @@
justify-content: space-between;
align-items: center;
padding: 20rpx 0;
border-bottom: 1rpx solid #f0f0f0;
border-bottom: 2rpx solid rgba(255,255,255,0.04);
}
.info-item:last-child {
@@ -165,13 +172,13 @@
}
.info-label {
font-size: 28rpx;
color: #666;
font-size: 27rpx;
color: #888888;
}
.info-value {
font-size: 28rpx;
color: #333;
font-size: 27rpx;
color: #cccccc;
font-weight: 500;
}
@@ -180,7 +187,7 @@
display: flex;
gap: 20rpx;
margin-top: auto;
padding-top: 40rpx;
padding-top: 30rpx;
}
.action-btn {
@@ -188,36 +195,41 @@
display: flex;
flex-direction: column;
align-items: center;
padding: 30rpx 20rpx;
justify-content: center;
padding: 28rpx 16rpx;
border: none;
border-radius: 20rpx;
font-size: 24rpx;
transition: all 0.3s ease;
min-height: 120rpx;
font-weight: 600;
}
.action-btn.primary {
background: linear-gradient(135deg, #07c160 0%, #06a050 100%);
background: linear-gradient(135deg, #1677FF 0%, #0958d9 100%);
color: white;
box-shadow: 0 6rpx 20rpx rgba(22,119,255,0.3);
}
.action-btn.secondary {
background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
color: white;
background: linear-gradient(135deg, #2f2f2f 0%, #262626 100%);
color: #aaaaaa;
border: 2rpx solid rgba(255,255,255,0.08);
}
.action-btn.danger {
background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
background: linear-gradient(135deg, #ff4d4f 0%, #cf1322 100%);
color: white;
box-shadow: 0 6rpx 20rpx rgba(255,77,79,0.3);
}
.action-btn:active {
transform: scale(0.98);
transform: scale(0.97);
opacity: 0.9;
}
.action-btn image {
width: 40rpx;
height: 40rpx;
width: 38rpx;
height: 38rpx;
margin-bottom: 10rpx;
filter: brightness(0) invert(1);
}
}