mentoring.wxml
4.25 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
<!--packageCrew/pages/mentoring/mentoring.wxml-->
<glsx-privacy appletName="嘀加门店管理助手" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
<navigation-bar bindnavbarReady="navbarReady"
class="navigation-header"
showBack="{{true}}"
bindback="back"
navStyle="background-color: transparent;box-shadow:none;">
<view class="page-title">
人员带教
</view>
</navigation-bar>
<scroll-view class="container" scroll-y show-scrollbar="{{false}}" enhanced style="padding-top: {{navBarHeight}}px;">
<view style="width: 100%;height: 8rpx;"></view>
<view class="box">
<view class="name">
<view class="staff">
<view class="text-hide staff-name">{{orderObj.storeManagerName}}</view>
<image class="sex-icon" src="{{IMG_URL}}{{orderObj.gender == '女' ? 'female-icon' : 'male-iconx'}}.png" mode="aspectFit" />
</view>
</view>
<view class="items">
<view class="item {{item.inline ? 'inline' : ''}}" style="{{item.width ? ('width:' + item.width + ';') : ''}}" wx:for="{{detailItems}}" wx:key="index">
<view class="label">{{item.label}}:</view>
<view class="value">{{orderObj[item.key] || '-'}}</view>
</view>
</view>
</view>
<view class="box padding-0">
<view class="item-box">
<view class="label">督导门店<text class='required'>*</text></view>
<view class="value" bindtap="chooseSelect" data-type="merchant">
<text wx:if="{{orderObj.merchantName}}" class="value-text">{{orderObj.merchantName}}</text>
<block wx:else>
<text class="placeholder">点击选择</text>
</block>
<image src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/arrow.png" mode=""/>
</view>
</view>
<view class="item-box">
<view class="label">推送课程<text class='required'>*</text></view>
<view class="value" bindtap="chooseSelect" data-type="course">
<text wx:if="{{orderObj.courseList.length}}" class="value-text">已选{{orderObj.courseList.length}}课</text>
<block wx:else>
<text class="placeholder">点击选择</text>
</block>
<image src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/arrow.png" mode=""/>
</view>
</view>
<view class="item-box remark_box">
<view class="label">带教记录<text class='required'>*</text></view>
<view class="textArea_box">
<textarea placeholder-style="color: #999EA8;" disabled="{{orderObj.taskStatus == 2}}" value="{{ orderObj.taskContext }}" maxlength="1000" placeholder="请输入" class="textarea" bindinput="taskContextInput" />
<view class="currentWordNumber">{{taskContextLength || 0}} / 1000</view>
</view>
</view>
<view class="image-box">
<view class="label">门店拍照<text class='required'>*</text></view>
<view class="upload_box">
<block wx:if="{{orderObj.imageList.length > 0}}">
<view class="payVoucher_image" wx:for="{{orderObj.imageList}}" wx:key="index">
<image bindtap="previewImage" data-index="{{index}}" data-url="{{orderObj.imageList}}" src="{{item.imageUrl}}"/>
<image class="del_icon" wx:if="{{orderObj.taskStatus != 2}}" src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/zy_paf_del_icon.png" mode="" bindtap="delPhoto" data-index="{{index}}"/>
</view>
</block>
<block wx:if="{{orderObj.imageList.length < 9 && orderObj.taskStatus != 2}}">
<view class="upload-item" bindtap="handleImageUpload">
<image src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/{{item.uploadIcon || 'zy-upload_icon.png'}}" class="icon-uploadAdd {{item.uploadIcon ? 'custom-icon-uploadAdd' : ''}}"></image>
<view class="upload-text">
{{orderObj.imageList.length + '/' + 9}}
</view>
</view>
</block>
</view>
</view>
</view>
<view class="footer-btn" wx:if="{{orderObj.taskStatus != 2}}">
<view class="btn {{orderObj.onBreak == 'Y' ? 'fixed-btn' : ''}}" bindtap="submit">提交</view>
</view>
</scroll-view>
<select-popup show="{{ showSelectPopup }}" options="{{ selectOptions }}" multiple="{{selectMultiple}}" values="{{ selectValues }}" value="{{ selectValue }}" bindconfirm="handlePopupConfirm" labelKey="{{labelKey}}" valueKey="{{valueKey}}" height="80%" title="{{selectTitle}}" allowSearch="{{true}}" bindcancel="hideSelectPopup"></select-popup>