<!--pages/login/index.wxml-->
<view class="container">
  <van-nav-bar title="" back="{{ true }}" homeButton="{{ true }}" tab="true" url="/pages/index/index" color="#fff" iconColor="#fff" background="transparent"></van-nav-bar>
  <view class="topBgBox">
    <view>湖南泽禹智能物料系统</view>
    <image src="/images/loginImg.png" mode="" mode="widthFix" style="width: 452rpx;" />
  </view>
  <form bindsubmit="formSubmit" class="formBox">
    <van-cell-group>
      <view class="item">
        <van-field model:value="{{ account }}" name="account" placeholder="请输入账号" border="{{ false }}" custom-style="width:100%;flex:1;background-color: transparent;border-radius:60rpx;" placeholder-style="color:rgba(255,255,255,0.45);">
          <van-icon class-prefix='iconfont' slot='left-icon' name='login_icon_ID_nor' size="40rpx" color="#ffffff"></van-icon>
        </van-field>
      </view>
      <view class="item">
        <van-field model:value="{{ password }}" name="password" placeholder="请输入密码" border="{{ false }}" password="{{!showPass}}" custom-style="width:100%;flex:1;background-color: transparent;border-radius:60rpx;" placeholder-style="color:rgba(255,255,255,0.45);">
          <van-icon class-prefix='iconfont' slot='left-icon' name='mima' size="40rpx" color="#ffffff"></van-icon>
          <van-icon class-prefix='iconfont' slot='right-icon' name='yanjing' size="40rpx" color="#ffffff" wx:if="{{showPass}}" bindtap="toggleShowPass"></van-icon>
          <van-icon class-prefix='iconfont' slot='right-icon' name='yanjing1' size="40rpx" color="#ffffff" wx:else bindtap="toggleShowPass"></van-icon>
        </van-field>
      </view>
    </van-cell-group>

    <view class="submitBtn width520">
      <van-button block round color="#2C6CEC" plain type="info" form-type="submit">确定</van-button>
      <view style="font-size: 25rpx;color: #FFFFFF;text-align: center;margin-top: 50rpx;">
        <text data-url="../register/index" bind:tap="toLink" class="register">司机注册</text>
        <text data-url="../register/indexShip" bind:tap="toLink" class="register">船主注册</text>
        <!-- <button type="default" size="mini" class="registerBtn" open-type="getPhoneNumber" bindgetphonenumber='getPhoneNumber' style="width:auto !important;padding:0 10rpx;display: inline-block;background-color: transparent;border: none;color: #fff;vertical-align: middle;">快速注册</button> -->
      </view>
    </view>

  </form>
  <van-dialog id="van-dialog" />
</view>