<!--pages/mine/index.wxml-->
<view class="container">
  <!-- <view style="{{'height:'+toolHeight+'px'}}" class="status"></view>
  <view class="" style="height: 44px;line-height: 44px;color: #fff;text-align: center;">我的</view> -->

  <van-sticky>
    <van-nav-bar title="我的" back="{{ false }}" color="#fff" iconColor="#fff" background="{{floorstatus?'#375edf;':'transparent'}}" borderColor="transparent"></van-nav-bar>
  </van-sticky>

  <!-- 基本信息 -->
  <view class="part header">
    <view class="headerImg">
      <view>
        <image src="{{avatar}}"></image>
      </view>
    </view>
    <block wx:if="{{loginStatus}}">
      <view class="userName">
        <view class="showName"><van-icon class='iconfont' name='/images/myself.png' size="30rpx" style="margin-right: 10rpx;"></van-icon>
          <block>{{name}}</block>
        </view>
        <view class="showName">
            <view style="font-size: 24rpx;display: inline-block;">{{phone}}<!---{{roleCodeList == '1'?'管理员':'司机角色'}}--></view>
        </view>
      </view>
    </block>
    <block wx:else>
      <view class="toLogin" bindtap="toLogin">点击登录账户</view>
    </block>
  </view>
  <view class="height20"></view><view class="height20"></view>
  <!-- 第二部分菜单 -->
  <view class="nav">
    <van-cell title="完善信息" is-link data-url="../updateInfo/index" bind:click="toLink"
          wx:if="{{ roleCodeList == 'driver'||roleCodeList == 'customer'||roleCodeList == 'bizAdmin'||roleCodeList == 'sale'||roleCodeList == 'send'}}">
      <van-icon name="/images/edit.png" size="18px" slot="icon" custom-class="leftIcon" />
    </van-cell>

    <van-cell title="完善信息" is-link data-url="../updateInfo/indexShip" bind:click="toLink"
          wx:if="{{ roleCodeList == 'ship'}}">
      <van-icon name="/images/edit.png" size="18px" slot="icon" custom-class="leftIcon" />
    </van-cell>

    <van-cell title="绑定微信" is-link data-url="" bind:click="bindingWX">
      <van-icon name="/images/mineIcon9.png" size="18px" slot="icon" custom-class="leftIcon" />
    </van-cell>

    <van-cell title="车辆管理" is-link data-url="../car/index" bind:click="toLink" 
          wx:if="{{ roleCodeList == 'driver'||roleCodeList == 'customer'||roleCodeList == 'bizAdmin'}}">
      <van-icon name="/images/car2.png" size="18px" slot="icon" custom-class="leftIcon" />
    </van-cell>

    <van-cell title="修改密码" is-link data-url="../updatePass/index" bind:click="toLink">
      <van-icon name="/images/lock.png" size="18px" slot="icon" custom-class="leftIcon" />
    </van-cell>
  </view>
  <view class="submitBtn width520" style="background-color: #fff;border-radius: 40rpx;">
    <van-button block round type="primary" plain color="#2C6CEC" bindtap="logout" disabled="{{!loginStatus}}">退出登录</van-button>
  </view>
</view>

<wxs module="filters" src="../../utils/filter.wxs"></wxs>