<view class="hospital-home-popup">
  <popup disableScroll="{{ false }}" show="{{show}}" title="请选择就诊人" onClose="onClosePopup">
    <view class="select-person-container">
      <view class="top">
        <text class="top-title">请选择就诊人</text>
        <view onTap="onClosePopup">
          <image class="top-image" mode="scaleToFill" src="https://gw.alipayobjects.com/mdn/rms_e695cc/afts/img/A*dEvTSpTQtbEAAAAAAAAAAAAAARQnAQ" />
        </view>
      </view>
      <view class="item-box-out">
        <view class="item-box" a:for="{{ defaultList }}">
          <view class="item-box-left">
            <!-- 人员信息 -->
            <view class="person-name">
              <text class="name">{{item.name}}</text>
              <view class="mark" a:if="{{item.bindCardNum}}">已绑定就诊卡</view>
              <view class="mark mark-grey" a:else>未绑定就诊卡</view>
              <view class="mark">{{item.relationShip === '我自己' ? '本人' : item.relationShip}}</view>
            </view>
            <view class="person-other">
              <text>{{item.sex}}，{{item.age}}岁<text a:if="{{item.phoneNumber}}">，</text>{{item.phoneNumber}}</text>
            </view>
          </view>
          <view class="item-box-button">
            <view a:if="{{index === activeIndex}}" class="card-button checked" data-index="{{index}}" data-item="{{item}}" onTap="onConfirm">
              <am-icon type="check" color="#0a7aff" size="16" />
              <text class="checked-text">已选</text>
            </view>
            <view a:else class="card-button" data-index="{{index}}" data-item="{{item}}" onTap="onConfirm">选择</view>
          </view>
        </view>
      </view>
      <view class="add-person" onTap="handleToAdd">
        <am-icon type="add" color="#1677ff" size="16" />
        <text class="text">添加就诊人</text>
      </view>
    </view>
  </popup>
</view>
