¶Ô±ÈÐÂÎļþ |
| | |
| | | <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> |
| | | |
| | | <u-button @click="register()">ç»å®å¾®ä¿¡</u-button> |
| | | </view> |
| | | </template> |
| | | |
| | | <script setup> |
| | | import { getUserProfile } from "@/api/system/user" |
| | | import { ref } from "vue"; |
| | | import modal from "@/plugins/modal" |
| | | |
| | | 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 |
| | | }) |
| | | } |
| | | getUser() |
| | | |
| | | import { wxRegister } from "@/api/oauth" |
| | | import { getWxCode } from "@/utils/geek" |
| | | function register(){ |
| | | modal.loading('ç»å®å¾®ä¿¡ä¸...') |
| | | getWxCode().then(res=>{ |
| | | wxRegister('miniapp',res).then(res=>{ |
| | | modal.closeLoading() |
| | | }) |
| | | }) |
| | | |
| | | } |
| | | |
| | | </script> |
| | | |
| | | <style lang="scss"> |
| | | page { |
| | | background-color: #ffffff; |
| | | } |
| | | </style> |