This commit is contained in:
zhaofang
2022-09-30 14:15:51 +08:00
parent 636b282be8
commit 36854b62f3
3 changed files with 17 additions and 13 deletions

View File

@@ -1,9 +1,9 @@
<template>
<div class="item-author">
<div style="width:40px;height:40px;" @click="toHome()">
<div :style="`width:${width};height:${height};`" @click="toHome()">
<el-avatar shape="circle" :src="userAvatar" v-if="userAvatar"></el-avatar>
<div v-else class="uavatar">
<div v-if="sex == null" style="border-radius: 50%;width: 40px;height: 40px;"></div>
<div v-if="sex == null" style="border-radius: 50%;" :style="`width:${width};height:${height};`"></div>
<div v-else>
<div v-if="sex === 1 "><img src="../../../public/images/Avatarman.png" alt=""></div>
<div v-else><img src="../../../public/images/Avatarwoman.png" alt=""></div>
@@ -90,8 +90,8 @@
}
.uavatar{
// border: 1px solid #73adfe;
// width: 28px;
// height: 28px;
width: 100%;
height: 100%;
// background: #d9e9ff;
display: flex;
justify-content: center;
@@ -103,8 +103,8 @@
}
img{
border-radius: 50%;
width: 28px;
height: 28px;
width: 100%;
height: 100%;
}
}
}