|
@@ -202,18 +202,18 @@ const goYBPCEN=()=>{
|
|
|
<div class="flex-col-center userinfo-wrap">
|
|
|
<img src="@/assets/icon-yben.png" class="yben-icon" @click="goYBPCEN" v-if="!isInMini"/>
|
|
|
<!-- 我的收藏 -->
|
|
|
- <el-popover trigger="click" @show="showCollect=true" @hide="showCollect=false" :width="460" popper-style="box-shadow: rgb(14 18 22 / 35%) 0px 10px 38px -10px, rgb(14 18 22 / 20%) 0px 10px 20px -15px; padding: 20px;">
|
|
|
+ <el-popover v-if="userInfo" trigger="click" @show="showCollect=true" @hide="showCollect=false" :width="460" popper-style="box-shadow: rgb(14 18 22 / 35%) 0px 10px 38px -10px, rgb(14 18 22 / 20%) 0px 10px 20px -15px; padding: 20px;">
|
|
|
<template #reference>
|
|
|
- <img v-if="userInfo" style="width:26px;height:25px;margin-right:21px;position: relative;top:-2px" src="@/assets/icon-start.png" alt="">
|
|
|
+ <img style="width:26px;height:25px;margin-right:21px;position: relative;top:-2px" src="@/assets/icon-start.png" alt="">
|
|
|
</template>
|
|
|
<template #default>
|
|
|
<MyCollect :show="showCollect"/>
|
|
|
</template>
|
|
|
</el-popover>
|
|
|
<!-- 消息 -->
|
|
|
- <el-popover trigger="click" :width="439" popper-style="box-shadow: rgb(14 18 22 / 35%) 0px 10px 38px -10px, rgb(14 18 22 / 20%) 0px 10px 20px -15px; padding: 20px;">
|
|
|
+ <el-popover v-if="userInfo" trigger="click" :width="439" popper-style="box-shadow: rgb(14 18 22 / 35%) 0px 10px 38px -10px, rgb(14 18 22 / 20%) 0px 10px 20px -15px; padding: 20px;">
|
|
|
<template #reference>
|
|
|
- <el-badge v-if="userInfo" :value="$store.state.userInfo.un_read" :hidden="$store.state.userInfo.un_read==0">
|
|
|
+ <el-badge :value="$store.state.userInfo.un_read" :hidden="$store.state.userInfo.un_read==0">
|
|
|
<img style="width:28px;height:28px" src="@/assets/icon-notice.png" alt="">
|
|
|
</el-badge>
|
|
|
</template>
|
|
@@ -240,12 +240,12 @@ const goYBPCEN=()=>{
|
|
|
</template>
|
|
|
</el-popover>
|
|
|
<!-- 个人信息 -->
|
|
|
- <el-popover :width="400" popper-style="box-shadow: rgb(14 18 22 / 35%) 0px 10px 38px -10px, rgb(14 18 22 / 20%) 0px 10px 20px -15px; padding: 20px;">
|
|
|
+ <el-popover v-if="userInfo" :width="400" popper-style="box-shadow: rgb(14 18 22 / 35%) 0px 10px 38px -10px, rgb(14 18 22 / 20%) 0px 10px 20px -15px; padding: 20px;">
|
|
|
<template #reference>
|
|
|
- <el-avatar shape="square" :size="40" v-if="userInfo" :src="$store.state.userInfo.head_img_url||$store.state.globalImgUrls.defaultAvatar"></el-avatar>
|
|
|
+ <el-avatar shape="square" :size="40" :src="$store.state.userInfo.head_img_url||$store.state.globalImgUrls.defaultAvatar"></el-avatar>
|
|
|
</template>
|
|
|
<template #default>
|
|
|
- <div class="userinfo-box" v-if="userInfo">
|
|
|
+ <div class="userinfo-box">
|
|
|
<div class="top" @click="handleSetUserInfo">
|
|
|
<el-avatar shape="square" :size="50" :src="$store.state.userInfo.head_img_url||$store.state.globalImgUrls.defaultAvatar"></el-avatar>
|
|
|
<p style="font-size: 20px">{{ userInfo.real_name || "--" }}</p>
|