<!-- 绑定/创建修改就诊卡 -->
<view class="tag5">
  <view>
    <view class="form" >
      <list>
      <block a:if="{{btnText === '修改就诊卡'}}">
        <input-item
         data-field="relationShip"
         placeholder="选择关系"
         value="{{relationShip}}"
         disabled="{{true}}"
       >
         关系
       </input-item>
      </block>
      <block a:else>
         <picker-item
           data-field="relationShip"
           placeholder="选择关系"
           value="{{relationShip}}"
           onPickerTap="onChangeRelationShip"
         >
           关系
         </picker-item>
      </block>
        <input-item
          a:if="{{type === 1}}"
          data-field="cardNum"
          clear="{{true}}"
          value="{{cardNum}}"
          placeholder="请输入就诊卡号"
          onInput="onItemInput"
          onClear="onClear">
          就诊卡号
        </input-item>
        <input-item
          data-field="name"
          placeholder="请输入就诊人姓名"
          type="text"
          value="{{name}}"
          onInput="onItemInput"
          onClear="onClear"
          disabled="{{btnText === '修改就诊卡' || relationShip === '本人'}}"
        >就诊人姓名</input-item>
        <input-item
          data-field="idCardNo"
          placeholder="请输入身份证号"
          type="text"
          value="{{btnText === '修改就诊卡' ? viewIdCardNo : idCardNo}}"
          clear="{{true}}"
          onInput="onItemInput"
          disabled="{{btnText === '修改就诊卡' || relationShip === '本人'}}"
          onClear="onClear">
            身份证号码
         </input-item>
        <picker-item
           data-field="defaultCard"
           placeholder="是否默认"
           value="{{defaultCard}}"
           onPickerTap="onChangeDefaultCard"
         >
           是否默认
         </picker-item>
      </list>
    </view>
    <view class="form">
      <list>
        <input-item
          data-field="phoneNumber"
          value="{{phoneNumber}}"
          placeholder="请输入手机号"
          clear="{{true}}"
          onInput="onItemInput"
          onClear="onClear"
         >
          手机号
        </input-item>
        <block a:if="{{componentData.componentExtInfo.needPhoneOauth === 'true'}}">
         <verify-code
          data-field="verifyCode"
          onInput="onItemInput"
          value="{{verifyCode}}"
          onClear="onClear"
          countDown="{{60}}"
          onSend="onSend"
          onPromise="onSend">
        </verify-code>
        </block>
      </list>
    </view>
    <view class="primary-btn">
      <button type="primary" disabled={{submitBtnDisabled}} onTap="createCardApi" >
        {{btnText}}
      </button>
    </view>
  </view>
</view>
