4 changed files with 102 additions and 3 deletions
@ -0,0 +1,94 @@ |
|||||
|
<!-- |
||||
|
@ 作者: 秦东 |
||||
|
@ 时间: 2024-11-26 07:57:09 |
||||
|
@ 备注: 我的 |
||||
|
--> |
||||
|
<script lang='ts' setup> |
||||
|
import { useRoute,useRouter } from 'vue-router' |
||||
|
import { userStror } from "@/utils/pinia/stores/modules/userOrders"; |
||||
|
import UserImg from "@/assets/image/1.png"; |
||||
|
import BottomPage from '@/views/common/bottom/index.vue' |
||||
|
|
||||
|
const route = useRoute() |
||||
|
const router = useRouter() |
||||
|
const userPinia = userStror(); |
||||
|
|
||||
|
const circleUrl = 'https://cube.elemecdn.com/3/7c/3ea6beec64369c2642b92c6726f1epng.png' |
||||
|
|
||||
|
const userUrl = ref(UserImg) |
||||
|
onBeforeMount(() => { |
||||
|
userPinia.getInfo() |
||||
|
.then(() =>{ |
||||
|
userUrl.value = userPinia.avatar?userPinia.avatar:UserImg |
||||
|
}) |
||||
|
}) |
||||
|
/** |
||||
|
@ 作者: 秦东 |
||||
|
@ 时间: 2024-10-26 15:06:29 |
||||
|
@ 功能: 退出系统 |
||||
|
*/ |
||||
|
const exitLogin = () => { |
||||
|
userPinia.setUserInfoNull() |
||||
|
router.push('/login') |
||||
|
} |
||||
|
</script> |
||||
|
<template> |
||||
|
<div> |
||||
|
<el-scrollbar ref="scrollBox" class="indexBody"> |
||||
|
<el-row> |
||||
|
<el-col :span="24" class="imgBox"> |
||||
|
<el-avatar :size="150" :src="userUrl" /> |
||||
|
</el-col> |
||||
|
<el-col :span="24" class="imgBox useBox"> |
||||
|
{{userPinia.userInfoCont.nickname}}(NO.{{userPinia.userInfoCont.number}}) |
||||
|
</el-col> |
||||
|
<el-col :span="24" class="contentBetween imgBox baisebeijing"> |
||||
|
<el-text>联系电话</el-text> |
||||
|
<el-text>{{userPinia.userInfoCont.mobilephone}}</el-text> |
||||
|
</el-col> |
||||
|
<el-col :span="24" class="contentBetween imgBox baisebeijing"> |
||||
|
<el-text>行政组织</el-text> |
||||
|
<el-text class="textRiht" v-html="userPinia.userInfoCont.postlist"></el-text> |
||||
|
</el-col> |
||||
|
<el-col :span="24" class="contentBetween imgBox baisebeijing"> |
||||
|
<el-text>联系地址</el-text> |
||||
|
<el-text v-html="userPinia.userInfoCont.currentresidence"></el-text> |
||||
|
</el-col> |
||||
|
<el-col :span="24" class=" imgBox"> |
||||
|
<el-button type="danger" style="width: 100px;" @click="exitLogin()">退出</el-button> |
||||
|
</el-col> |
||||
|
</el-row> |
||||
|
</el-scrollbar> |
||||
|
<BottomPage /> |
||||
|
</div> |
||||
|
</template> |
||||
|
<style lang='scss' scoped> |
||||
|
.indexBody{ |
||||
|
width:100%; |
||||
|
height: calc(100vh - 65px); |
||||
|
padding: 0 5px 0px 5px; |
||||
|
.contentBetween{ |
||||
|
display: flex; |
||||
|
justify-content: space-between; |
||||
|
align-items: center; |
||||
|
} |
||||
|
.imgBox{ |
||||
|
text-align: center; |
||||
|
padding: 20px 5px 10px 0; |
||||
|
|
||||
|
span{ |
||||
|
min-width: 80px; |
||||
|
} |
||||
|
.textRiht{ |
||||
|
text-align: right; |
||||
|
} |
||||
|
} |
||||
|
.baisebeijing{ |
||||
|
background-color: #FFFFFF; |
||||
|
border-bottom: 1px solid #F4F3F3; |
||||
|
} |
||||
|
.useBox{ |
||||
|
font-size: 25px; |
||||
|
} |
||||
|
} |
||||
|
</style> |
||||
Loading…
Reference in new issue