index.wxml
5.72 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
<!--pages/tab/index/index.wxml-->
<navigation-bar bindnavbarReady="navbarReady"
class="navigation-header"
navStyle="background-color:{{isSticky ? '#FFFFFF' : 'transparent'}};box-shadow:none;">
<view class="page-title">
工作台
</view>
</navigation-bar>
<view class="bg" wx:if="{{!isSticky}}"></view>
<scroll-view class="container" scroll-y enable-back-to-top
scroll-top="{{setScrollTop}}"
bind:scroll="onScroll"
bindrefresherrefresh="search"
bindscrolltolower="scrollonReachBottom"
enhanced="{{true}}"
show-scrollbar="{{false}}" style="padding-top: {{navBarHeight}}px;">
<view class="top-box">
<view class="user-info">
<image src="{{IMG_URL}}default-avatar.png" />
<view>督导{{userInfo.name}}</view>
</view>
<view class="static-info">
<view class="static-item" style="flex: {{item.width}}rpx 0 0;background: {{item.background}};" wx:for="{{staticList}}" wx:key="index">
<view class="label">{{item.label}}</view>
<view class="value">{{15}}</view>
</view>
</view>
</view>
<view class="data-container">
<view class="sticky-box {{isSticky ? 'is-sticky' : ''}}">
<view class="tab-box">
<tab-bar tabList="{{ tabList }}" scroll bindclick="tabClick" activeIndex="{{ tabIndex }}" />
</view>
<view class="date">
<date-screen tabSelected="{{tabIndex}}" isSticky="{{isSticky}}" bind:search="search"></date-screen>
</view>
<view class="number">{{tabList[tabIndex].text}}</view>
</view>
<view class="content-box">
<view class="list">
<block wx:if="{{ list.length > 0 }}">
<block wx:for="{{ list }}" wx:key="index">
<view class="item content">
<view class="item-top">
<view class="status text-center" style="color:{{ statusMap[item.handleStatus].color }};background-color:{{statusMap[item.handleStatus].background }};">
{{statusMap[item.handleStatus].name }}
</view>
<view class="name" wx:if="{{item.missionType != 6}}">
{{missionMap[item.missionType].name}}
<text wx:if="{{item.missionType == 2}}">-{{item.userName}}</text>
</view>
<view class="name" wx:else>{{merchantName}}</view>
</view>
<view class="list-item" wx:if="{{item.missionType == 3 && item.handleStatus == 3}}">
<image class="icon" src="{{IMG_URL}}task-icon.png" mode=""/>
<text class="label">日报内容:</text>
<text class="text-hide">{{'“事项”在英文中通常根据其具体含义(指代“事情”、“任务”、“条款”还是“注意事项”)而有不同的翻译'}}</text>
</view>
<view class="list-item" wx:if="{{item.missionType == 4 && item.handleStatus == 3}}">
<image class="icon" src="{{IMG_URL}}task-icon.png" mode=""/>
<text class="label">复盘内容:</text>
<text class="text-hide">{{'“事项”在英文中通常根据其具体含义(指代“事情”、“任务”、“条款”还是“注意事项”)而有不同的翻译'}}</text>
</view>
<view class="list-item" wx:if="{{item.missionType == 5 && item.handleStatus == 3}}">
<image class="icon" src="{{IMG_URL}}task-icon.png" mode=""/>
<text class="label">月度计划:</text>
<text class="text-hide">{{'“事项”在英文中通常根据其具体含义(指代“事情”、“任务”、“条款”还是“注意事项”)而有不同的翻译'}}</text>
</view>
<block wx:if="{{item.missionType == 6}}">
<view class="list-item">
<image class="icon" src="{{IMG_URL}}matter-icon.png" mode=""/>
<text class="label">事项描述:</text>
<text class="text-hide">{{'“事项”在英文中通常根据其具体含义(指代“事情”、“任务”、“条款”还是“注意事项”)而有不同的翻译'}}</text>
</view>
<view class="list-item" wx:if="{{item.handleStatus == 3}}">
<image class="icon" src="{{IMG_URL}}task-icon.png" mode=""/>
<text class="label">专项任务:</text>
<text class="text-hide">{{'“事项”在英文中通常根据其具体含义(指代“事情”、“任务”、“条款”还是“注意事项”)而有不同的翻译'}}</text>
</view>
<view class="list-item" wx:if="{{item.handleStatus != 3}}">
<image class="icon" src="{{IMG_URL}}time-icon.png" mode=""/>
<text class="label">创建时间:</text>
<text>{{item.complateTime || '-'}}</text>
</view>
</block>
<view class="list-item" wx:if="{{item.missionType != 6 || (item.missionType == 6 && item.handleStatus == 3)}}">
<image class="icon" src="{{IMG_URL}}time-icon.png" mode=""/>
<text class="label">完成时间:</text>
<text>{{item.complateTime || '-'}}</text>
</view>
<view class="list-item" wx:if="{{item.missionType == 1}}">
<view class="progress">
<view class="progress-line"></view>
<view class="progress-item" style="width: {{572 * 0.5}}rpx;"></view>
<view class="num">{{'10/20'}}</view>
</view>
</view>
<view class="btn-box">
<view bindtap="jump" data-target="{{item}}" wx:if="{{item.handleStatus == 3}}" class="btn">查看</view>
<view bindtap="jump" data-target="{{item}}" wx:else class="btn primary">去执行</view>
</view>
</view>
</block>
<block wx:if="{{ nothing }}">
<view class="list-nothing">到底了~</view>
</block>
<view class="empty-box" style="height: 80rpx;"></view>
</block>
<block wx:else>
<empty-data />
</block>
</view>
</view>
</view>
</scroll-view>