myFile.wxml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <!--pages/allFile/allFile.wxml-->
  2. <view class="myfile-content">
  3. <block wx:if="{{fileList.length == 0}}">
  4. <view class="nodate" >
  5. <van-empty description="暂无数据" />
  6. </view>
  7. </block>
  8. <view class="main-content">
  9. <block wx:if="{{fileList.length !== 0}}">
  10. <view class="file-item ittflex-jcb" wx:for="{{fileList}}" wx:key="index">
  11. <view class="f-left ittflex-jcs">
  12. <view class="f-avatar">
  13. <image class="head-img" src="{{item.headImg}}"></image>
  14. </view>
  15. <view class="f-user">
  16. <view class="fu-top ittflex-jcs">
  17. <text class="fu-name">{{item.realName}}</text>
  18. <view class="suer-sex ittflex">
  19. <image class="img" src="{{item.sex ? '../../imaes/nan@2x.png' : '../../imaes/nv@2x.png'}}"></image>
  20. </view>
  21. </view>
  22. <view class="fu-bottom fu-date">{{item.birthDay}}</view>
  23. </view>
  24. <view class="f-qrcode ittflex" data-realname="{{item.realName}}" data-id="{{item.documentId}}" bindtap="handleShowQRCode">
  25. <image class="qrcode-item" src="../../imaes/erweima@2x.png"></image>
  26. </view>
  27. </view>
  28. <view class="f-right ittflex">
  29. <text class="report-text report-text-success" wx:if="{{item.reportId !== null}}" data-reportid="{{item.reportId}}" bindtap="handleReportDetail">查看报告</text>
  30. <text class="report-text report-text-fail" wx:if="{{item.reportId == null}}">还未产生报告</text>
  31. </view>
  32. </view>
  33. </block>
  34. <block wx:if="{{fileList.length == 0}}">
  35. <view class="actions ittflex-jcb">
  36. <button class="handle-btn-full itt-btn" bindtap="handleAddFile">新建档案</button>
  37. </view>
  38. </block>
  39. </view>
  40. <view class="actions">
  41. <button plain="" class="handle-btn manage-btn ittflex" bindtap="handleFile">管理</button>
  42. <button class="handle-btn itt-btn" bindtap="handleAddFile">新建档案</button>
  43. </view>
  44. <view class="my-dialog" wx:if="{{qrcodeDialog}}">
  45. <view class="qr-content">
  46. <view class="qr-title">{{qrUserName}}的二维码</view>
  47. <image class="qr-content-img" src="{{QRCodeBase64}}"></image>
  48. <view class="qr-close">
  49. <view class="ver-line"></view>
  50. <view class="qe-close-icon ittflex" bindtap="handleCloseQRCode">
  51. <van-icon name="cross" color="#fff" size="25" />
  52. </view>
  53. </view>
  54. </view>
  55. </view>
  56. </view>