<page-container>
  <view class="tourists-operate">
    <list>
      <view class="margin-bottom24">
        <input-item
          data-field="objInfo.name"
          placeholder="请输入姓名"
          placeholderStyle="color:#999"
          type="text"
          value="{{objInfo.name}}"
          clear="{{true}}"
          onInput="onItemInput1"
          onClear="onClear1"
        >姓名</input-item>
      </view>

      <picker
        onChange="bindObjPickerChange"
        value="{{arrIndex}}"
        range="{{objectArray}}"
        range-key="name"
        class="picker-style"
      >
        <view class="list-type2">
          <view class="list-type2-conten">
            <view class="list-type2-title">证件类型</view>
            <view
              class="list-type2-extra"
              a:if="{{objectArray[arrIndex].name}}"
            >
              <text class="color333"> {{objectArray[arrIndex].name}}</text>
              <am-icon
                class="am-icon-right1"
                type="right"
                size="13"
              />
            </view>

            <view
              class="list-type2-extra"
              a:else
            >
              <text
                class="color333"
                a:if="{{hasCertType}}"
              >{{hasCertType}}</text>
              <text
                class="color999"
                a:else
              >请选择证件类型</text>
              <am-icon
                class="am-icon-right"
                type="right"
                size="13"
              />
            </view>
          </view>
        </view>
      </picker>
      <view class="id-card">
        <input-item
          data-field="objInfo.idCardNo"
          placeholder="请输入证件号码"
          placeholderStyle="color:#999"
          type="text"
          value="{{objInfo.idCardNo||''}}"
          clear="{{true}}"
          onInput="onItemInput2"
          onClear="onClear2"
        >证件号码</input-item>
      </view>

      <view class="margin-bottom24">
        <input-item
          data-field="objInfo.mobile"
          placeholder="请输入手机号"
          placeholderStyle="color:#999"
          type="text"
          value="{{objInfo.mobile||''}}"
          clear="{{true}}"
          onInput="onItemInput3"
          onClear="onClear3"
        >手机号</input-item>
      </view>
    </list>

    <view class="btn-list">
      <view
        class="btn-sure"
        a:if="{{!objInfo.id}}"
        style="background:{{isDesible?'#999':'#1677FF'}}"
        onTap="goTouristsOperate"
        data-tag="add"
      >保存</view>
      <view a:else>
        <view
          class="btn-sure"
          style="background:{{isDesible?'#999':'#1677FF'}}"
          onTap="goTouristsOperate"
          data-tag="update"
        >保存</view>
        <view
          class="btn-delete"
          onTap="goTouristsOperate"
          data-tag="delete"
        >删除</view>
      </view>

    </view>

  </view>
</page-container>