<!--pages/home/body-model/body-model.wxml-->
<view class="body-model-wrapper" style="height: {{container.height}}px;" bind:tap="onBodyModel">
  <image wx:if="{{model.width}}" style="width: {{model.width}}px;height: {{model.height}}px;" class="container-bg-image" src="../../../assets/bg/body-model.bg.png" mode="widthFix" />
  <view wx:if="{{dataset}}" class="container" style="width: {{container.width}}px;height: {{container.height}}px;">
    <view class="card LT" style="top:{{LT.top}};left: {{LT.left}};" mark:position="LT">
      <view class="frame-wrapper">
        <image src="../../../assets/bg/body-model-frame.bg.png" mode="aspectFit" />
        <view class="content">
          <form-button index="1">{{dataset.willillStateName}}</form-button>
          <text max-lines="1" overflow="ellipsis" wx:if="{{dataset.willillDegreeName}}">程度：{{dataset.willillDegreeName}}</text>
          <text max-lines="1" overflow="ellipsis" wx:if="{{dataset.willillFunctionName}}">表现：{{dataset.willillFunctionName}}</text>
        </view>
      </view>
      <view class="line"></view>
    </view>
    <view class="card RT" style="top:{{RT.top}};left: {{RT.left}};" mark:position="RT">
      <view class="line-wrapper">
        <view class="line line-1"></view>
        <view class="line line-2"></view>
      </view>
      <view class="frame-wrapper">
        <image src="../../../assets/bg/body-model-frame.bg.png" mode="aspectFit" />
        <view class="content">
          <view>体质</view>
          <form-button index="2">{{dataset.constitutionGroupName}}</form-button>
        </view>
      </view>
    </view>
    <view class="card RB" style="top:{{RB.top}};left: {{RB.left}};" mark:position="RB">
      <view class="line"></view>
      <view class="frame-wrapper">
        <image src="../../../assets/bg/body-model-frame.bg.png" mode="aspectFit" />
        <view class="content">
          <view>中医证素</view>
          <form-button index="2">{{dataset.factorItemSummary}}</form-button>
        </view>
      </view>
    </view>

    <view class="card LB" style="top:{{LB.top}};left: {{LB.left}};" mark:position="LB">
      <view class="frame-wrapper">
        <image src="../../../assets/bg/body-model-frame.bg-1.png" mode="aspectFit" />
        <view class="content">
          <form-button index="1">健康分析报告</form-button>
          <view>{{dataset.reportTime}}</view>
        </view>
      </view>
      <!-- <form-button index="1">健康分析报告</form-button> -->
      <view class="line"></view>
    </view>
  </view>
  <view class="index-wrapper" mark:position="CT">
    <slot></slot>
  </view>
</view>