<wxs module="_">

</wxs>
<!--module/health/components/care-scheme/care-scheme.wxml-->
<view class="card-wrapper">
  <view class="constitution-container">
    <view class="card-header constitution-box">
      <t-loading wx:if="{{loading}}" theme="spinner" size="20px" class="loading" />
      <view class="card-title">
        <view>
          <image src="../../assets/icon/icon_record@2x.png" class="icon-title" />
        </view>
        <view class="text-title">我的{{i18n.health.condition}}</view>
      </view>
      <slot name="extra"></slot>
    </view>


    <view class="table-box">
      <view class="care-scheme-card" style="margin:0" wx:if="{{careRecordList.length>0}}">
        <view wx:if="{{careRecordList && careRecordList[0].items.length>0}}" bind:tap="goDetail" data-id="{{careRecordList[0].id}}">
          <view class="scheme-title-row">
            <t-tag theme="primary" shape="round" size="small" class="status-tag">调理中</t-tag>
            <text class="scheme-title" wx:if="{{careRecordList && careRecordList[0].conditioningWrapName}}">{{careRecordList[0].conditioningWrapName}}</text>
          </view>
          <view class="scheme-list" wx:for="{{careRecordList[0].items}}" wx:for-item="item" wx:key="index">
            <view class="scheme-list-row">
              <text class="item-name">{{item.conditioningProgramName}}</text>
              <text class="item-desc">每{{item.frequencyType}}天{{item.frequencyMeasure}}{{item.convertUnit}}</text>
            </view>
          </view>
        </view>
        <view wx:else class="empty-data">
          暂无数据
        </view>

      </view>
      <view wx:else class="empty-data">
        暂无数据
      </view>
    </view>
  </view>
</view>