<import-sjs from='../../../utils/index/utils.sjs' name='util'>
  <view class="page">
    <view class="main" onTap="clickAudio">
      <top-title urlPath='../../../' titleText="受访人列表" />
      <view class="content">
        <view class="search-box flex1">
          <view a:for="{{ searchList }}" class="search-item">
            <text>{{item.name}}</text>
            <input
              class="input"
              value="{{searchForm[item.val]}}"
              onInput="getVal"
              data-key="{{item.val}}"
            />
          </view>
          <view class="flex1">
            <view class="inquire magnify" onTap="inquireFun">查询</view>
            <view class="clear magnify" onTap="clearFun">清空</view>
          </view>
        </view>
        <view class="table">
          <view class="table-tit flex1">
            <view class="table-item one">序号</view>
            <view class="table-item two">姓名</view>
            <view class="table-item three">手机号</view>
            <view class="table-item three1">身份证号</view>
            <view class="table-item four">单位名称</view>
            <view class="table-item five">部门</view>
            <view class="table-item six">楼层</view>
            <view class="table-item seven">房间号</view>
            <view class="table-item eight">显示标题</view>
          </view>
          <view a:for="{{ tableList }}" class="table-content flex1">
            <view class="table-item col one">{{(index+1+sliceStart)}}</view>
            <view class="table-item col two">
              {{ util.desensitization(item.name, 1, 2)}}
            </view>
            <view class="table-item col three">
              {{util.desensitization(item.phone, 3, 7)}}
            </view>
            <view class="table-item col three1">
              {{util.desensitization(item.idNumber, 6, 14)}}
            </view>
            <view class="table-item col l-h four">{{item.company}}</view>
            <view class="table-item col l-h five">{{item.unitName}}</view>
            <view class="table-item col l-h six">{{item.floor}}</view>
            <view class="table-item col l-h seven">{{item.room}}</view>
            <view class="table-item col l-h eight">{{item.showTitle}}</view>
          </view>
          <tail-tip total='{{total}}' pageNum='{{pageNum}}'>
          </tail-tip>
        </view>
        <view a:if="{{ total>0 }}" class="bottom flex1">
          <view class="previous magnify" onTap="previousFun">上一页</view>
          <view class="next magnify" onTap="nextFun">下一页</view>
          <view class="total">共{{total}}条记录【 {{pageSize}}/{{pageNum}}】</view>
        </view>
      </view>
      <bottom-parnel suerName="{{'确定'}}" onSure="sure" logOut="{{formPath?'/pages/home/index':'/pages/settings/index/index'}}" />
    </view>
  </view>
