217 lines
11 KiB
Plaintext
217 lines
11 KiB
Plaintext
<view class="container">
|
|
|
|
<view>
|
|
<view style="padding-top:110rpx"></view>
|
|
<view class="fixed top-0 left-0 right-0 bg-fff z-index-1">
|
|
<view class="fn-flex mt5 pl20 pr20 font-32 color-666 text-center" wx:if="{{tab.length<5}}">
|
|
<block wx:for='{{tab}}' wx:key='list'>
|
|
<view class="fn-flex-item pl20 pr20 tabmenu2 {{key == item.key?'active color-36afa2':''}}" data-index="{{index}}" bindtap="changeTab">
|
|
<view class="relative">{{item.name}}</view>
|
|
</view>
|
|
</block>
|
|
</view>
|
|
<scroll-view class="mt5 font-32 color-666 text-center space-nowrap" scroll-x="true" wx:else>
|
|
<block wx:for='{{tab}}' wx:key='list'>
|
|
<view class="pl20 pr20 tabmenu2 {{key == item.key?'active color-36afa2':''}}" data-index="{{index}}" bindtap="changeTab" >
|
|
<view class="relative">{{item.name}}</view>
|
|
</view>
|
|
</block>
|
|
</scroll-view>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="pl40 pb15 fn-clear">
|
|
<view class="fn-fl">
|
|
<text class="text-middle">共<text class="color-f9394d">{{total}}</text>条</text>
|
|
<picker class="inline-block text-middle bg-f6 color-666 ml20 pt5 pb5 pl15 pr10 ulib-r750 font-22" bindchange="changeSortList" value="{{sortListIndex}}" range="{{sortList}}">
|
|
<text>{{sortList[sortListIndex]}}</text>
|
|
<i class="iconfont ml5 icon-gengduo"></i>
|
|
</picker>
|
|
</view>
|
|
<view class="fn-fr pr180 relative">
|
|
<text bindtap="optfilter" class="inner5 iconfont icon-gaojisousuo ml10"></text>
|
|
<view bindtap="pushLink" data-url="/pages/customer/addCard/index" class="absolute right-0 box-middle pt10 pb10 pl10 pr30 space-nowrap bg-333 font-22 color-fff ulib-rl750"><i class="iconfont mr5 icon-jia"></i>客户建卡</view>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="mt10 pl30 pr30">
|
|
|
|
<block wx:for='{{list}}' wx:key='index'>
|
|
<view class="inner40 relative ulib-r10 box-shadow-000-10-10 mb30 overflowhidden" bindtap="pushLink" data-url="/pages/customer/detail/index?id={{item.id}}">
|
|
<view class="relative pr180">
|
|
<view class="font-32">
|
|
<text>{{item.name}}</text>
|
|
<text>({{item.mobile}})</text>
|
|
<text class="iconfont icon-xingxing ml10 {{item.is_top==1?'color-f9394d':'color-ccc'}}" catchtap="optTop" data-index="{{index}}"></text>
|
|
</view>
|
|
<view class="text-nowrap">
|
|
<block wx:for="{{item.tags}}" wx:for-index='i' wx:for-item='tag' wx:key='i'>
|
|
<text class="inline-block mr10 pl10 pr10 bg-666 font-18 color-fff ulib-r750" wx:if="{{i<4}}">{{tag}}</text>
|
|
</block>
|
|
<block wx:if="{{item.tags.length>4}}">
|
|
...
|
|
</block>
|
|
</view>
|
|
<view class="absolute right-0 box-middle">
|
|
<view class="inline-block relative img-55x55 bg-333 font-28 color-fff mr30 ulib-r750" catchtap="showMessage" data-id="{{item.id}}">
|
|
<i class="absolute box-center-middle iconfont icon-liuyan"></i>
|
|
</view>
|
|
<view class="inline-block relative img-55x55 bg-333 font-28 color-fff ulib-r750" catchtap="call" data-id="{{item.id}}">
|
|
<i class="absolute box-center-middle iconfont icon-dianhua"></i>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
<block wx:for="{{item.other_data}}" wx:for-index='key' wx:for-item='value' wx:key='i'>
|
|
<view class="mt25 fn-clear font-28">
|
|
<view class="fn-fl color-333">{{key}}</view>
|
|
<view class="fn-fr wp60 text-nowrap text-right color-666">{{value}}</view>
|
|
</view>
|
|
</block>
|
|
|
|
</view>
|
|
</block>
|
|
<lcb-listmore isLoading='{{loading}}' isEnd='{{end}}' isNoData='{{noData}}'></lcb-listmore>
|
|
</view>
|
|
|
|
</view>
|
|
<!-- <lcb-footer></lcb-footer> -->
|
|
<lcb-shopTabBarNav currentIndex='1'></lcb-shopTabBarNav>
|
|
|
|
<lcb-msg isShow="{{isShowMessage}}">
|
|
<view slot="content">
|
|
<view class="inner40">
|
|
<textarea class="wp100 inner20 bds-1-eb font-28 ulib-r10" placeholder-class="color-ccc" maxlength='100' placeholder="请输入短信内容" bindinput='inputTx' data-key="content" name='content' value='{{content}}' />
|
|
</view>
|
|
<view class="fn-flex pl60 pr60 pb50 text-center font-32 color-666">
|
|
<button bindtap="hideMessage" class="fn-flex-item mr20 bds-2-36afa2 btn-no-bg wp100 font-28 color-36afa2 ulib-r750">取消</button>
|
|
<button disabled="{{submitFlag}}" bindtap="postAppSmsCustomer" class="fn-flex-item ml20 btn-36afa2 wp100 font-28 color-fff ulib-r750" hover-class="btn-36afa2-hover">确定</button>
|
|
</view>
|
|
</view>
|
|
</lcb-msg>
|
|
|
|
<view class="search-sort {{!isShowfilter?'fn-hide':''}} {{!isShowfilter?'sortout':'sortin'}} bg-fff fixed top-0 bottom-0 z-index-2 ulib-rl20 overflowhidden">
|
|
<scroll-view class="wp100" scroll-y="true" style="height:100%">
|
|
<view class="inner30">
|
|
<view class="relative bbs-1-eb last-b-none pl140 font-28">
|
|
<view class="absolute left-0 box-middle">客户姓名</view>
|
|
<view>
|
|
<input class="wp100 height-100 text-right font-28" placeholder-class="color-ccc" type="text" placeholder="请输入客户姓名" bindinput='inputTx' data-key="name" name='name' value='{{name}}' />
|
|
</view>
|
|
</view>
|
|
<view class="relative bbs-1-eb last-b-none pl140 font-28">
|
|
<view class="absolute left-0 box-middle">手机号码</view>
|
|
<view>
|
|
<input class="wp100 height-100 text-right font-28" placeholder-class="color-ccc" type="number" placeholder="请输入客户手机号" bindinput='inputTx' data-key="mobile" name='mobile' value='{{mobile}}' />
|
|
</view>
|
|
</view>
|
|
<view class="relative bbs-1-eb pl190 last-b-none">
|
|
<view class="absolute left-0 box-middle font-28 color-333">建卡开始时间</view>
|
|
<view class="pt30 pb30 text-right font-28 color-666">
|
|
<picker mode="date" value="{{s_time}}" bindchange="startDate">
|
|
<text class="color-ccc" wx:if="{{s_time == ''}}">请选择</text>
|
|
<text wx:else>{{s_time}}</text>
|
|
<i class="iconfont ml10 icon-gengduo"></i>
|
|
</picker>
|
|
</view>
|
|
</view>
|
|
<view class="relative bbs-1-eb pl190 last-b-none">
|
|
<view class="absolute left-0 box-middle font-28 color-333">建卡结束时间</view>
|
|
<view class="pt30 pb30 text-right font-28 color-666">
|
|
<picker mode="date" value="{{e_time}}" bindchange="endDate">
|
|
<text class="color-ccc" wx:if="{{e_time == ''}}">请选择</text>
|
|
<text wx:else>{{e_time}}</text>
|
|
<i class="iconfont ml10 icon-gengduo"></i>
|
|
</picker>
|
|
</view>
|
|
</view>
|
|
<view class="relative bbs-1-eb pt30 pb30 last-b-none">
|
|
<view class="font-22">常用时间段</view>
|
|
<view class="fn-clear">
|
|
<block wx:for="{{timeSlot}}" wx:key='index'>
|
|
<view class="inline-block radio-btn mt20 mr20 pt15 pb15 pl25 pr25 ulib-r10 font-28 {{timeSlotIndex == index?'bg-333 color-fff':'bg-f8'}}" bindtap="radioPicker" data-type="timeSlot" data-index="{{index}}">
|
|
{{item.title}}
|
|
</view>
|
|
</block>
|
|
</view>
|
|
</view>
|
|
<view class="relative bbs-1-eb pt30 pb30 last-b-none">
|
|
<view class="font-22">是否试驾</view>
|
|
<view class="fn-clear">
|
|
<block wx:for="{{testDrive}}" wx:key='index'>
|
|
<view class="inline-block radio-btn mt20 mr20 pt15 pb15 pl25 pr25 ulib-r10 font-28 {{testDriveIndex == index?'bg-333 color-fff':'bg-f8'}}" bindtap="radioPicker" data-type="testDrive" data-index="{{index}}">
|
|
{{item.title}}
|
|
</view>
|
|
</block>
|
|
</view>
|
|
</view>
|
|
<view class="relative bbs-1-eb pl190 last-b-none">
|
|
<view class="absolute left-0 box-middle font-28 color-333">意向等级</view>
|
|
<view class="pt30 pb30 text-right font-28 color-666">
|
|
<picker bindchange="changeLevel" value="{{levelIndex}}" range="{{filter.level}}">
|
|
<text class="color-ccc" wx:if="{{levelIndex == -1}}">请选择</text>
|
|
<text wx:else>{{filter.level[levelIndex]}}</text>
|
|
<i class="iconfont ml5 icon-gengduo"></i>
|
|
</picker>
|
|
</view>
|
|
</view>
|
|
<view class="relative bbs-1-eb pl190 last-b-none">
|
|
<view class="absolute left-0 box-middle font-28 color-333">车辆品牌</view>
|
|
<view class="pt30 pb30 text-right font-28 color-666">
|
|
<picker bindchange="changeBrand" value="{{brandIndex}}" range="{{brandArray}}">
|
|
<text class="color-ccc" wx:if="{{brandIndex == -1}}">请选择</text>
|
|
<text wx:else>{{brandArray[brandIndex]}}</text>
|
|
<i class="iconfont ml5 icon-gengduo"></i>
|
|
</picker>
|
|
</view>
|
|
</view>
|
|
<view class="relative bbs-1-eb pl190 last-b-none" wx:if="{{brandIndex != -1}}">
|
|
<view class="absolute left-0 box-middle font-28 color-333">车型车系</view>
|
|
<view class="pt30 pb30 text-right font-28 color-666">
|
|
<picker bindchange="changeModel" value="{{modelIndex}}" range="{{modelArray}}">
|
|
<text class="color-ccc" wx:if="{{modelIndex == -1}}">请选择</text>
|
|
<text wx:else> {{modelArray[modelIndex]}}</text>
|
|
<i class="iconfont ml5 icon-gengduo"></i>
|
|
</picker>
|
|
</view>
|
|
</view>
|
|
<view class="relative bbs-1-eb pl190 last-b-none">
|
|
<view class="absolute left-0 box-middle font-28 color-333">客户来源</view>
|
|
<view class="pt30 pb30 text-right font-28 color-666">
|
|
<picker bindchange="changeCfrom" value="{{cfromIndex}}" range="{{filter.cfrom}}">
|
|
<text class="color-ccc" wx:if="{{cfromIndex == -1}}">请选择</text>
|
|
<text wx:else>{{filter.cfrom[cfromIndex]}}</text>
|
|
<i class="iconfont ml5 icon-gengduo"></i>
|
|
</picker>
|
|
</view>
|
|
</view>
|
|
<!-- <view class="relative bbs-1-eb pl190 last-b-none">
|
|
<view class="absolute left-0 box-middle font-28 color-333">到店次数</view>
|
|
<view class="pt30 pb30 text-right font-28 color-666">
|
|
<picker mode="date" value="{{c_time}}" bindchange="bindStartDateChange">
|
|
<text class="color-ccc" wx:if="{{c_time == ''}}">请选择</text>
|
|
<text wx:else>{{c_time}}</text>
|
|
<i class="iconfont ml10 icon-gengduo"></i>
|
|
</picker>
|
|
</view>
|
|
</view> -->
|
|
</view>
|
|
<view class="pt50 pb100"></view>
|
|
</scroll-view>
|
|
<view class="absolute left-0 bottom-0 right-0 fn-flex mb180 pt20 pb20 pl60 pr60 bg-fff-op90 text-center">
|
|
<view class="fn-flex-item mr20 pt15 pb15 bds-2-36afa2 font-32 color-36afa2 ulib-r750" bindtap="resetFilter">重置</view>
|
|
<view class="fn-flex-item ml20 pt15 pb15 bg-36afa2 font-32 color-fff ulib-r750" bindtap="submitFilter">确定</view>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="search-bg fixed left-0 right-0 top-0 bottom-0" bindtap="optfilter" hidden="{{!isShowfilter}}" style="background-color:rgba(0,0,0,.5);"></view>
|
|
|
|
<view class="fixedopt">
|
|
<view class="optpin bg-333 relative ulib-r750">
|
|
<view class="absolute top-0 bottom-0 left-0 right-0 z-index-0" bindtap="showMobileMsg">
|
|
<i class="absolute box-center-middle iconfont icon-shouji font-44 color-fff"></i>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
<lcb-changeMobile isShow="{{isShowMobile}}"></lcb-changeMobile> |