<view class="preview_record_component" onTap="toDetail" data-orderId="{{item.orderId || item.visitId}}">
  <view class="top_container" >
    <view
      class="header"
      a:if="{{!isSee}}"
    >
      <view class="left success" a:if="{{item.status === 0}}">待支付</view>
      <view class="left success" a:elif="{{item.status === 1}}">预约成功</view>
      <view class="left cancel" a:elif="{{item.status === 7}}">已就诊</view>
      <view class="left cancel" a:elif="{{item.status === 8}}">过期未就诊</view>
      <view class="left cancel" a:elif="{{item.status === 9}}">已取消</view>
      <view class="left" a:else>其他</view>
      <view class="right">{{item.timeRange}}</view>
    </view>
    <view class="main_title">{{item.depName}}</view>
    <view class="info_section">
      <view class="item">
        <view class="left">就诊人</view>
        <view class="right">{{item.userName}}</view>
      </view>
      <view class="item">
        <view class="left">医生</view>
        <view class="right">{{item.doctorName}}</view>
      </view>
      <view class="item" a:if="{{item.orderNo}}">
        <view class="left">预约编号</view>
        <view>{{item.orderNo}}</view>
      </view>
       <view class="item" a:if="{{item.visitId}}">
        <view class="left">就诊编号</view>
        <view>{{item.visitId}}</view>
      </view>
      <block a:if="{{item.visitTime}}">
        <view class="item">
          <view class="left">就诊时间</view>
          <view>{{item.visitTime}}</view>
        </view>
      </block>
    </view>
  </view>
  <view class="line"></view>
  <view class="to_detail">
    <title type="arrow" className="detail_desc" >查看详情</title>
  </view>
</view>
