<!--pages/updateInfo/index.wxml-->
<view class="container">
  <view class="height20"></view>
  <view>
    <form bindsubmit="formSubmit">
      <view class="part">
        <input name="id" value='{{userId}}' hidden='true' />
        <view class="topItem topItem1">
          <van-field label="姓名" required name="name" model:value="{{name}}" placeholder="请输入司机姓名" border="{{false}}" />
        </view>

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

        <view class="topItem topItem1">
          <van-field label="船舶号" required name="nickname" model:value="{{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 }}" max-count="4" bind:after-read="afterRead" bind:delete="deleteImg" preview-size="120" />
            </view>
          </van-field>
        </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>
</view>