oak-general-business/app/pages/user/manage/index.wxml

32 lines
1.4 KiB
Plaintext

<!-- index.wxml -->
<view class="page-body">
<view class="user-list">
<view wx:for="{{userData}}" wx:key="index">
<g-cell bind:tap="onCellClicked" data-id="{{item.id}}">
<block wx:if="{{item.avatar}}">
<image class="avatar" src="{{item.avatar}}" mode="aspectFit" />
</block>
<block wx:else>
<g-icon name="person_outline" size="120"></g-icon>
</block>
<view class="user-info">
<view class="nickname">{{item.nickname || '未设置'}}</view>
<view class="name">
<span class="material-symbols-rounded" style="font-size:28rpx;margin-right:8rpx" color="#495060">
tag_faces
</span>
{{item.name || '未设置'}}
</view>
<view class="mobile">
<span class="material-symbols-rounded" style="font-size:28rpx;margin-right:8rpx" color="#495060">
phone_android
</span>
{{item.mobile || '未设置'}}
</view>
</view>
<view class="user-state-{{item.userState}}">{{item.userState}}</view>
</g-cell>
</view>
</view>
<g-btn size="long" type="primary" bind:tap="goNewUser">新建</g-btn>
</view>