<!--module/health/components/report-health-status/report-health-status.wxml-->
<view class="card-wrapper">
  <t-cell t-class="card-header cell-border-gradient" t-class-title="card-header__title">
    <block slot="title">
      <text>健康状况</text>
      <t-loading wx:if="{{loading}}" theme="spinner" size="20px" class="loading" />
      <image wx:else class="icon" src="../../assets/icon/health-status-1.icon.png" mode="heightFix"></image>
    </block>
    <block slot="right-icon">
      <slot name="extra-status"></slot>
    </block>

    <view slot="description" wx:if="{{!loading && !dataset}}">暂无数据</view>
  </t-cell>

  <view class="card-body status-data-wrapper">
    <span class="row">
      <text>症状信息：</text>
      <text>{{dataset.pickedSymptom}}</text>
    </span>
  </view>

  <t-empty wx:if="{{message}}" t-class="empty-wrapper error" icon="info-circle" description="{{message}}" />
</view>

<view class="card-wrapper report-data-wrapper">
  <t-cell t-class="card-header cell-border-gradient" t-class-title="card-header__title">
    <block slot="title">
      <text>健康分析报告</text>
      <t-loading wx:if="{{loading}}" theme="spinner" size="20px" class="loading" />
      <image wx:else class="icon" src="../../assets/icon/health-status-2.icon.png" mode="heightFix"></image>
    </block>
    <block slot="right-icon">
      <slot name="extra-report"></slot>
    </block>

    <view slot="description" wx:if="{{!loading && !dataset}}">暂无数据</view>
  </t-cell>

  <view class="card-body">
    <view class="content-wrapper">
      <view class="row title primary">
        <view>{{dataset.willillStateName}}</view>
      </view>
      <span class="row">
        <text class="text-item" wx:if="{{dataset.willillDegreeName}}">{{dataset.willillDegreeName}}</text>
        <text class="text-item" wx:if="{{dataset.willillSocialName}}">{{dataset.willillSocialName}}</text>
        <text class="text-item" wx:if="{{dataset.willillFunctionName}}">{{dataset.willillFunctionName}}</text>
      </span>
      <span class="row primary">
        <text>体质：</text>
        <text>{{dataset.constitutionGroupName}}</text>
      </span>
    </view>
    <image class="image-wrapper" src="../../assets/image/health-report.png" mode="aspectFill" />
  </view>

  <t-empty wx:if="{{message}}" t-class="empty-wrapper error" icon="info-circle" description="{{message}}" />
</view>