<!--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">
          <view class="labelTitle">姓名</view>
          <van-field label="" name="name" model:value="{{name}}" placeholder="请输入司机姓名" border="{{false}}" />
        </view>

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

        <view class="topItem">
          <van-field required="{{roleNameList=='6d76cxil3s'}}" label="车牌号码" readonly border="{{false}}"></van-field>
          <car-num-input bind:setCarNum="licensePlate" isKeyboard="{{isKeyboard}}" inputOnFocusIndex="{{inputOnFocusIndex}}" inputPlates="{{inputPlates}}" isNewEnergy="{{isNewEnergy}}"></car-num-input>
          <input name="nickname" value='{{licensePlate}}' hidden='true' />
        </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>