ruoyi-geek-App/src/pages_mine/pages/info/index.vue

47 lines
1.3 KiB
Vue
Raw Normal View History

2023-08-12 15:44:27 +00:00
<template>
<view class="container">
<uni-list>
2023-08-28 15:12:06 +00:00
<uni-list-item showExtraIcon="true" :extraIcon="{ type: 'person-filled' }" title="昵称" :rightText="user.nickName" />
<uni-list-item showExtraIcon="true" :extraIcon="{ type: 'phone-filled' }" title="手机号码"
:rightText="user.phonenumber" />
<uni-list-item showExtraIcon="true" :extraIcon="{ type: 'email-filled' }" title="邮箱" :rightText="user.email" />
<uni-list-item showExtraIcon="true" :extraIcon="{ type: 'auth-filled' }" title="岗位" :rightText="postGroup" />
<uni-list-item showExtraIcon="true" :extraIcon="{ type: 'staff-filled' }" title="角色" :rightText="roleGroup" />
<uni-list-item showExtraIcon="true" :extraIcon="{ type: 'calendar-filled' }" title="创建日期"
:rightText="user.createTime" />
2023-08-12 15:44:27 +00:00
</uni-list>
</view>
</template>
<script>
2023-08-28 15:12:06 +00:00
import { getUserProfile } from "@/api/system/user"
2023-08-12 15:44:27 +00:00
2023-08-28 15:12:06 +00:00
export default {
data() {
return {
user: {},
roleGroup: "",
postGroup: ""
}
},
onLoad() {
this.getUser()
},
methods: {
getUser() {
getUserProfile().then(response => {
this.user = response.data
this.roleGroup = response.roleGroup
this.postGroup = response.postGroup
})
2023-08-12 15:44:27 +00:00
}
}
2023-08-28 15:12:06 +00:00
}
2023-08-12 15:44:27 +00:00
</script>
<style lang="scss">
2023-08-28 15:12:06 +00:00
page {
background-color: #ffffff;
}
2023-08-12 15:44:27 +00:00
</style>