<!--module/health/pages/report/report.wxml-->
<t-navbar title="健康分析报告" left-arrow />

<scroll-view class="page-scroll__container" type="list" scroll-y style="{{containerStyle}}">
  <view class="card-wrapper">
    <t-cell t-class="card-header {{schemeId ? '' : 'cell-border-gradient'}}" bordered="{{!schemeId}}">
      <view slot="title">报告日期：{{dataset.reportTime}}</view>
      <form-button slot="right-icon" index="1" bind:tap="toSchemePage">调理方案</form-button>
    </t-cell>

    <view wx:if="{{!schemeId && dataset.isHaveConditioningProgram === 'Y'}}" class="card-body notification-wrapper">
      <t-icon t-class="icon" name="chat-bubble-error" size="24px" />
      <text>请找医生获取中医调理方案</text>
    </view>
  </view>
  <view class="card-wrapper report-data-wrapper">
    <view class="card-body">
      <view class="content-wrapper">
        <block wx:if="dataset">
          <span class="row">
            <text>结果显示您是：</text>
            <text>{{dataset.willillStateName}}</text>
          </span>
          <span class="row">
            <text>程度：</text>
            <text>{{dataset.willillDegreeName}}</text>
          </span>
          <span class="row">
            <text>类型：</text>
            <text>{{dataset.willillSocialName}}</text>
          </span>
          <span class="row">
            <text>表现：</text>
            <text>{{dataset.willillFunctionName}}</text>
          </span>
          <span class="row">
            <text>体质：</text>
            <text>{{dataset.constitutionGroupName}}</text>
          </span>
        </block>
      </view>
      <image class="image-wrapper" src="../../assets/image/health-report.png" mode="aspectFill" />
    </view>
  </view>
  <view class="card-wrapper report-data-wrapper">
    <view class="card-body">
      <view class="content-wrapper">
        <block wx:if="dataset">
          <span class="row">
            <text>体质：</text>
            <text>{{dataset.constitutionGroupName}}是</text>
            <text>{{dataset.constitutionGroupDefinition}}</text>
          </span>
        </block>
        <view class="talbel-wrapper">
          <view class="talbel-row">
            <view class="label">总体特征</view>
            <view class="value">{{dataset.constitutionGroupGeneralCharacteristics}}</view>
          </view>
          <view class="talbel-row">
            <view class="label">形体特征</view>
            <view class="value">{{dataset.constitutionGroupPhysicalCharacteristics}}</view>
          </view>
          <view class="talbel-row">
            <view class="label">常见表现</view>
            <view class="value">{{dataset.constitutionGroupCommonManifestations}}</view>
          </view>
          <view class="talbel-row">
            <view class="label">发病倾向</view>
            <view class="value">{{dataset.constitutionGroupDiseaseTendency}}</view>
          </view>
          <view class="talbel-row">
            <view class="label">外界适应能力</view>
            <view class="value">{{dataset.constitutionGroupPsychicCharacteristics}}</view>
          </view>
        </view>
      </view>
    </view>
  </view>

  <view class="card-wrapper">
    <t-cell t-class="card-header cell-border-gradient" title="舌象分析" description="{{dataset.tongueAnalysisResult}}" />
    <view class="picture-wrapper">
      <image src="{{dataset.upImg}}" mode="aspectFit" />
      <image src="{{dataset.downImg}}" mode="aspectFit" />
    </view>
  </view>
  <view class="card-wrapper">
    <t-cell t-class="card-header cell-border-gradient" title="面象分析" description="{{dataset.faceAnalysisResult}}" />
    <view class="picture-wrapper">
      <image src="{{dataset.faceImg}}" mode="aspectFit" />
    </view>
  </view>
  <view class="card-wrapper">
    <t-cell t-class="card-header cell-border-gradient" title="中医证素" />
    <view class="card-body">
      {{dataset.factorItemSummary}}
    </view>
  </view>
  <view class="card-wrapper">
    <t-cell t-class="card-header cell-border-gradient" title="中医证型" />
    <view class="card-body">
      {{dataset.diagnoseSyndromeSummary}}
    </view>
  </view>
  
  <report-health-index dataset="{{healthIndex.data}}" loading="{{healthIndex.loading}}" message="{{healthIndex.message}}">
  </report-health-index>
</scroll-view>

<t-message id="{{$messageId}}"></t-message>