today-plan-customer-popup.wxml
2.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<root-portal enable="{{ visible }}">
<view class="plan-popup" hidden="{{ !visible }}" catchtouchmove="noScroll">
<view class="plan-popup__mask" bindtap="onMaskTap"></view>
<view class="plan-popup__panel" style="height: 85%">
<view class="plan-popup__header">
<view class="plan-popup__header-btn plan-popup__header-btn--left" bindtap="onCancel">取消</view>
<view class="plan-popup__header-title text-hide">{{ staffName }}的待接待客户</view>
<view class="plan-popup__header-btn plan-popup__header-btn--right" bindtap="onToggleAll">全选</view>
</view>
<view class="plan-popup__date">
<view
class="plan-popup__date-arrow {{ canPrev ? '' : 'is-disabled' }}"
bindtap="onPrevDay"
>
<text class="plan-popup__date-arrow-icon">‹</text>
</view>
<view class="plan-popup__date-label">{{ dateLabel }}</view>
<view
class="plan-popup__date-arrow {{ canNext ? '' : 'is-disabled' }}"
bindtap="onNextDay"
>
<text class="plan-popup__date-arrow-icon">›</text>
</view>
</view>
<scroll-view scroll-y class="plan-popup__list" enhanced show-scrollbar="{{ false }}">
<view wx:if="{{ loading }}" class="plan-popup__empty">加载中...</view>
<block wx:elif="{{ loadComplete && customerList.length }}">
<view
class="plan-popup__card {{ item.selected ? 'is-selected' : '' }}"
wx:for="{{ customerList }}"
wx:key="_rowKey"
data-index="{{ index }}"
bindtap="onToggleItem"
>
<view class="plan-popup__card-main">
<view class="plan-popup__card-name text-hide">
{{ item.customerName }} {{ item.phoneMasked }}
</view>
<view class="plan-popup__card-series text-hide">{{ item.carSeriesLabel }}</view>
</view>
<view class="plan-popup__checkbox {{ item.selected ? 'is-checked' : '' }}">
<image
wx:if="{{ item.selected }}"
class="plan-popup__checkbox-icon"
src="{{ checkIconUrl }}"
mode="aspectFit"
/>
</view>
</view>
</block>
<view wx:elif="{{ loadComplete }}" class="plan-popup__empty">暂无待接待客户</view>
</scroll-view>
<view class="plan-popup__footer {{ isFullSucreen ? 'is-full' : '' }}">
<view class="plan-popup__summary">
共选 <text class="plan-popup__summary-num">{{ selectedCount }}</text> 位
</view>
<view class="plan-popup__actions">
<view class="plan-popup__btn plan-popup__btn--cancel" bindtap="onCancel">取消</view>
<view
class="plan-popup__btn plan-popup__btn--confirm {{ selectedCount > 0 ? '' : 'is-disabled' }}"
bindtap="onConfirm"
>
添加到洽谈明细
</view>
</view>
</view>
</view>
</view>
</root-portal>