<!--module/health/components/card-analysis/card-analysis-content.wxml-->
<view class="card-wrapper tongue-container" wx:if="{{tongue.result && i18n.analysis.__show__}}" mark:type="tongue" bind:tap="preview">

  <view wx:if="{{isShowType}}">
    <view class="togue-title">{{i18n.analysis.tongue}}</view>
  </view>
  <view class="card-title" wx:else>
    <view class="tongue-right">
      <view>
        <image src="../../assets/icon/icon_tongue@2x.png" class="icon-title" />
      </view>
      <view class="text-title">{{i18n.analysis.tongue}}{{i18n.analysis._}}</view>
    </view>
    <block wx:if="{{exception.tongue === false && tongue.exception.length}}">
      <view class="extra-warapper" slot="right-icon" mark:operation="exception-list">
        <text>详情</text>
        <t-icon t-class="icon" name="chevron-right-double-s" size="24px" />
      </view>
    </block>
  </view>


  <view class="card-body constitution-container">
    <view class="picture-container">
      <view style="position: relative;">
        <image src="../../assets/image/pic_tongue@2x.png" class="body-image" mode="widthFix" />
        <text class="tongue-label tongue-top">{{i18n.analysis.tongue_1}}</text>
        <text class="tongue-label tongue-bottom">{{i18n.analysis.tongue_2}}</text>
      </view>
      <view wx:if="{{tongue.cover.length}}" class="picture-wrapper">
        <image wx:for="{{tongue.cover}}" wx:key="*this" src="{{item}}" mode="aspectFill" />
      </view>
    </view>

    <block wx:if="{{i18n.analysis.__showContent__}}">
      <view wx:if="{{simple.tongue === false}}" class="talbel-wrapper">
        <view class="tr">
          <view wx:for="{{tongue.table.columns}}" wx:key="*this" class="th">{{item}}</view>
        </view>
        <view wx:for="{{tongue.table.data}}" wx:key="0" wx:for-item="data" class="tr {{data.exception ? 'exception': ''}} {{data.invalid ? 'invalid' : ''}}">
          <view wx:for="{{tongue.table.columns}}" wx:key="*this" wx:for-index="index" class="td">
            <rich-text nodes="{{data[index]}}"></rich-text>
          </view>
        </view>
      </view>
      <view wx:else>&emsp;&emsp;{{tongue.result}}</view>
    </block>
  </view>
</view>

<exception wx:if="{{tongueException.length}}" dataset="{{tongueException}}"></exception>

<view class="card-wrapper tongue-container" wx:if="{{face.result && i18n.analysis.__show__}}" mark:type="face" bind:tap="preview">
  <view wx:if="{{isShowType}}">
    <view class="togue-title">{{i18n.analysis.face}}</view>
  </view>
  <view class="card-title" wx:else>
    <view class="tongue-right">
      <view>
        <image src="../../assets/icon/icon_face@2x.png" class="icon-title" />
      </view>
      <view class="text-title">{{i18n.analysis.face}}{{i18n.analysis._}}</view>
    </view>
    <block wx:if="{{exception.face === false && face.exception.length}}">
      <view class="extra-warapper" slot="right-icon" mark:operation="exception-group">
        <text>详情</text>
        <t-icon t-class="icon" name="chevron-right-double-s" size="24px" />
      </view>
    </block>
  </view>

  <view wx:if="{{i18n.analysis.__showContent__}}" class="card-body constitution-container">
    <view wx:if="{{simple.face === false}}" class="talbel-wrapper">
      <view class="tr">
        <view wx:for="{{face.table.columns}}" wx:key="*this" class="th">{{item}}</view>
      </view>
      <view wx:for="{{face.table.data}}" wx:key="0" wx:for-item="data" class="tr {{data.exception ? 'exception': ''}} {{data.invalid ? 'invalid' : ''}}">
        <view wx:for="{{face.table.columns}}" wx:key="*this" wx:for-index="index" class="td">
          <rich-text nodes="{{data[index]}}"></rich-text>
        </view>
      </view>
    </view>
    <view wx:else="">&emsp;&emsp;{{face.result}}</view>

      <view wx:if="{{face.cover.length}}" class="picture-wrapper">
      <image wx:for="{{face.cover}}" wx:key="*this" src="{{item}}" mode="aspectFit" />
    </view>
  </view>
</view>

<exception wx:if="{{faceException.length}}" dataset="{{faceException}}"></exception>