This commit is contained in:
zhaofang
2022-11-11 15:01:38 +08:00
parent be72392b7d
commit fd782ef6f0
2 changed files with 65 additions and 12 deletions

View File

@@ -1,7 +1,7 @@
<template>
<view class="my-medal">
<view class="medal-img">
<u-avatar v-if="userInfo.avatar && userInfo.avatar!=''" shape="circle" :size="76" :src="fileBaseUrl + userInfo.avatar" ></u-avatar>
<u-avatar style="margin: 0 auto;" v-if="userInfo.avatar && userInfo.avatar!=''" shape="circle" :size="76" :src="fileBaseUrl + userInfo.avatar" ></u-avatar>
<view v-else>
<view v-if="userInfo.sex == null" class="peo"></view>
<view v-else>
@@ -221,9 +221,9 @@
background-position: 14upx 26upx;
border-radius: 20upx 20upx 0px 0px;
backdrop-filter: blur(32px);
margin: 32upx;
margin-top: 70upx;
margin: 70upx 32upx 0 32upx;
height: 47vh;
max-height: 47vh;
padding: 60upx 24upx;
padding-bottom: 140upx;
.medal-title{
@@ -254,23 +254,27 @@
font-size: 20upx;
color: #fff;
bottom: 20upx;
left:36upx;
// left:36upx;
left:0;
right:0;
transform: scale(.7);
}
.img-level{
position: absolute;
font-size: 12upx;
color: #fff;
left:60upx;
// left:60upx;
top: 24upx;
left:0;
right:0;
transform: scale(.7);
}
}
.medal-list-index:last-child{
.medal-img-index .img-level{
left:50upx;
}
}
// .medal-list-index:last-child{
// .medal-img-index .img-level{
// left:50upx;
// }
// }
}