<!--pages/myDoctor/myDoctor.wxml-->
<nav navName="我的医生"></nav>
<view class="page">
    <van-tabs animated type="line" class="tabs" tab-class="tabdiv" wrap-class="tabwrap" custom-class="tabbox" line-width="50rpx" tab-active-class="tabactive" title-inactive-color="#1C2023;" line-height="height: 10rpx;" title-active-color="#3CC7C0"  color="#3CC7C0" bind:change="onChange" >
     <van-tab title="问诊医生" class="vantab">
    <scroll-view  scroll-y="true" class="scrollwraper" bindrefresherrefresh="handleRefresher" refresher-triggered="{{isTriggered}}"	refresher-threshold="100"	refresher-enabled="true"  bindscrolltolower="lower" wx:if="{{list.length>0}}">
      <view class="viewcell"  bindtap="goExpertDetail" wx:for="{{list}}" wx:key="doctor_id" data-id="{{item.user_doctor.doctor_id}}">
        <view class="left">
          <image src="{{item.user_doctor.avatar}}" wx:if="{{item.user_doctor.avatar}}" mode="aspectFill"></image>
          <image src="{{img_host+'/doctor_avatar.png'}}"  wx:else></image>
        </view>
        <view class="right">
          <view class="namebox">
            <view class="name">{{item.user_doctor.user_name}}</view>
            <view class="type" wx:if="{{item.user_doctor.hospital.hospital_level_name != '未知'&& item.user_doctor.hospital.hospital_level_name}}">{{item.user_doctor.hospital.hospital_level_name}}</view>
            <view class="type" wx:if="{{item.user_doctor.multi_point_status == 1 && item.user_doctor.multi_point_enable==1}}">可处方</view>
          </view>
          <view class="hospital"><text  wx:if="{{item.user_doctor.doctor_title_name}}" class="doctor_title">{{item.user_doctor.doctor_title_name}}</text> <text>{{item.user_doctor.department_custom_name}}</text></view>
          <view class="hospital">{{item.user_doctor.hospital.hospital_name}}</view>
          <view class="goodjob" wx:if="{{item.user_doctor.be_good_at}}">擅长：{{item.user_doctor.be_good_at}}</view>
          <view class="diseaseType" wx:for="{{item.doctor_expertise}}" wx:for-item="cell" wx:key="expertise_id">{{cell.expertise_name}}</view>
         
        </view>
        <image src="{{img_host+'/del.png'}}" class="del" catchtap="delHandle" data-id="{{item.user_doctor.doctor_id}}" wx:if="{{my_doctor_type==1}}"> </image>
      </view>
  </scroll-view >
  <view class="nonedata" wx:else>
    暂无数据！
  </view>  
  </van-tab>
  <van-tab title="关注医生"  class="vantab">
    <scroll-view scroll-y="true" class="scrollwraper" bindrefresherrefresh="handleRefresher" refresher-triggered="{{isTriggered}}"	refresher-threshold="100"	refresher-enabled="true"  bindscrolltolower="lower" wx:if="{{list.length>0}}">
      <view class="viewcell" bindtap="goExpertDetail" wx:for="{{list}}" wx:key="doctor_id" data-id="{{item.user_doctor.doctor_id}}">
        <view class="left">
          <image src="{{item.user_doctor.avatar}}" wx:if="{{item.user_doctor.avatar}}" mode="aspectFill"></image>
          <image src="{{img_host+'/doctor_avatar.png'}}"  wx:else></image>
        </view>
        <view class="right">
          <view class="namebox">
            <view class="name">{{item.user_doctor.user_name}}</view>
            <view class="type" wx:if="{{item.user_doctor.hospital.hospital_level_name != '未知'&& item.user_doctor.hospital.hospital_level_name}}">{{item.user_doctor.hospital.hospital_level_name}}</view>
            <view class="type" wx:if="{{item.user_doctor.multi_point_status == 1 && item.user_doctor.multi_point_enable==1}}">可处方</view>
          </view>
          <view class="hospital"><text  wx:if="{{item.user_doctor.doctor_title_name}}" class="doctor_title">{{item.user_doctor.doctor_title_name}}</text> <text>{{item.user_doctor.department_custom_name}}</text></view>
          <view class="hospital">{{item.user_doctor.hospital.hospital_name}}</view>
          <view class="goodjob" wx:if="{{item.user_doctor.be_good_at}}">擅长：{{item.user_doctor.be_good_at}}</view>
          <view class="diseaseType" wx:for="{{item.doctor_expertise}}" wx:for-item="cell" wx:key="expertise_id">{{cell.expertise_name}}</view>
         
        </view>
         <image src="{{img_host+'/del.png'}}"  class="del" catchtap="delHandle" data-id="{{item.user_doctor.doctor_id}}" wx:if="{{ my_doctor_type==1}}"> </image>
      </view>
     
  </scroll-view >
  <view class="nonedata" wx:else>
    暂无数据！
  </view>  
  </van-tab>
</van-tabs>
</view>
<dialog bind:confirm="confirm" showDialog="{{show}}" message="{{message}}"></dialog>