<!--pages/register/index.wxml-->
<view class="container">
<view class="height20"></view>
  <!-- <form bindsubmit="formSubmit" class="registerForm">
    <view class="inputItem"><input type="text" name="phone" placeholder="请输入手机号" placeholder-style="color:rgba(255, 255, 255, 0.85);font-size:28rpx"/></view>
    <view style="font-size: 24rpx;color: rgba(255, 255, 255, .5);padding-left:50rpx;margin-top: 10rpx;">注册默认密码：123456</view>
    <view class="submitBtn width508">
      <van-button block round color="#2C6CEC" plain type="info" form-type="submit">注册</van-button>
      <view style="font-size: 24rpx;color: #FFFFFF;text-align: center;margin-top: 50rpx;" bindtap="toLogin">已有账号？去登录</view>
    </view>
  </form> -->

  <form bindsubmit="formSubmit">
      <view class="part">
        <view class="topItem topItem1">
          <input name="roleName" value='{{roleName}}' hidden='true' />
          <van-field label="账号" required readonly input-align="right" border="{{false}}" />
          <van-field label="" name="account" placeholder="请输入账号" border="{{false}}" />
        </view>

        <view class="topItem topItem1">
          <van-field label="姓名" required readonly input-align="right" border="{{false}}" />
          <van-field label="" name="name" placeholder="请输入船主姓名" border="{{false}}" />
        </view>

        <view class="topItem topItem1">
          <van-field label="手机号" required readonly input-align="right" border="{{false}}" />
          <van-field label="" name="phone" placeholder="请输入船主手机号" border="{{false}}" />
        </view>

        <view class="topItem topItem1">
          <van-field label="船舶号" required readonly input-align="right" border="{{false}}" />
          <van-field label="" name="nickname" placeholder="请输入船舶号" border="{{false}}" />
        </view>

        <!-- <view class="topItem">
          <van-field label="船舶证书上传" required readonly input-align="right" border="{{false}}" />
          <van-field name="" model:value="" label="" class="uploadBox">
            <view slot="input" class="uploadboxView">
              <van-uploader name="" deletable="{{true}}" data-type="fileList" file-list="{{ fileList }}" bind:after-read="afterRead" bind:delete="deleteImg" max-count="6" preview-size="110" />
            </view>
          </van-field>
        </view> -->
        
        <view style="font-size: 24rpx;color: #1989fa;padding-left:50rpx;margin-top: 10rpx;">注册默认密码：123456<text style="font-size: 24rpx;color: #ee0a24;text-align: left;margin-top: 50rpx;margin-left: 20rpx;" bindtap="toLogin">已有账号？去登录</text>
        </view>
      </view>
      
      <view class="fixedBtn submitBtn">
        <van-button loading="{{isSubmitting}}" round block disabled="{{isSubmitting}}" loading-text="{{isSubmitting?'提交中...':''}}"  type="info" form-type="submit">注册成为船主
        </van-button>
      </view>

    </form>
</view>