景区管控小程序
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.
jq_miniApp/subPackMine/info/index.vue

47 lines
1.1 KiB

2 years ago
<template>
2 years ago
<view class="v-page">
<view class="v-card contain">
<view class="v-card-box">
<uni-list>
<uni-list-item showExtraIcon="true" title="昵称" :rightText="user.nickName" />
<uni-list-item showExtraIcon="true" title="手机号码" :rightText="user.phonenumber" />
<uni-list-item showExtraIcon="true" title="邮箱" :rightText="user.email" />
<uni-list-item showExtraIcon="true" title="岗位" :rightText="postGroup" />
<uni-list-item showExtraIcon="true" title="角色" :rightText="roleGroup" />
<uni-list-item showExtraIcon="true" title="创建日期" :rightText="user.createTime" />
</uni-list>
</view>
</view>
</view>
2 years ago
</template>
<script>
2 years ago
import {
getUserProfile
} from "@/api/system/user"
2 years ago
2 years ago
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
})
}
}
}
2 years ago
</script>
<style lang="scss">
2 years ago
</style>