ai.wxml
4.54 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
<!--packageEquity/pages/aiExcercise/ai/ai.wxml-->
<view class="bg"></view>
<navigation-bar class="navigation-header" bindnavbarReady="navbarReady" showBack="{{ true }}" bindback="back">
<view class="navigation-title">
<view class="result-title">
AI对练
</view>
</view>
</navigation-bar>
<view class="layout {{list.length ? '' : 'layout-fixed'}}" style="padding-top:{{navBarHeight}}px;">
<view class="to-box" id="search">
<view class="search-box">
<view class="search-input">
<image src="/images/search.png" class="search-icon" />
<input type="text" placeholder="输入任务名称搜索" class="input" confirm-type="search" value="{{searchValue}}" placeholder-class="input-placeholder" bindinput="input" bindconfirm="search" maxlength="20" />
<block wx:if="{{searchValue}}">
<view bindtap="handleReset" class="clearBtn">
<image src="/images/clear.png" class="search-clear" />
</view>
</block>
</view>
</view>
</view>
<scroll-view scroll-y class="content" bindscrolltolower="onBottomRefresh" style="height: calc(100% - {{searchHeight}}px - var(--fontSize20));" enable-flex>
<block wx:if="{{flag}}">
<block wx:if="{{list.length}}">
<block wx:for="{{list}}" wx:key="index">
<view class="ai-item">
<view class="ai-top">
<view class="ai-title">{{item.task.taskName}}</view>
<view class="ai-score" wx:if="{{item.staff.sparringStatus!==0}}">得分 <text>{{item.staff.score||0}}</text></view>
<view class="status status-{{item.staff.sparringStatus}}">{{statusEnum[item.staff.sparringStatus]}}</view>
</view>
<view class="ai-mid">
<view class="item-desc">
<view class="item-label">分配人员</view>
<view class="item-value">{{item.staff.createdBy}}</view>
</view>
<view class="item-desc">
<view class="item-label">客户类型</view>
<view class="item-value">{{item.aiTypeDesc}}</view>
</view>
<view class="item-desc">
<view class="item-label">截止时间</view>
<view class="item-value">{{item.task.endTime}}</view>
</view>
<view class="item-desc" wx:if="{{item.staff.sparringStatus != 0}}">
<view class="item-label">预计营销结果</view>
<view class="item-value">{{item.staff.estimatedResult || '结果生成中'}}</view>
</view>
</view>
<view class="ai-bottom">
<view class="ai-btn" data-staffId="{{item.staff.id}}" bind:tap="jumpDetail" wx:if="{{item.staff.sparringStatus != 0}}">质检详情</view>
<view class="ai-btn-c" data-status="{{item.staff.estimatedResult}}" data-staffId="{{item.staff.id}}" bind:tap="jumpResult" wx:if="{{item.staff.sparringStatus != 0}}">对练详情</view>
<!-- <view class="ai-btn-c" data-prompt="{{item.task.promptOnOff}}" data-type="{{item.task.aiType}}" data-staffId="{{item.staff.id}}" data-count="{{item.staff.tryCount}}" bind:tap="jumpExcercise">开始对练</view> -->
<view class="ai-btn-c" data-prompt="{{item.task.promptOnOff}}" data-type="{{item.task.aiType}}" data-staffId="{{item.staff.id}}" data-count="{{item.staff.tryCount}}" bind:tap="jumpExcercise" wx:if="{{item.task.contrast && item.staff.sparringStatus == 0 && item.staff.tryCount<3 && item.task.taskState!=2}}">开始对练</view>
<block wx:else ><view class="ai-btn-d" wx:if="{{item.staff.sparringStatus == 0}}">开始对练</view></block>
</view>
</view>
</block>
<block wx:if="{{nothing}}">
<view class="list-nothing">到底了~</view>
</block>
</block>
<block wx:else>
<empty-data style="width: 100%;" />
</block>
</block>
</scroll-view>
</view>