2022-08-01 08:14:57 +08:00
|
|
|
<template>
|
|
|
|
<view class="container">
|
|
|
|
<uni-list>
|
|
|
|
<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" />
|
|
|
|
</uni-list>
|
|
|
|
</view>
|
|
|
|
</template>
|
|
|
|
|
2025-03-28 23:23:07 +08:00
|
|
|
<script setup>
|
2022-08-01 08:14:57 +08:00
|
|
|
import { getUserProfile } from "@/api/system/user"
|
2025-03-28 23:23:07 +08:00
|
|
|
import { ref, reactive } from "vue"
|
2022-08-01 08:14:57 +08:00
|
|
|
|
2025-03-28 23:23:07 +08:00
|
|
|
const user = ref({})
|
|
|
|
const roleGroup = ref("")
|
|
|
|
const postGroup = ref("")
|
|
|
|
|
|
|
|
function getUser() {
|
|
|
|
getUserProfile().then(response => {
|
|
|
|
user.value = response.data
|
|
|
|
roleGroup.value = response.roleGroup
|
|
|
|
postGroup.value = response.postGroup
|
|
|
|
})
|
2022-08-01 08:14:57 +08:00
|
|
|
}
|
2025-03-28 23:23:07 +08:00
|
|
|
|
|
|
|
getUser()
|
2022-08-01 08:14:57 +08:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
page {
|
|
|
|
background-color: #ffffff;
|
|
|
|
}
|
|
|
|
</style>
|