|
@@ -5,11 +5,11 @@
|
|
|
<el-avatar
|
|
<el-avatar
|
|
|
class="avatar"
|
|
class="avatar"
|
|
|
:size="54"
|
|
:size="54"
|
|
|
- src="https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png"
|
|
|
|
|
|
|
+ :src="userInfo?.icon"
|
|
|
/>
|
|
/>
|
|
|
<div class="user-info">
|
|
<div class="user-info">
|
|
|
<div class="user-name">
|
|
<div class="user-name">
|
|
|
- <span>听妈妈的话</span>
|
|
|
|
|
|
|
+ <span>{{ userInfo?.nickname || userInfo?.name }}</span>
|
|
|
<span class="score" v-if="curRole !== 0">5.0分</span>
|
|
<span class="score" v-if="curRole !== 0">5.0分</span>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="user-day">这是您使用飞鸟有味的第15天</div>
|
|
<div class="user-day">这是您使用飞鸟有味的第15天</div>
|
|
@@ -63,6 +63,8 @@ const router = useRouter();
|
|
|
// 0: 农户, 1: 专家, 2:农资农服
|
|
// 0: 农户, 1: 专家, 2:农资农服
|
|
|
const curRole = ref(Number(localStorage.getItem("SET_USER_CUR_ROLE")));
|
|
const curRole = ref(Number(localStorage.getItem("SET_USER_CUR_ROLE")));
|
|
|
const roles = ref(JSON.parse(store.state.app.roles));
|
|
const roles = ref(JSON.parse(store.state.app.roles));
|
|
|
|
|
+const userInfo = JSON.parse(localStorage.getItem("localUserInfo") || "{}");
|
|
|
|
|
+
|
|
|
// const roles = ref([0,1,2,3])
|
|
// const roles = ref([0,1,2,3])
|
|
|
const actions = ref([]);
|
|
const actions = ref([]);
|
|
|
const userObj = ref({})
|
|
const userObj = ref({})
|