<!--pages/personCenter/personCenter.wxml-->
<view class="nav">
    <view class="title">个人中心</view>
</view>
<view class="page">
  
    <view class="headbox" wx:if="{{isLogin}}">
        <van-image round class="headImg" width="240rpx" height="240rpx" src="{{userInfo.photo?userInfo.photo:img_host+'/default_avatar.png'}}"
/>
   <view class="name">{{userInfo.name}}</view>
   <view class="hospital">{{userInfo.hospitalName}}</view>
    </view>
    <view class="headbox" wx:else bind:tap="goLogin">
        <van-image round class="headImg" width="240rpx" height="240rpx" src="{{img_host+'/default_avatar.png'}}"
/>
   <view class="name">点击登录</view>
   <view class="hospital">-</view>
    </view>
    <view class="databox">
      <videw class="datacell">
         <view class="num">{{isLogin?userInfo.passNum:'-'}}</view>
          <view class="name">已通过</view>
      </videw>
      <videw class="datacell">
         <view class="num">{{isLogin?userInfo.waitNum:'-'}}</view>
          <view class="name">待审核</view>
      </videw>
      <videw class="datacell">
         <view class="num {{isLogin?'active':'-'}}">{{isLogin?userInfo.refuseNum:'-'}}</view>
          <view class="name">待修改</view>
      </videw>
      <videw class="datacell">
         <view class="num {{isLogin?'active':'-'}}">{{isLogin?waitSubmitNum:'-'}}</view>
          <view class="name">待提交</view>
      </videw>
    </view>
    <view class="itembox">
       <view class="cell" bind:tap="goAgree">
          <view class="row">
            <view class="left">
              <image src="{{img_host+'/xiangmu.png'}}" mode="" class="item"/>
              <view class="name">项目协议</view>
            </view>
            <van-icon name="arrow" color="#8c8c8c"/>
          </view>
       </view>
       <view class="cell"  bind:tap="goDescription">
          <view class="row">
            <view class="left">
              <image src="{{img_host+'/caozuo.png'}}" mode="" class="item"/>
              <view class="name">操作说明</view>
            </view>
            <van-icon name="arrow" color="#8c8c8c"/>
          </view>
       </view>  
    </view>
    <view class="logout" wx:if="{{isLogin}}" bind:tap="handleLogout">退出登录</view>
</view>