<!--packageA/patientList/patientList.wxml-->
<import src="../../common/common.wxml" />
<login id='login' bind:refreshEvent="_refreshEvent">
</login>
<answer id='answer'>
</answer>
<view wx:if="{{showview}}">
	<view class="wrap" style="padding-bottom:{{iPhoneX?210:150}}rpx;">
		<block wx:if="{{listUser.length>0}}" wx:for="{{listUser}}" wx:for-item="item" wx:key="{{index}}" wx:key="key">
			<view class="flex-wrap" bindtap="navto" data-item="{{item}}">
				<!-- <image class="touxiang" src="{{item.headimgurl}}" bindtap='selectedUser' data-index="{{index}}"></image> -->
				<view class="names">
					<view class="name">
						<text class="usname">{{item.name}}</text>
					</view>
					<!-- <view class="tel">{{item.phone}}</view> -->
				</view>
				<view class="rests">
					<text>{{item.sex}}</text>
					<text>，{{item.age}}岁</text>
					<text wx:if='{{item.weight}}'>，{{item.weight}}kg</text>
					<image class="duix" src="/images/l@2x.png"></image>
					<!-- <image bindtap="delete" data-index="{{index}}" class="delete" src="/images/del1.png"></image> -->
				</view>
			</view>
		</block>
		<block>
			<view wx:if="{{listUser.length<=0}}">
				<template is="noRecord" data="{{...noRecord}}" />
			</view>
		</block>
	</view>
	<view class="three-wrap">
		<view class="btn" bindtap="addUser" style="margin-bottom:{{iPhoneX?90:30}}rpx;">新增患者</view>
	</view>
</view>
<block wx:if="{{!showview}}">
	<!-- loading动画 -->
	<template is="loading" data="{{...loading}}" />
</block>