123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <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>
- </view>
- </template>
- <script>
- import { getUserProfile } from "@/api/system/user"
- export default {
- data() {
- return {
- user: {},
- roleGroup: "",
- postGroup: ""
- }
- },
- onLoad() {
- this.getUser()
- },
- methods: {
- getUser() {
- getUserProfile().then(response => {
- console.log(response,'-----------')
- this.user = response.data.user
- this.roleGroup = response.data.roleGroup
- this.postGroup = response.data.postGroup
- })
- }
- }
- }
- </script>
- <style lang="scss">
- page {
- background-color: #ffffff;
- }
- </style>
|