1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
| <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.phone" />
| <uni-list-item showExtraIcon="true" :extraIcon="{type: 'email-filled'}" title="邮箱" :rightText="user.email" />
| </uni-list>
| </view>
| </template>
|
| <script>
| import { getWxInfo } from "@/api/login"
|
| export default {
| data() {
| return {
| user: {},
| roleGroup: "",
| postGroup: ""
| }
| },
| onLoad() {
| this.getUser()
| },
| methods: {
| getUser() {
| getWxInfo().then(response => {
| console.log(response)
| this.user = response.data
| })
| }
| }
| }
| </script>
|
| <style lang="scss">
| page {
| background-color: #ffffff;
| }
| </style>
|
|