home.wxml 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <!--pages/home/home.wxml-->
  2. <t-navbar title="云管家" />
  3. <scroll-view class="page-scroll__container" type="list" scroll-y style="{{containerStyle}}">
  4. <view class="header-container">
  5. <view class="user-info-wrapper" wx:if="{{patient}}">
  6. <image class="container-bg-image" src="../../assets/bg/user-info.bg.png" mode="aspectFit" />
  7. <block>
  8. <image class="user-icon" src="../../assets/icon/gender-{{patient.sex}}.icon.png" mode="aspectFit" />
  9. <text class="user-name">{{patient.name}}</text>
  10. <text class="user-age">{{patient.age}}岁</text>
  11. <text wx:if="{{false}}" class="user-description" overflow="fade" max-lines="1"></text>
  12. <image wx:if="{{patients.length > 1}}" class="user-select-icon" src="../../assets/icon/arrows-down.icon.png" mode="aspectFit" />
  13. </block>
  14. </view>
  15. </view>
  16. <body-model dataset="{{healthReport.data}}" bind:position="onBodyModel">
  17. <view wx:for="{{healthIndex.data}}" wx:key="*this">
  18. <text max-lines="1" overflow="ellipsis">{{item}}</text>
  19. </view>
  20. </body-model>
  21. <view class="banner-wrapper">
  22. <image class="container-bg-image" src="../../assets/bg/home-banner.bg.png" mode="widthFix" bind:tap="toChatsPage"></image>
  23. </view>
  24. <view class="health-scheme-wrapper">
  25. <report-health-scheme dataset="{{healthReport.data.conditProgram}}" mark:id="{{healthId}}" bind:tap="toSchemePage"></report-health-scheme>
  26. </view>
  27. </scroll-view>
  28. <view class="fab-wrapper" bind:tap="onFabTap">
  29. <view class="fab fab-1" bind:tap="toHealthPage"><text>健康</text><text>档案</text></view>
  30. <view class="fab fab-2"><text>中医</text><text>科普</text></view>
  31. <view class="fab fab-3"><text>中医</text><text>茶饮</text></view>
  32. <view class="fab fab-4"><text>药膳</text><text>查询</text></view>
  33. <image class="fab-main" src="../../assets/icon/fab.png" mode="aspectFill" />
  34. </view>
  35. <draggable-sheet class="draggable-sheet-wrapper" style="height: {{container.height}}px;" initial-child-size="0" min-child-size="0" max-child-size="1" snap="{{true}}" snap-sizes="{{[0.5]}}">
  36. <scroll-view class="scrollable draggable-sheet-container" type="custom" scroll-y associative-container="draggable-sheet" show-scrollbar="{{false}}" bounces="{{false}}">
  37. <sticky-section>
  38. <sticky-header>
  39. <view class="draggable-sheet-bar">
  40. <view class="indicator" />
  41. </view>
  42. </sticky-header>
  43. <block wx:if="{{position.LT}}">
  44. <view class="card-wrapper" wx:for="{{position.LT}}" wx:key="*this">
  45. <t-cell wx:if="{{item.title}}" t-class="card-header cell-border-gradient" title="{{item.title}}" />
  46. <view wx:if="{{item.description}}" class="card-body">{{item.description}}</view>
  47. </view>
  48. </block>
  49. <block wx:if="{{position.RB}}">
  50. <view class="card-wrapper">
  51. <t-cell t-class="card-header cell-border-gradient" title="中医证型解释" description="{{position.RB.diagnoseSyndromeSummary}}" />
  52. <view class="card-body">
  53. <view class="row" wx:for="{{position.RB.diagnoseSyndromes}}" wx:key="*this">
  54. <view class="primary">{{item.diagnoseSyndromeName}}</view>
  55. <view style="margin-top: 4px;">{{item.diagnoseSyndromeAnalysis}}</view>
  56. </view>
  57. </view>
  58. </view>
  59. <view class="card-wrapper">
  60. <t-cell t-class="card-header cell-border-gradient" title="中医证素解释" description="{{position.RB.factorItemSummary}}" />
  61. <view class="card-body">
  62. <view class="row" wx:for="{{position.RB.factorItems}}" wx:key="*this">
  63. <view class="primary">{{item.factorItemName}}</view>
  64. <view style="margin-top: 4px;">{{item.factorItemDescription}}</view>
  65. </view>
  66. </view>
  67. </view>
  68. </block>
  69. <block wx:if="{{position.RT}}">
  70. <view class="card-wrapper">
  71. <t-cell t-class="card-header cell-border-gradient" title="{{position.RT.constitutionGroupName}}" />
  72. <view class="card-body">
  73. <span class="row">
  74. <text>{{position.RT.constitutionGroupName}}是</text>
  75. <text>{{position.RT.constitutionGroupDefinition}}</text>
  76. </span>
  77. </view>
  78. </view>
  79. <view class="card-wrapper">
  80. <t-cell t-class="card-header cell-border-gradient" title="舌象解释" description="{{position.RT.tongueAnalysisResult}}" />
  81. <view class="picture-wrapper">
  82. <image src="{{position.RT.upImg}}" mode="aspectFit" />
  83. <image src="{{position.RT.downImg}}" mode="aspectFit" />
  84. </view>
  85. </view>
  86. <view class="card-wrapper">
  87. <t-cell t-class="card-header cell-border-gradient" title="面象解释" description="{{position.RT.faceAnalysisResult}}" />
  88. <view class="picture-wrapper">
  89. <image src="{{position.RT.faceImg}}" mode="aspectFit" />
  90. </view>
  91. </view>
  92. </block>
  93. <view class="bottom-wrapper">
  94. <form-button index="1" bind:tap="hideDraggableSheet">确定</form-button>
  95. </view>
  96. </sticky-section>
  97. </scroll-view>
  98. </draggable-sheet>