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

头像样式修改

parent 8a81f945
...@@ -13,11 +13,10 @@ ...@@ -13,11 +13,10 @@
>{{ userInfo.user_name }}</span> >{{ userInfo.user_name }}</span>
<span v-else @click="gotopage('login')" class="user">请登录</span> <span v-else @click="gotopage('login')" class="user">请登录</span>
<img <img
:class="userInfo.picture_path ? 'user_pic' : 'user_default'" :class="userInfo.picture_path&&false ? 'user_pic' : 'user_default'"
:src=" src="../assets/imgs/home_ic_user.png"
userInfo.picture_path || require('../assets/imgs/home_ic_user.png')
"
/> />
<!-- 菜单图片不需要动态渲染,只用ui给的图标 -->
<div v-if="userInfo.user_name && userInfo.user_name != ''" class="user_menu"> <div v-if="userInfo.user_name && userInfo.user_name != ''" class="user_menu">
<div <div
v-for="(item, index) in user_arr" v-for="(item, index) in user_arr"
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div class="person_info"> <div class="person_info">
<div class="preson"> <div class="preson">
<div class="person_text"> <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> <span>你好,{{ person }}{{login_time?'最近登录 ':''}}{{ login_time }}</span>
</div> </div>
<div class="person_menu"> <div class="person_menu">
...@@ -357,6 +357,7 @@ export default { ...@@ -357,6 +357,7 @@ export default {
helper: helper, helper: helper,
service_data: [], service_data: [],
app_data: [], app_data: [],
picture_path:'',
listTotal: 0, listTotal: 0,
currentPage: 1, currentPage: 1,
listTotal1: 0, listTotal1: 0,
...@@ -1346,6 +1347,7 @@ export default { ...@@ -1346,6 +1347,7 @@ export default {
this.$router.push("/fwzc/fwcs"); this.$router.push("/fwzc/fwcs");
}, },
getUserData() { getUserData() {
this.picture_path = this.userInfo.picture_path;
this.person = this.userInfo.user_name; this.person = this.userInfo.user_name;
this.login_time = decodeURIComponent(getCookie("lastLogin")).replace( 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