更新
This commit is contained in:
@@ -1,6 +1,15 @@
|
||||
<view class="page">
|
||||
<view class="card">
|
||||
<view>{{title}}</view>
|
||||
<view style="margin-top: 16rpx; color: #64748b;">{{description}}</view>
|
||||
<view class="title">学生端首页</view>
|
||||
<view wx:if="{{loading}}" class="hint">加载用户信息中...</view>
|
||||
<view wx:elif="{{error}}" class="error">{{error}}</view>
|
||||
<view wx:elif="{{currentUser}}" class="profile">
|
||||
<view class="item">账号:{{currentUser.username}}</view>
|
||||
<view class="item">姓名:{{currentUser.displayName}}</view>
|
||||
<view class="item">租户:{{currentUser.tenantId}}</view>
|
||||
<view class="item">部门:{{currentUser.deptId}}</view>
|
||||
<view class="item">角色:{{currentUser.roleCodesText}}</view>
|
||||
</view>
|
||||
<button class="logout-btn" bindtap="handleLogout">退出登录</button>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
Reference in New Issue
Block a user