个人中心静态界面1.0

This commit is contained in:
minimaxagent1 2025-08-13 17:34:14 +08:00
parent d92525b2f6
commit 93348e9d89

View File

@ -4,10 +4,10 @@
<!-- 头部用户信息 -->
<view class="user-header">
<view class="avatar">
<text class="avatar-text"></text>
</view>
<view class="user-info">
<view class="avatar">
<text class="avatar-text"></text>
</view>
<view class="share-btn">
<image :src="commonEnum.GIFT" class="share-img" mode="aspectFit"></image>
<text class="share-text">分享推广</text>
@ -175,34 +175,39 @@ export default {
//
.user-header {
padding: 40rpx;
padding: 40rpx 40rpx 40rpx 40rpx;
margin: 270rpx 20rpx 20rpx 20rpx;
border-radius: 20rpx;
position: relative;
background: #ffffff;
.avatar {
position: absolute;
top: -80rpx; //
left: 40rpx;
width: 160rpx;
height: 160rpx;
background: #817f7f;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
z-index: 10; //
.avatar-text {
font-size: 60rpx;
font-weight: bold;
color: #ffffff;
}
}
.user-info {
display: flex;
align-items: center;
justify-content: space-between;
justify-content: flex-end; //
margin-bottom: 30rpx;
.avatar {
width: 160rpx;
height: 160rpx;
background: #817f7f;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
.avatar-text {
font-size: 60rpx;
font-weight: bold;
color: #ffffff;
}
}
.share-btn {
background: linear-gradient(135deg, #fffcfa 0, #ffe0c7 100%);
padding: 20rpx 30rpx;
@ -225,8 +230,8 @@ export default {
.user-details {
display: flex;
padding-left: 20rpx;
justify-content: space-between;
align-items: flex-start;
.user-name {
display: block;
@ -245,6 +250,7 @@ export default {
background: rgba(255, 255, 255, 0.2);
border-radius: 50%;
display: flex;
padding: 10rpx;
.settings-img {
width: 40rpx;