home.wxml 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <!--module/health/pages/home/home.wxml-->
  2. <t-navbar title="健康档案" left-arrow />
  3. <scroll-view class="page-scroll__container" type="list" scroll-y style="{{containerStyle}}">
  4. <report-health-patient dataset="{{healthPatient.data}}" loading="{{healthPatient.loading}}" message="{{healthPatient.message}}">
  5. <view class="extra-warapper" slot="extra" catch:tap="toPatientPage">
  6. <text>更新记录</text>
  7. <t-icon t-class="icon" name="chevron-right-double-s" size="24px" />
  8. </view>
  9. </report-health-patient>
  10. <report-health-status dataset="{{healthReport.data}}" loading="{{healthReport.loading}}" message="{{healthReport.message}}" mark:id="{{healthId}}" bind:info="toReportPage">
  11. <view class="extra-warapper" slot="extra-status" catch:tap="toHealthStatusListPage">
  12. <text>更新记录</text>
  13. <t-icon t-class="icon" name="chevron-right-double-s" size="24px" />
  14. </view>
  15. <view class="extra-warapper" slot="extra-report" catch:tap="showReportList">
  16. <text>更新记录</text>
  17. <t-icon t-class="icon" name="chevron-right-double-s" size="24px" />
  18. </view>
  19. </report-health-status>
  20. <report-health-scheme dataset="{{healthReport.data.conditProgram}}" mark:id="{{healthId}}" bind:tap="toSchemePage"></report-health-scheme>
  21. <report-health-index dataset="{{healthIndex.data}}" loading="{{healthIndex.loading}}" message="{{healthIndex.message}}">
  22. <view class="extra-warapper" slot="extra" catch:tap="toHealthIndexListPage">
  23. <text>更新记录</text>
  24. <t-icon t-class="icon" name="chevron-right-double-s" size="24px" />
  25. </view>
  26. </report-health-index>
  27. </scroll-view>
  28. <t-message id="{{$messageId}}"></t-message>
  29. <view wx:if="{{shade}}" class="draggable-sheet-shade" catch:tap="hideDraggableSheet"></view>
  30. <draggable-sheet class="draggable-sheet-wrapper health-report-list" style="height: {{container.height}}px;" initial-child-size="0" min-child-size="0" max-child-size="0.8" snap="{{true}}" snap-sizes="{{[0.5]}}" worklet:onsizeupdate="onDraggableSizeUpdate">
  31. <scroll-view class="scrollable draggable-sheet-container" type="custom" scroll-y associative-container="draggable-sheet" show-scrollbar="{{false}}" bounces="{{false}}">
  32. <sticky-section>
  33. <sticky-header>
  34. <view class="draggable-sheet-bar">
  35. <view class="indicator" />
  36. <view class="title">健康分析报告记录</view>
  37. </view>
  38. </sticky-header>
  39. <list-builder list="{{healthReportList.data}}" child-height="90">
  40. <block slot:item slot:index>
  41. <t-cell t-class="cell-border-gradient" title="{{item.reportTime}}" description="{{item.description}}" arrow mark:id="{{item.id}}" bind:tap="toReportPage">
  42. <image slot="image" src="../../assets/image/health-report.png" style="width: 53px;height: 53px;"></image>
  43. </t-cell>
  44. </block>
  45. </list-builder>
  46. </sticky-section>
  47. </scroll-view>
  48. </draggable-sheet>