feat: add user profile page and improve UI styling
This commit is contained in:
@ -1,10 +1,16 @@
|
||||
/* 个人资料页面专用样式 */
|
||||
/* 个人资料页面专用样式 - 小米风格 */
|
||||
|
||||
/* 页面整体样式 */
|
||||
#profile-page {
|
||||
background-color: #f5f5f5;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
/* 个人资料页面 */
|
||||
.profile-header {
|
||||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||||
padding: 30px 20px;
|
||||
color: #fff;
|
||||
background: #f5f5f5;
|
||||
padding: 20px 16px 16px;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.profile-info {
|
||||
@ -72,39 +78,49 @@
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* 功能卡片 */
|
||||
/* 功能卡片 - 小米风格 */
|
||||
.feature-cards {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
gap: 20px;
|
||||
padding: 20px;
|
||||
gap: 16px;
|
||||
padding: 16px;
|
||||
background: white;
|
||||
margin-bottom: 10px;
|
||||
margin: 0 16px 12px;
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 2px 8px rgba(0,0,0,0.06);
|
||||
}
|
||||
|
||||
.feature-card {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
gap: 6px;
|
||||
cursor: pointer;
|
||||
padding: 8px 4px;
|
||||
border-radius: 8px;
|
||||
transition: background-color 0.2s;
|
||||
}
|
||||
|
||||
.feature-card:active {
|
||||
background-color: #f8f8f8;
|
||||
}
|
||||
|
||||
.feature-icon {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
border-radius: 12px;
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
border-radius: 10px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: white;
|
||||
font-size: 20px;
|
||||
font-size: 18px;
|
||||
}
|
||||
|
||||
.feature-card span {
|
||||
font-size: 12px;
|
||||
font-size: 11px;
|
||||
color: #666;
|
||||
text-align: center;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
/* 摄像头推广 */
|
||||
@ -144,19 +160,20 @@
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
/* 推广横幅 */
|
||||
/* 推广横幅 - 小米风格 */
|
||||
.promotion-banner {
|
||||
background: linear-gradient(135deg, #e3f2fd, #bbdefb);
|
||||
margin: 0 20px 20px 20px;
|
||||
background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
|
||||
margin: 0 16px 12px;
|
||||
border-radius: 12px;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 4px 16px rgba(0,0,0,0.15);
|
||||
}
|
||||
|
||||
.promotion-content {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 20px;
|
||||
gap: 20px;
|
||||
padding: 16px;
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.promotion-text {
|
||||
@ -164,76 +181,79 @@
|
||||
}
|
||||
|
||||
.promotion-text h3 {
|
||||
margin: 0 0 5px 0;
|
||||
font-size: 14px;
|
||||
color: #1976d2;
|
||||
font-weight: 500;
|
||||
margin: 0 0 4px 0;
|
||||
font-size: 13px;
|
||||
color: #ff6900;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.promotion-text h4 {
|
||||
margin: 0 0 10px 0;
|
||||
font-size: 18px;
|
||||
color: #333;
|
||||
margin: 0 0 8px 0;
|
||||
font-size: 16px;
|
||||
color: white;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.promotion-tag {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
gap: 4px;
|
||||
}
|
||||
|
||||
.promotion-tag span {
|
||||
background: #ff5722;
|
||||
background: #ff6900;
|
||||
color: white;
|
||||
padding: 4px 8px;
|
||||
border-radius: 4px;
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
padding: 3px 6px;
|
||||
border-radius: 3px;
|
||||
font-size: 11px;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.tag-number {
|
||||
background: #333 !important;
|
||||
background: rgba(255,255,255,0.2) !important;
|
||||
color: white !important;
|
||||
}
|
||||
|
||||
.promotion-image {
|
||||
width: 80px;
|
||||
height: 60px;
|
||||
width: 70px;
|
||||
height: 50px;
|
||||
}
|
||||
|
||||
.promotion-image img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
border-radius: 8px;
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
/* 菜单列表 */
|
||||
/* 菜单列表 - 小米风格 */
|
||||
.menu-list {
|
||||
background-color: #fff;
|
||||
border-radius: 12px;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 2px 8px rgba(0,0,0,0.06);
|
||||
}
|
||||
|
||||
.menu-section {
|
||||
background: white;
|
||||
margin: 0 20px;
|
||||
margin: 0 16px;
|
||||
border-radius: 12px;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 2px 8px rgba(0,0,0,0.06);
|
||||
}
|
||||
|
||||
.menu-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 15px;
|
||||
padding: 16px 20px;
|
||||
border-bottom: 1px solid #f0f0f0;
|
||||
gap: 12px;
|
||||
padding: 14px 16px;
|
||||
border-bottom: 1px solid #f5f5f5;
|
||||
cursor: pointer;
|
||||
min-height: 64px;
|
||||
min-height: 56px;
|
||||
transition: background-color 0.2s;
|
||||
}
|
||||
|
||||
.menu-item:hover {
|
||||
.menu-item:active {
|
||||
background-color: #f8f8f8;
|
||||
}
|
||||
|
||||
@ -242,14 +262,14 @@
|
||||
}
|
||||
|
||||
.menu-icon {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
border-radius: 6px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: white;
|
||||
font-size: 14px;
|
||||
font-size: 13px;
|
||||
flex-shrink: 0;
|
||||
margin: 0;
|
||||
position: relative;
|
||||
@ -269,23 +289,23 @@
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
gap: 2px;
|
||||
gap: 1px;
|
||||
}
|
||||
|
||||
.menu-title {
|
||||
font-size: 15px;
|
||||
font-size: 14px;
|
||||
color: #333;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.menu-status {
|
||||
font-size: 12px;
|
||||
color: #666;
|
||||
font-size: 11px;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.menu-item > i {
|
||||
color: #ccc;
|
||||
font-size: 12px;
|
||||
color: #ddd;
|
||||
font-size: 11px;
|
||||
flex-shrink: 0;
|
||||
align-self: center;
|
||||
}
|
||||
@ -319,19 +339,25 @@
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
background: white;
|
||||
padding: 16px;
|
||||
border-radius: 12px;
|
||||
margin-bottom: 12px;
|
||||
box-shadow: 0 2px 8px rgba(0,0,0,0.06);
|
||||
}
|
||||
|
||||
.user-info {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 15px;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.user-avatar {
|
||||
width: 60px;
|
||||
height: 60px;
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
border-radius: 50%;
|
||||
overflow: hidden;
|
||||
background: linear-gradient(135deg, #4A90E2, #357ABD);
|
||||
}
|
||||
|
||||
.user-avatar img {
|
||||
@ -341,27 +367,34 @@
|
||||
}
|
||||
|
||||
.user-details h2 {
|
||||
margin: 0 0 5px 0;
|
||||
font-size: 20px;
|
||||
margin: 0 0 4px 0;
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.user-details p {
|
||||
margin: 0;
|
||||
font-size: 14px;
|
||||
color: #666;
|
||||
font-size: 13px;
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.header-actions {
|
||||
display: flex;
|
||||
gap: 15px;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.header-actions i {
|
||||
font-size: 20px;
|
||||
color: #666;
|
||||
font-size: 18px;
|
||||
color: #999;
|
||||
cursor: pointer;
|
||||
padding: 8px;
|
||||
border-radius: 6px;
|
||||
transition: background-color 0.2s;
|
||||
}
|
||||
|
||||
.header-actions i:active {
|
||||
background-color: #f0f0f0;
|
||||
}
|
||||
|
||||
/* 订单操作 */
|
||||
|
||||
Reference in New Issue
Block a user