file_manage.wxml
994 字节
<!--pages/file_manage/file_manage.wxml-->
<view class='addfile' bindtap='goaddfile'>
<view class='addfile_left'>
<view class='addfile_img'>
<image src='../../img/jia.png'></image>
</view>
<view>添加新档案</view>
</view>
<view class='iconfont icon-xiangyou'></view>
</view>
<view class='manage'>
<view class='manage_item' wx:for='{{datalist}}' wx:key bindtap='goeditfile' data-obj='{{item}}'>
<view class='manage_left'>
<view>{{item.patient}}
<text class='txt_sex'>{{item.sex_string}}</text>{{item.age}}岁</view>
<view class='sub_item'>{{item.disease_name}}</view>
</view>
<view wx:if='{{show}}'>
<view class='manage_right' wx:if='{{item.state}}' catchtap='setstate' data-index='{{index}}' id='{{item.id}}'>
<image src='../../img/choose_yes.png'></image>
</view>
<view class='manage_right' wx:else catchtap='setstate' data-index='{{index}}' id='{{item.id}}'>
<image src='../../img/choose_no.png'></image>
</view>
</view>
</view>
</view>