oak-general-business/app/pages/token/me/index.wxml

31 lines
1.2 KiB
Plaintext

<!-- index.wxml -->
<view class="page-body">
<view class="userInfo">
<block wx:if="{{avatar}}">
<t-avatar icon="user" image="{{avatar}}" />
</block>
<block wx:else>
<t-avatar icon="user" />
</block>
<span class="nickname">{{ nickname || '未设置'}}</span>
<block wx:if="{{isLoggedIn && !isPlayingAnother}}">
<t-button theme="primary" block size="small" disabled="{{refreshing}}" bind:tap="onRefresh" content="更新" />
</block>
<block wx:elif="{{!isLoggedIn}}">
<t-button theme="primary" block size="small" disabled="{{refreshing}}" bind:tap="doLogin" content="登录" />
</block>
</view>
<view class="cell">
<t-cell title="手机号" hover bind:tap="goMyMobile" arrow>
<view slot="note">
<view wx:if="{{mobileCount > 1}}">{{mobileCount}}条手机号</view>
<view wx:elif="{{mobileCount === 1}}">{{mobile}}</view>
<view wx:else>未设置</view>
</view>
</t-cell>
<component-menu />
<block wx:if="{{isRoot}}">
<t-cell title="用户管理" hover bind:click="goUserManage" arrow />
</block>
</view>
</view>