<view class="add-passenger-page">
  <view class="form-row">
    <input placeholder="姓名" value="{{name}}" bindinput="onNameInput"/>
  </view>
  <view class="form-row">
    <picker mode="selector" range="{{idTypes}}" value="{{idTypeIndex}}" bindchange="onIdTypeChange">
      <view>证件类型：{{idTypes[idTypeIndex]}}</view>
    </picker>
  </view>
  <view class="form-row">
    <input placeholder="证件号码" value="{{idcard}}" bindinput="onIdCardInput"/>
  </view>
  <view class="form-row">
    <input placeholder="手机号" value="{{phone}}" bindinput="onPhoneInput" type="number" maxlength="11"/>
  </view>
  <button class="save-btn" bindtap="savePassenger">保存</button>
</view>