优化头像

This commit is contained in:
duan
2024-05-27 14:05:26 +08:00
parent 2ea1f162b0
commit d67ab4d9b6

View File

@@ -10,7 +10,7 @@
</button> -->
<!-- <image class="onecontentboximage" :src="userHeadImg" mode="" @click="uploadImg"></image> -->
<button type="default" class="btn" open-type="chooseAvatar" @chooseavatar="uploadImg">
<view class="" :style="'background-image:url('+userHeadImg+');'" style="width: 180rxp;height: 180rpx;"></view>
<view class="" :style="'background-image:url('+userHeadImg+');'" style="width: 180rxp;height: 180rpx; background-position: center;"></view>
</button>
@@ -218,8 +218,8 @@
}
}
.btn{
width: 200rpx;
height: 200rpx;
width: 180rpx;
height: 180rpx;
border-radius: 100%;
padding: 0;
>view{