<page-container>
  <view class="select-tourist-list">
    <view
      a:for="{{renderList}}"
      a:for-item="item"
      a:for-index="index"
      data-value="{{item.id}}"
      class="select-tourist-item"
    >
      <view class="delete-button" data-value="{{item.id}}" onTap="onDeleteItem">
        <view class="plus-icon reduce"/>
      </view>
      <view class="tourist-item-content" data-value={{item}} onTap="toDetailPage">
        <view class="tourist-desc">
          <view class="tourist-name">{{item.name}}</view>
          <view class="tourist-info-item" a:if="{{!!item.mobile}}">
            手机号 {{item.mobile}}
          </view>
          <view class="tourist-info-item" a:if="{{!!item.idCardNo}}">
            <text a:if="{{item.certType === 'Idcard'}}">身份证</text>
            <text a:if="{{item.certType === 'Passport'}}">护照</text>
            <text a:if="{{item.certType === 'HKAndMacauTaiwanPermit'}}">港澳通行证</text>
            <text class="card-text">{{item.idCardNo}}</text>
          </view>
        </view>
        <am-icon type="right" size="16" />
      </view>
    </view>
  </view>
</page-container>


