shortCourse.wxml
9.08 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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
<!--packageStudyCenter/pages/taskDetail/shortCourse/shortCourse.wxml-->
<view class="detail-box">
<navigation-bar showBack bindnavbarReady="navbarReady" bindback="back">任务详情</navigation-bar>
<!-- 主要内容 -->
<view class="detail-content" style="padding-top: {{navBarHeight}}px;">
<view class="content-box">
<view class="top-box">
<view class="top-box-name">
{{ courseDetail.staffName || '-' }}
<view
class="role-tag"
wx:for="{{ courseDetail.positionList }}"
wx:key="index"
>{{ item }}</view>
</view>
<view class="top-box-info">
<view class="top-box-info-item">驻店时间:{{ courseDetail.residentTimeTag || '-' }}</view>
<view class="top-box-info-item">
直属上级:
<text class="superior-text">{{ courseDetail.superior || '-' }}</text>
</view>
</view>
</view>
<view class="bottom-box">
<view class="bottom-box-title margin-bottom">
<view>战败复盘</view>
<view class="date">{{ courseDetail._checkDate }}</view>
</view>
<radar-chart labelColors="{{ labelColors }}" chartData="{{ chartData }}" />
<view class="bottom-box-summary">
<view>总结</view>
<view class="summary-btn" bindtap="handleSummary">查看</view>
</view>
<view class="bottom-box-title">
<view>战败明细</view>
</view>
<view class="bottom-box-detail">
<scroll-view scroll-y enhanced="{{true}}" show-scrollbar="{{false}}" class="bottom-box-detail-scroll">
<block wx:for="{{ courseDetail.defeatReviewDetailList }}" wx:key="index">
<view
class="bottom-box-detail-item"
bindtap="handleDetail"
data-item="{{ item }}"
>
<view class="detail-item-box">
<view class="name-box">
<view class="name-box-text">{{ item.customerName }}</view>
<view class="phone">{{ item._customerPhone }}</view>
</view>
<view class="role-box">
<view class="role-tag-box">
<view class="role-tag" wx:if="{{ item.carBrand }}">{{ item.carBrand }}</view>
<view class="role-tag" wx:if="{{ item.carModel }}">{{ item.carModel }}</view>
</view>
<view class="role-tag-score">
<view class="role-tag-score-text">战败</view>
<view class="score-line"></view>
{{ item._inspectionScore }}
<view class="score-text-unit">分</view>
</view>
</view>
</view>
<image class="icon-detail-arrow" src="https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/components/images/arrow-x.png" mode=""/>
</view>
<view wx:if="{{index < courseDetail.defeatReviewDetailList.length - 1}}" class="line"></view>
</block>
</scroll-view>
</view>
</view>
</view>
<view class="message-box">
<view class="right-box-title">
<view class="right-box-title-left">
<image class="icon-short-task-title" src="{{IMG_URL}}usedCar/short-task-icon.png" mode=""/>
短课程学习明细
</view>
<view class="time-limit-countdown" wx:if="{{ completeStatus == 0 }}">
<image class="limit-page" src="{{IMG_URL}}usedCar/limit-page2.png" />
<block wx:if="{{ !isTimeout }}">
<view class="countdown-label">仅剩</view>
<view class="countdown-num">{{ countdown.days < 10 ? '0' + countdown.days : countdown.days }}</view>
<view class="countdown-separator">天</view>
<view class="countdown-num">{{ countdown.hours < 10 ? '0' + countdown.hours : countdown.hours }}</view>
<view class="countdown-separator">:</view>
<view class="countdown-num">{{ countdown.minutes < 10 ? '0' + countdown.minutes : countdown.minutes }}</view>
<view class="countdown-separator">:</view>
<view class="countdown-num">{{ countdown.seconds < 10 ? '0' + countdown.seconds : countdown.seconds }}</view>
</block>
<block wx:else>
<view class="countdown-label" style="color:#B87A11;">已超时</view>
</block>
</view>
</view>
<view class="table-box">
<view class="table-content" style="overflow: hidden;">
<view class="table-header flex">
<view class="title-item flex row-1">{{ qualityTitle[0] }}</view>
<view class="title-item flex row-2">{{ qualityTitle[1] }}</view>
<view class="title-item flex row-3">{{ qualityTitle[2] }}</view>
</view>
<scroll-view scroll-y class="table-content-scroll">
<view
class="table-content-item"
wx:for="{{ courseDetail.aiReviewReport }}"
wx:key="index"
>
<view class="row-1 flex">{{ item.tagName }}</view>
<view class="row-2">
<view class="table-content-text text-overflow">不足:{{ item.weakness != null ? item.weakness : '' }}</view>
<view class="table-content-suggest text-overflow">
<view class="suggest-title">改善建议</view>
{{ item.suggestion != null ? item.suggestion : '' }}
</view>
<view class="show-btn" bindtap="handleShowAll" wx:if="{{item.weakness != null || item.suggestion != null }}" data-item="{{item}}">查看全部</view>
</view>
<view class="row-3 flex flex-column">
<block wx:if="{{ item.examStatus == 2 }}">
<image class="task-pass-icon" src="{{IMG_URL}}usedCar/icon-task-pass.png"/>
<view class="check-result-text">考核通过</view>
</block>
<block wx:else>
<view
class="check-result-btn {{ item.examStatus == 0 ? 'disabled' : '' }}"
bindtap="handleExam"
data-item="{{ item }}"
>{{ item.examStatus == 0 ? '无需考核' : '去考核' }}</view>
</block>
</view>
</view>
</scroll-view>
</view>
</view>
</view>
</view>
<!-- 弹窗组件 -->
<course-popup
id="coursePopupRef"
popType="{{ popupType }}"
title="{{ popupTitle || '关闭' }}"
okText="{{okText}}"
blueBtn="{{blueBtn}}"
>
<view slot="content">
<block wx:if="{{ popupType == 'summary' }}">
<view class="summary-content">{{ courseDetail.summaryCopy }}</view>
</block>
<block wx:if="{{ popupType == 'detail' }}">
<view class="popup-details-box">
<view class="detail-user-info">
<view class="user-basic-info">
<view class="user-name">{{ courseDetail.staffName || '-' }}</view>
<view class="user-phone">{{ popupDetail._customerPhone || '-' }}</view>
</view>
<view class="role-tag-score">
<view class="role-tag-score-text">战败</view>
<view class="score-line"></view>
<view class="score-value">{{ popupDetail._inspectionScore }}</view>
<view class="score-text-unit">分</view>
</view>
</view>
<view class="role-box">
<view class="role-tag" wx:if="{{ popupDetail.carBrand }}">{{ popupDetail.carBrand }}</view>
<view class="role-tag" wx:if="{{ popupDetail.carModel }}">{{ popupDetail.carModel }}</view>
</view>
<view class="detail-time-list">
<view class="detail-time-item">开始于 <view class="detail-time-value">{{ popupDetail.receptionStartTime }}</view></view>
<view class="detail-time-item">结束于 <view class="detail-time-value">{{ popupDetail.receptionEndTime }}</view></view>
<view class="detail-time-item">共计 <view class="detail-time-value">{{ popupDetail.receptionDuration }}</view></view>
</view>
<view class="identity-list">
<view
class="identity-item"
wx:for="{{ popupDetail.indicatorTagList }}"
wx:key="index"
>
<view class="identity-title">{{ item.tagGroupName }}</view>
<view class="identity-desc {{ item.tagValueName === '差' ? 'bad' : '' }}">{{ item.tagValueName }}</view>
</view>
</view>
</view>
</block>
<block wx:if="{{ popupType == 'tableDetail' }}">
<scroll-view scroll-y class="popup-scroll">
<view class="table-content-text">不足:{{ popupTableDetail.weakness }}</view>
<view class="table-content-suggest">
<view class="suggest-title">改善建议</view>
{{ popupTableDetail.suggestion }}
</view>
</scroll-view>
</block>
</view>
</course-popup>
</view>