<view class="page">
 
  <view class="group_2">
    <view class="text-wrapper_1">
      <text lines="1" class="text_2">{{list[0].medicine_date}}</text>
      <text lines="1" class="text_3" bind:tap="toRecord">历史服药记录</text>
    </view>
  </view>
  <view class="group_3">
    <view class="group-item" wx:for="{{list}}">
      <view class="after"></view>
    <view class="{{item.status == 2 ? 'section_2 acitve' : 'section_2'}}">
      <view class="group_4"></view>
      <text lines="1" class="text_4">{{item.medicine_time}}</text>
    </view>
    <view class="section_3" wx:for="{{item.detail}}" wx:for-item="detail">
      <view class="block_1">
        <view class="image-text_1">
          <view class="section_4"></view>
          <view class="text-group_1">
            <text lines="1" class="text_5">{{detail.name}}</text>
            <text lines="1" class="text_6">{{detail.dose}} {{detail.time}}</text>
          </view>
        </view>
        <view class="box_1"></view>
        <text lines="1" class="text_7" wx:if="{{item.status == 2}}">已打卡</text>
        <view class="text-wrapper_3" wx:if="{{item.status == 1}}" data-id="{{item.id}}" data-status="{{item.status}}" bind:tap="medicineRecord">
          <text lines="1" class="text_14">打卡</text>
        </view>
      </view>
    </view>
    </view>
    
    
    
  </view>
</view>