home.wxml 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  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. <t-icon color="{{patientIconColor}}" name="{{patientIcon}}" size="14px"></t-icon>
  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 class="tool-bar-wrapper">
  16. <view class="tool" wx:if="{{location.description}}">
  17. <image src="../../assets/icon/location.icon.png" mode="heightFix" />
  18. <text>{{location.description}}</text>
  19. </view>
  20. <view class="tool" wx:if="{{solarTerms.description}}">
  21. <image src="../../assets/icon/weather.icon.png" mode="heightFix" />
  22. <text>{{solarTerms.description}}</text>
  23. </view>
  24. </view>
  25. </view>
  26. <body-model dataset="{{healthReport.data}}" bind:position="onBodyModel">
  27. <view wx:for="{{healthIndex.data}}" wx:key="*this">
  28. <text wx:if="{{index < 3}}" max-lines="1" overflow="ellipsis">{{item}}</text>
  29. </view>
  30. <view wx:if="{{healthIndex.data.length > 3}}" style="text-align: center;">...</view>
  31. </body-model>
  32. <view class="banner-wrapper">
  33. <image class="container-bg-image" src="../../assets/bg/home-banner.bg.png" mode="widthFix" bind:tap="toChatsPage"></image>
  34. </view>
  35. <view class="health-scheme-wrapper">
  36. <report-health-scheme dataset="{{healthReport.data.conditProgram}}" mark:id="{{healthId}}" bind:tap="toSchemePage"></report-health-scheme>
  37. </view>
  38. <view class="science-list-wrapper" wx:if="{{scienceList.length}}">
  39. <view class="list-title" bind:tap="toSciencePage">
  40. <text>中医科普</text>
  41. <t-icon name="chevron-right-double"></t-icon>
  42. </view>
  43. <science-card wx:for="{{scienceList}}" wx:key="id" item="{{item}}" index="{{index}}"></science-card>
  44. </view>
  45. <science-card style="display: none;"><!--?--></science-card>
  46. <view style="height: {{container.safeBottomOffset}}px;flex: none;"></view>
  47. </scroll-view>
  48. <view class="fab-wrapper" bind:tap="onFabTap">
  49. <view class="fab fab-1" catch:tap="toHealthPage"><text>健康</text><text>档案</text></view>
  50. <view class="fab fab-2" catch:tap="toSciencePage"><text>中医</text><text>科普</text></view>
  51. <view class="fab fab-3" catch:tap="toDietTeaPage"><text>中医</text><text>茶饮</text></view>
  52. <view class="fab fab-4" catch:tap="toDietTonicPage"><text>药膳</text><text>查询</text></view>
  53. <image class="fab-main" src="../../assets/icon/fab.png" mode="aspectFill" />
  54. </view>
  55. <view wx:if="{{sheet}}" class="draggable-sheet-shade" catch:tap="hideDraggableSheet"></view>
  56. <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]}}" worklet:onsizeupdate="onDraggableSizeUpdate">
  57. <scroll-view class="scrollable draggable-sheet-container" type="custom" scroll-y associative-container="draggable-sheet" show-scrollbar="{{false}}" bounces="{{false}}">
  58. <sticky-section>
  59. <sticky-header>
  60. <view class="draggable-sheet-bar">
  61. <view class="indicator" />
  62. </view>
  63. <view wx:if="{{position.CT}}" style="text-align: center;">预警信息</view>
  64. </sticky-header>
  65. <block wx:if="{{position.LT}}">
  66. <view class="card-wrapper" wx:for="{{position.LT}}" wx:key="*this">
  67. <t-cell wx:if="{{item.title}}" t-class="card-header cell-border-gradient" title="{{item.title}}" />
  68. <view wx:if="{{item.description}}" class="card-body">&emsp;&emsp;{{item.description}}</view>
  69. </view>
  70. </block>
  71. <block wx:if="{{position.RB}}">
  72. <view class="card-wrapper">
  73. <t-cell t-class="card-header cell-border-gradient" title="中医证型解释" />
  74. <view class="card-body">
  75. <view class="row" wx:for="{{position.RB.diagnoseSyndromes}}" wx:key="*this">
  76. <view class="primary">{{item.diagnoseSyndromeName}}</view>
  77. <view style="margin-top: 4px;" wx:if="{{item.diagnoseSyndromeAnalysis}}">&emsp;&emsp;{{item.diagnoseSyndromeAnalysis}}</view>
  78. </view>
  79. </view>
  80. </view>
  81. <view class="card-wrapper">
  82. <t-cell t-class="card-header cell-border-gradient" title="中医证素解释" />
  83. <view class="card-body">
  84. <view class="row" wx:for="{{position.RB.factorItems}}" wx:key="*this">
  85. <view class="primary">{{item.factorItemName}}</view>
  86. <view style="margin-top: 4px;" wx:if="{{item.factorItemDescription}}">&emsp;&emsp;{{item.factorItemDescription}}</view>
  87. </view>
  88. </view>
  89. </view>
  90. </block>
  91. <block wx:if="{{position.RT}}">
  92. <view class="card-wrapper">
  93. <t-cell t-class="card-header cell-border-gradient" title="{{position.RT.constitutionGroupName}}" />
  94. <view class="card-body">
  95. <span class="row">
  96. <text>&emsp;&emsp;{{position.RT.constitutionGroupName}}是</text>
  97. <text>{{position.RT.constitutionGroupDefinition}}</text>
  98. </span>
  99. </view>
  100. </view>
  101. <view class="card-wrapper">
  102. <t-cell t-class="card-header cell-border-gradient" title="舌象解释" />
  103. <view class="card-body">
  104. <view>&emsp;&emsp;{{position.RT.tongueAnalysisResult}}</view>
  105. <view class="picture-wrapper">
  106. <image src="{{position.RT.upImg}}" mode="aspectFit" />
  107. <image src="{{position.RT.downImg}}" mode="aspectFit" />
  108. </view>
  109. </view>
  110. </view>
  111. <view class="card-wrapper">
  112. <t-cell t-class="card-header cell-border-gradient" title="面象解释" />
  113. <view class="card-body">
  114. <view>&emsp;&emsp;{{position.RT.faceAnalysisResult}}</view>
  115. <view wx:if="{{position.RT.faceImg}}" class="picture-wrapper">
  116. <image src="{{position.RT.faceImg}}" mode="aspectFit" />
  117. </view>
  118. </view>
  119. </view>
  120. </block>
  121. <block wx:if="{{position.CT}}">
  122. <view class="CT row" wx:for="{{position.CT}}" wx:key="*this">{{item}}</view>
  123. </block>
  124. <view class="bottom-wrapper">
  125. <form-button index="1" bind:tap="hideDraggableSheet">确定</form-button>
  126. </view>
  127. </sticky-section>
  128. </scroll-view>
  129. </draggable-sheet>