<!--pages/clockIn/index.wxml-->
<view class="clockin">
  <image src="https://image-fudan.oss-cn-beijing.aliyuncs.com/mini_images/my/my-top-bg.png" mode="aspectFill" class="clockin-img"></image> 
  <t-navbar
    t-class-placeholder="t-navbar-placeholder"
    t-class-content="t-navbar-content"
    class="block"
    title="随访计划"
  />
  <view class="clockin-item" wx:for="{{dataList}}" wx:key="id">
    <view class="margin-16 success" wx:if="{{item.status == 2}}">已完成</view>
    <view class="margin-16" wx:if="{{item.status == 1}}">未开始</view>
    <view class="margin-16 primary" wx:if="{{item.status == 3}}">待开始</view>
    <view class="item-top">
      <text>{{item.plan_date}}</text>
      
    </view>
    <view class="dose">{{item.plan_name}}</view>
    <t-button theme="primary" block bindtap="toQuestionnaire" data-id="{{item.id}}" data-time="{{item.plan_date}}" data-name="{{item.plan_name}}" wx:if="{{item.status == 2}}">填写随访问卷</t-button>
    <t-button bindtap="toRegister" theme="primary" block wx:if="{{item.status == 3}}">预约挂号</t-button>
  </view>
  
  <view class="footer-example" wx:if="{{planId}}">
    <view bindtap="toQuestionnaire" data-id="{{planId}}">
      <text class="iconfont icon-zengjiatianjiajiahao"></text>
      添加随访
    </view>

   
  </view>
</view>

<view class="emergency-access" bindtap="toEmergency">
  <text class="iconfont icon-xiaoxi1" ></text>
</view>