You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
2.9 KiB
Plaintext

2 years ago
<wxs src="../../common.wxs" module="tools" />
<view class="p10" wx:if="{{dataLoading}}">
<view class="weui-search-bar mb10">
<form class="weui-search-bar__form flex-1">
<view class="weui-search-bar__box">
<i class="iconfont icon-sousuo"></i>
<input type="text" class="weui-search-bar__input f15" placeholder-style="color:#999;" placeholder="搜索代理名、手机号和地址" value="{{inputVal}}" focus="{{inputShowed}}" bindinput="inputTyping" bindconfirm="searchKey" />
<span class="iconfont icon-qingchu dib" wx:if="{{inputVal.length > 0}}" catchtap="clearInput"></span>
</view>
</form>
</view>
<block wx:if="{{recordList != null && recordList.length > 0}}">
<view class="display-flex bgf mb10" hover-class="hcb" style="border:1rpx solid #eee;border-radius:8px;padding:16px 12px;" wx:for="{{recordList}}" wx:for-item="item" wx:for-index="idx" data-id="{{item.id}}" bindtap="goEditAgent">
<view class="v-center">
<view class="v-center phoneOut" catchtap="makePhone" hover-stop-propagation hover-class="thover" data-phone="{{item.tel}}">
<icon class="iconfont icon-dianhua4"></icon>
</view>
</view>
<view class="flex-1 mr8">
<!-- <text class="c065" bindtap="makePhone" data-phone="{{item.tel}}">{{item.tel}}</text> -->
<view class="f14"><text class="mr8">{{item.userName}}</text><text class="c045">{{item.tel}}</text></view>
<view class="c065 f14 mt4">{{item.address != null && item.address != '' ? item.address : ''}}</view>
</view>
<view class="bgtr">
<view class="f14" style="color:#027aff" data-lng="{{item.lng}}" hover-stop-propagation data-lat="{{item.lat}}" catchtap="openMap" hover-class="thover">{{tools.getDistanceNum(item.distance)}}
<i class="iconfont icon-dingwei f14"></i>
</view>
<view class="bindCode" catchtap="bindCode" data-userid="{{item.userId}}" hover-stop-propagation hover-class="bcg">绑定二维码</view>
</view>
</view>
</block>
<block wx:else>
<view style="margin-top:128rpx;">
<view class="center">
<icon class='t-icon cccc t-icon-zanwu' style='width:86px;height:86px;margin-bottom:20px;margin-top:30px'></icon>
<view class="f16 cccc">暂无记录</view>
</view>
</view>
</block>
</view>
<scroll-view class="fadeIn" wx:if="{{phoneDialog}}" style="position: relative;z-index: 999;">
<view class="weui-mask"></view>
<view class="weui-dialog p020" style="box-sizing:border-box;">
<view class="weui-dialog__hd"><strong class="weui-dialog__title">{{phone}}</strong></view>
<view class="display-flex pb20" style="padding-top:20px;">
<view class="flex-1 lflex v-center" bindtap="close" hover-class="thover">取消</view>
<view class="rflex">
<button class="" type="primary" bindtap="makePhoneCall" hover-class="thover">呼叫</button>
</view>
</view>
</view>
</scroll-view>