teachApplyCreate.wxml
4.75 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
<navigation-bar
showBack="{{ true }}"
bindback="onBack"
bindnavbarReady="navbarReady"
navStyle="background-color:#ffffff;box-shadow:none;"
>
<view class="nav-title">带教申请</view>
</navigation-bar>
<view class="create-page" style="padding-top: {{ navBarHeight }}px;">
<scroll-view scroll-y class="create-scroll">
<view class="form-card">
<view class="form-row" bindtap="pickMerchant">
<view class="label"><text class="req">*</text>归属门店</view>
<view class="value {{ merchantName ? '' : 'placeholder' }}">
{{ merchantName || '点击选择' }}
</view>
<view class="arrow">›</view>
</view>
<view class="form-row" bindtap="pickBusiness">
<view class="label"><text class="req">*</text>归属业务</view>
<view class="value {{ businessName ? '' : 'placeholder' }}">
{{ businessName || '点击选择' }}
</view>
<view class="arrow">›</view>
</view>
<view class="form-row" bindtap="pickStaff">
<view class="label"><text class="req">*</text>需带教驻店人员</view>
<view class="value {{ staffNames ? '' : 'placeholder' }}">
{{ staffNames || '点击选择' }}
</view>
<view class="arrow">›</view>
</view>
<view class="form-row disabled">
<view class="label"><text class="req">*</text>归属区域督导</view>
<view class="value {{ supervisorName ? '' : 'placeholder' }}">
{{ supervisorDisplayText }}
</view>
</view>
<view class="textarea-block">
<view class="textarea-title"><text class="req">*</text>申请描述</view>
<view class="textarea-wrap">
<gl-textarea
bindinput="onDescInput"
maxlength="{{ descriptionMaxLength }}"
showWordLimit
value="{{ description }}"
placeholder="请简单描述申请信息"
placeholderColor="#bbbbbb"
color="#222222"
textStyle="font-size:28rpx;line-height:40rpx;"
/>
</view>
</view>
</view>
<view class="bottom-safe"></view>
</scroll-view>
<view class="footer-bar isFullSucreen">
<view class="submit-btn" bindtap="submit">提交</view>
</view>
</view>
<popup
title="选择门店"
show="{{ merchantPopupShow }}"
height="85%"
bindconfirm="confirmMerchantPopup"
bindcancel="cancelMerchantPopup"
>
<view class="picker-search">
<image src="/images/search.png" class="picker-search__icon" />
<input
type="text"
placeholder="门店名称/编号"
class="picker-search__input"
value="{{ merchantKeyword }}"
placeholder-class="input-placeholder"
bindinput="onMerchantKeywordInput"
bindconfirm="searchMerchant"
/>
<block wx:if="{{ merchantKeyword }}">
<image
src="/images/clear.png"
class="picker-search__clear"
bindtap="clearMerchantKeyword"
/>
</block>
</view>
<scroll-view scroll-y class="picker-list" enhanced show-scrollbar="{{ false }}">
<block wx:if="{{ merchantLoading }}">
<view class="picker-tip">加载中...</view>
</block>
<block wx:elif="{{ merchantList.length }}">
<view
class="picker-item {{ merchantIndex === index ? 'active' : '' }}"
wx:for="{{ merchantList }}"
wx:key="merchantId"
bindtap="chooseMerchant"
data-index="{{ index }}"
>
<view class="picker-item__main">
<view class="picker-item__name text-hide">{{ item.merchantName }}</view>
<view class="picker-item__sub">{{ item.merchantId }}</view>
</view>
<view class="picker-item__mark" wx:if="{{ merchantIndex === index }}">✓</view>
</view>
</block>
<empty-data wx:else emptyText="暂无门店" />
</scroll-view>
</popup>
<popup
title="选择员工"
show="{{ staffPopupShow }}"
height="70%"
bindconfirm="confirmStaffPopup"
bindcancel="cancelStaffPopup"
>
<scroll-view scroll-y class="picker-list picker-list--staff" enhanced show-scrollbar="{{ false }}">
<block wx:if="{{ staffLoading }}">
<view class="picker-tip">加载中...</view>
</block>
<block wx:elif="{{ staffOptions.length }}">
<view
class="picker-item {{ item.checked ? 'active' : '' }}"
wx:for="{{ staffOptions }}"
wx:key="index"
catchtap="toggleStaff"
data-index="{{ index }}"
>
<view class="picker-item__main">
<view class="picker-item__name">{{ item.userName }}</view>
<view class="picker-item__sub">{{ item.userPhone }}</view>
</view>
<view class="picker-item__mark" wx:if="{{ item.checked }}">✓</view>
</view>
</block>
<empty-data wx:else emptyText="暂无驻店人员" />
</scroll-view>
</popup>