Commit 4158cdb2 authored by 张俊's avatar 张俊

头像样式修改

parent 8a81f945
......@@ -13,11 +13,10 @@
>{{ userInfo.user_name }}</span>
<span v-else @click="gotopage('login')" class="user">请登录</span>
<img
:class="userInfo.picture_path ? 'user_pic' : 'user_default'"
:src="
userInfo.picture_path || require('../assets/imgs/home_ic_user.png')
"
:class="userInfo.picture_path&&false ? 'user_pic' : 'user_default'"
src="../assets/imgs/home_ic_user.png"
/>
<!-- 菜单图片不需要动态渲染,只用ui给的图标 -->
<div v-if="userInfo.user_name && userInfo.user_name != ''" class="user_menu">
<div
v-for="(item, index) in user_arr"
......
......@@ -3,7 +3,7 @@
<div class="person_info">
<div class="preson">
<div class="person_text">
<img src="@/assets/imgs/img_head.png" alt />
<img style="width:40px;" :src="picture_path" alt />
<span>你好,{{ person }}{{login_time?'最近登录 ':''}}{{ login_time }}</span>
</div>
<div class="person_menu">
......@@ -357,6 +357,7 @@ export default {
helper: helper,
service_data: [],
app_data: [],
picture_path:'',
listTotal: 0,
currentPage: 1,
listTotal1: 0,
......@@ -1346,6 +1347,7 @@ export default {
this.$router.push("/fwzc/fwcs");
},
getUserData() {
this.picture_path = this.userInfo.picture_path;
this.person = this.userInfo.user_name;
this.login_time = decodeURIComponent(getCookie("lastLogin")).replace(
"+",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment