list.wxml 4.1 KB

1
  1. <view><view class="customer-list-wrap"><block wx:if="{{$root.g0==0}}"><view class="empty-wrap"><u-empty vue-id="6bbba975-1" mode="list" text="暂无相关客户" bind:__l="__l"></u-empty></view></block><block wx:for="{{customerList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="customer-item"><view class="info"><view class="customer"><view class="relname">{{''+item.name+''}}<u-icon class="u-m-l-5" vue-id="{{'6bbba975-2-'+index}}" name="{{item.sex=='male'?'man':'woman'}}" size="22" color="{{item.sex=='male'?'#2080f0':'#f85f69'}}" bind:__l="__l"></u-icon><u-icon class="u-m-l-20" vue-id="{{'6bbba975-3-'+index}}" name="attach" size="32" label="快速报备" label-size="28" color="#f00" label-color="#f00" data-event-opts="{{[['^click',[['pageTo',['/pages/agent/recommend/create',['o',['info',item]]]]]]]}}" bind:click="__e" bind:__l="__l"></u-icon><block wx:if="{{curRoles==1||curRoles==5||curRoles==7||curRoles==10||curRoles==11}}"><u-icon class="u-m-l-20" vue-id="{{'6bbba975-4-'+index}}" name="attach" size="32" label="内部报备" label-size="28" color="#ff9800" label-color="#ff9800" data-event-opts="{{[['^click',[['pageTo',['/pages/agent/recommend/createin',['o',['info',item]]]]]]]}}" bind:click="__e" bind:__l="__l"></u-icon></block></view><view class="item"><u-icon class="u-m-r-5" vue-id="{{'6bbba975-5-'+index}}" name="phone" size="22" bind:__l="__l"></u-icon>{{''+item.phone+''}}<block wx:if="{{item.realname}}"><view class="s">{{'['+item.realname+']'}}</view></block></view><block wx:if="{{item.demand}}"><view class="item">{{''+item.demand+''}}</view></block></view><view class="data-wrap"><u-tag class="u-m-r-10" vue-id="{{'6bbba975-6-'+index}}" icon="edit-pen" text="编辑" type="primary" data-event-opts="{{[['^click',[['pageTo',['/pages/cust/create',['o',['info',item]]]]]]]}}" bind:click="__e" bind:__l="__l"></u-tag></view></view></view></block></view><view data-event-opts="{{[['tap',[['pageTo',['/pages/cust/create']]]]]}}" class="float-search2" bindtap="__e"><u-icon vue-id="6bbba975-7" name="plus" size="42" color="#fff" bind:__l="__l"></u-icon></view><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="float-search" bindtap="__e"><u-icon vue-id="6bbba975-8" name="search" size="42" color="#fff" bind:__l="__l"></u-icon></view><u-popup bind:input="__e" vue-id="6bbba975-9" mode="center" width="80%" height="440rpx" border-radius="20" value="{{searchPopupShow}}" data-event-opts="{{[['^input',[['__set_model',['','searchPopupShow','$event',[]]]]]]}}" bind:__l="__l" vue-slots="{{['default']}}"><view class="bwin-popup"><view class="popup-header">客户搜索</view><view class="popup-body"><u-input bind:input="__e" vue-id="{{('6bbba975-10')+','+('6bbba975-9')}}" border="{{true}}" placeholder="请输入客户姓名(支持模糊搜索)" value="{{searchFormData.name}}" data-event-opts="{{[['^input',[['__set_model',['$0','name','$event',[]],['searchFormData']]]]]}}" bind:__l="__l"></u-input><u-divider vue-id="{{('6bbba975-11')+','+('6bbba975-9')}}" marginTop="10" marginBottom="10" bind:__l="__l" vue-slots="{{['default']}}">或</u-divider><u-input bind:input="__e" vue-id="{{('6bbba975-12')+','+('6bbba975-9')}}" border="{{true}}" placeholder="请输入客户手机号(可仅输入一部分)" value="{{searchFormData.phone}}" data-event-opts="{{[['^input',[['__set_model',['$0','phone','$event',[]],['searchFormData']]]]]}}" bind:__l="__l"></u-input></view><view class="popup-footer" style="position:absolute;"><u-button vue-id="{{('6bbba975-13')+','+('6bbba975-9')}}" size="medium" data-event-opts="{{[['^click',[['e1']]]]}}" bind:click="__e" bind:__l="__l" vue-slots="{{['default']}}">取消</u-button><u-button vue-id="{{('6bbba975-14')+','+('6bbba975-9')}}" size="medium" type="primary" data-event-opts="{{[['^click',[['searchHandle']]]]}}" bind:click="__e" bind:__l="__l" vue-slots="{{['default']}}">搜索</u-button></view></view></u-popup><block wx:if="{{$root.g1>0}}"><u-loadmore vue-id="6bbba975-15" marginTop="32" line="{{true}}" status="{{loadmore.status}}" loading-text="{{loadmore.loadingText}}" loadmore-text="{{loadmore.defaultText}}" nomore-text="{{loadmore.nomoreText}}" bind:__l="__l"></u-loadmore></block></view>