You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.3 KiB

3 years ago
<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" />
2 weeks ago
<uni-list-item showExtraIcon="true" :extraIcon="{type: 'calendar-filled'}" title="最近登录日期" :rightText="user.loginDate" />
3 years ago
</uni-list>
</view>
</template>
9 months ago
<script setup>
3 years ago
import { getUserProfile } from "@/api/system/user"
9 months ago
import { ref, reactive } from "vue"
3 years ago
9 months ago
const user = ref({})
const roleGroup = ref("")
const postGroup = ref("")
function getUser() {
getUserProfile().then(response => {
2 weeks ago
user.value = response.data.user
roleGroup.value = response.data.roleGroup
postGroup.value = response.data.postGroup
9 months ago
})
3 years ago
}
9 months ago
getUser()
3 years ago
</script>
<style lang="scss">
page {
background-color: #ffffff;
}
</style>