storePicker.wxml
1.81 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
<!--components/storePicker/storePicker.wxml-->
<popup
class="date-background"
popup-slot-class="popup-style"
show="{{ show }}"
bindconfirm="confirm"
bindcancel="cancel"
height="{{ pickerType ? 'var(--fontSize800)' : '80%' }}"
>
<view class="date-container">
<view class="date-confirm">
<view class="search-box">
<view class="search-input">
<block wx:if="{{ !edit }}">
<view class="input {{ searchValue?'':'placeholder' }}" bindtap="open">
<block wx:if="{{ searchValue }}">{{searchValue}}</block>
<block wx:else>
<image src="{{ IMG_URL }}images/search.png" class="icon"></image>
<block wx:if="{{ pickerType == 'staff' }}">请输入员工姓名</block>
<block wx:elif="{{ pickerType == 'merchant' }}">请输入门店</block>
<block wx:else>请输入门店</block>
</block>
</view>
</block>
<block wx:else>
<input
type="text"
class="input"
value="{{ searchValue }}"
focus="{{ inputFocus }}"
confirm-type="search"
bindinput="input"
bindblur="inputBlur"
bindconfirm="inputConfifm"
/>
</block>
</view>
</view>
</view>
<view class="picker-box">
<picker-view
class="picker"
value="{{ selectStoreIndex }}"
immediate-change="true"
indicator-class="indicator"
bindchange="changeStore"
>
<picker-view-column>
<block wx:for="{{ pickList }}" wx:key="merchantId">
<view class="view pickViewColumn">
<block wx:if="{{ pickerType == 'staff' }}">{{item.staffName}}</block>
<block wx:else>{{item.merchantName}}</block>
</view>
</block>
</picker-view-column>
</picker-view>
</view>
<view class="totalCount" wx:if="{{ pickerType == 'merchant' }}">共计{{merchantRangeListTotal}}家门店</view>
</view>
</popup>