<view class="search-w">
    <view class="search-w-left">
        <input class="search-input" type="text" 
          bindinput="bindinput"
                placeholder="请输入客户姓名"
               confirm-type="search"/>
    </view>
    <view class="action" bindtap="filterMessage">
        <text class="iconfont iconhome_search"></text>
        <text>搜索</text>
    </view>
</view>

<view class="to-customer-list" bindtap="toCustomerList">
  创建新的聊天
  <text class="iconfont iconmy_list_arrow fr"></text>
</view>

<view class="msg-tip">
  最近聊天
</view>

<view class="message-list">
  <view class="message-item" wx:for="{{customers}}" wx:key="index" bindtap="confirmInvite" data-index="{{index}}">
    <view class="avatar-w"></view>
    <view class="message-detail">
      <view class="detail-top">
        <text class="nickname">{{item.name}}</text>
        <text class="position"></text>
        <text class="time">{{item.latestMsgTime}}</text>
      </view>
      <view class="detail-content">
        {{item.latestMsgContent}}
      </view>
    </view>
  </view>
</view>

<invite-modal-card 
wx:if="{{cardShowStatus}}" 
house="{{house}}" 
customer="{{selectedCustomer}}"
bind:submit="submit"
bind:cancle="cancle"
/>