<!-- 拜访记录 -->
<view class="wrap">
  <view class="bx">
    <view class = "search-bx"> 
     <form catchsubmit="formSubmit" >

      <view style = "position:relative">
        <l-icon name="research" bindtap="on_search_tap" size="30" class="search-icon"  />
        <input class="search-input" bindinput="change_inputvalue" name="inputvalue" placeholder="请输入集团/客户名称/负责人进行搜索" value ="{{inputvalue}}"/>
        <l-icon name="error" bindtap="on_error_tap" size="30" class="error-icon"  />
      </view>



      
     </form>
      
    </view>



    <block wx:if="{{isShow}}">
      <view class="table">
 
        <block wx:for="{{table.list}}" wx:for-item="item"  wx:key="index">
 
          <view class="table_box" catchtap="on_see_tap"  data-id="{{item.id}}" >

            
            <view class="hd">
               <text class="hd_tt">{{item.customerName}}</text>
               <text class="hd_date">{{item.created}}</text>
            </view>
            <view class="bd">
               <text class="bd_tt">集团：{{item.groupName}}</text>
               <text></text>
            </view>
            <view class="bd">
               <text class="bd_tt">负责人：{{item.directorName}}</text>
               <text></text>
            </view>
     
            <!-- 隐藏 -->
            <!-- <view  catchtap="on_edit_tap" data-id="{{item.id}}" >
               <l-button  class="btn-edit" type="warning" size="mini" >编辑</l-button>
            </view> -->
             
  
     
            <view class="bd-b">
              <view  catchtap="on_service_tap" data-id="{{item.id}}" >服务记录</view>
              <view  catchtap="on_cont_tap" data-id="{{item.id}}" >联系人管理</view>
              <!-- 隐藏 -->
              <!-- <view  catchtap="on_del_tap" data-id="{{item.id}}" >删除</view> -->
          
            </view>
          
          </view>
 

        </block>
      </view>
    </block>
    <block wx:else="{{isShow}}">
      <view class="table">
         <image style="width: 400rpx; height: 400rpx;margin:0 auto" mode="aspectFit" src="{{noData}}"></image>
         <text style="margin:0 auto">{{dataListTips}}</text> 
      </view>
    </block>

    <l-button  class="btn-add"  bindtap="on_add_tap" type="default" size="medium" formType="submit">添加客户</l-button>
   

  </view>

 
</view>

