offlineTreatment.wxml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <t-navbar title="线下非药物治疗" left-arrow />
  2. <view class="offline-treatment-page">
  3. <t-tabs value="{{currentTab}}" bind:change="onTabChange">
  4. <t-tab-panel label="全部" value=""></t-tab-panel>
  5. <t-tab-panel label="治疗中" value="0"></t-tab-panel>
  6. <t-tab-panel label="治疗完成" value="1"></t-tab-panel>
  7. </t-tabs>
  8. <scroll-view class="page-container" scroll-y>
  9. <view wx:if="{{isLoading}}">
  10. <t-loading theme="spinner" text="加载中..." size="24" />
  11. </view>
  12. <view wx:elif="{{treatmentList.length>0}}">
  13. <block wx:for="{{treatmentList}}" wx:key="id">
  14. <view class="treatment-detail-card" bind:tap="switchVerifyRecode">
  15. <view>
  16. <view class="row between">
  17. <text class="label bold">项目:{{item.conditioningProgramName}}</text>
  18. </view>
  19. <view class="row">
  20. <text class="sub-label">开具人:</text>
  21. {{item.operateBy}}
  22. </view>
  23. <view class="row">
  24. <text class="sub-label">开始时间:</text>
  25. {{item.estimatedStartDate}}
  26. </view>
  27. <view class="row">
  28. <text class="sub-label">频次:</text>
  29. 每{{item.frequencyType}}天{{item.frequencyMeasure}}{{item.convertUnit}}
  30. </view>
  31. <view class="row" wx:if="{{item.arrangeDate}}">
  32. <text class="sub-label">下次时间:</text>
  33. {{item.arrangeDate}}
  34. </view>
  35. <view class="row" wx:if="{{item.conditioningProgramSupplierName}}">
  36. <text class="sub-label">机构:</text>
  37. {{item.conditioningProgramSupplierName}}
  38. </view>
  39. <view class="divider"></view>
  40. </view>
  41. <view style="margin-top:-80px">
  42. <view class="status" style="color:{{item.status === 'doing' ? '#F44336' : '#43A047'}}">
  43. {{item.progress === '0' ? '进行中' : '已完成'}}
  44. </view>
  45. <view>{{item.finishCount}}/{{item.totalMeasure}}</view>
  46. </view>
  47. </view>
  48. </block>
  49. <!-- 底部安全区占位 -->
  50. <view class="safe-bottom-spacer"></view>
  51. </view>
  52. <view wx:elif="{{!isLoading && treatmentList.length === 0}}">
  53. <t-empty icon="info-circle-filled" description="暂无数据" />
  54. </view>
  55. </scroll-view>
  56. </view>