<div class="salesWrapper">
  <div class="search_wrapper" *ngIf="pageType=='linkrecruiting'">
    <div class="am-demo-page">
      <div class="am-demo-bd" >
          <SearchBar [placeholder]="'搜索你的增员'" [maxLength]="8"
          (onChange)="change($event)"
          ></SearchBar>
      </div>
    </div>
  </div>
  <ul class="tab" *ngIf="this.pageType == 'recruiting'">
    <li *ngFor="let titleItem of titleList" (click)="selectTab(titleItem.id)"
      [ngClass]="{selected:selectedId===titleItem.id}">
      <div style="position: relative;">
        <h3>{{titleItem.name}}
        </h3>
      </div>
    </li>
  </ul>
  <div class="salesContent">
    <div style="text-align: center;margin: 20px auto;font-size: 20px;" *ngIf="businessList?.length==0">暂无商机</div>
    <div class="salesItem" *ngFor="let recruitingItem of showRecruitingList" (click)="isJumpToDetail(recruitingItem.potentialId,recruitingItem)">
      <div class="icon_bolck" *ngIf="pageType=='recruiting'"><span class="iconfont icon-tuanduiguanlisvg"></span></div>
      <div *ngIf="pageType=='linkrecruiting'" class="linkbusinessRadius">
        <span class='circlebtn' *ngIf="selectedRecruiting?.potentialId != recruitingItem.potentialId"></span>
        <img src="assets/images/gou_icon.png" *ngIf="selectedRecruiting?.potentialId == recruitingItem.potentialId" style="position: absolute;width: 100%;" >
      </div>
      <div class="line">
        <div>姓名：{{recruitingItem.name}}</div>
        <span class="iconfont icon-ar-r" style="font-size: 10px;position: relative; right: -2px;" *ngIf="pageType=='recruiting'"></span>

      </div>
      <div class="line">
        <div> 手机号：{{recruitingItem.mobileNo}}</div>
        <div>{{recruitingItem.trackStatus}}</div>
      </div>
      <div class="line">
        <div>招募来源：{{recruitingItem.resourceDropMasterName}}</div>
        <div>{{recruitingItem.createdAt}}</div>
      </div>
    </div>
  </div>
  <div class="footer" *ngIf="pageType=='linkrecruiting'" (click)="returnAddTask()">
    确认
  </div>
  <div class="add" *ngIf="pageType=='recruiting' && selectedId !=4">
    <i class="iconfont icon-jiahao" (click)="addMember()"></i>
  </div>
</div>
<ydlife-toast *ngIf="toastDialog" [toastInfo]="toastInfo"></ydlife-toast>