storePerformance.wxml
2.6 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
<!--packageIndex/pages/specialTask/specialTask.wxml-->
<navigation-bar bind:navbarReady="navbarReady"
class="navigation-header"
showBack
bind:back="back"
navStyle="background-color: white;box-shadow:none;">
<view class="page-title">
门店业绩列表
</view>
</navigation-bar>
<scroll-view scroll-y
class="container"
style="padding-top: calc({{ navBarHeight }}px); padding-bottom: calc(140rpx + env(safe-area-inset-bottom));">
<view class="filter-wrapper">
<view class="tab-wrapper">
<TypeTabs bind:change="handleBrandTabChange"
list="{{ brandType.list }}"
value="{{ query.statDimension }}" />
</view>
<view class="date-filter-wrapper">
<date-screen customBackground="#f3f3f4"
tabSelected="{{ 3 }}"
bind:search="handleSearch"></date-screen>
</view>
<view class="statistics-wrapper"
wx:if="{{ query.dateType === 1 || query.dateType === 2 }}">
<view wx:for="{{ staticInfoList }}"
wx:key="{{ item.key }}"
class="static-item"
style="background:{{ item.background }}">
<view class="label">
{{ item.label }}
</view>
<view class="value">
{{ statistics[item.key] }}
</view>
</view>
</view>
<van-search value="{{ query.filterKey }}"
shape="round"
custom-class="search-input-wrapper"
background="#fff"
bind:change="handleFilterKeyChange"
placeholder="搜索门店名称..." />
</view>
<view class="list-wrapper">
<view class="title-wrapper">
门店列表
</view>
<block wx:if="{{ list && list.length > 0 }}">
<view class="item-wrapper"
wx:for="{{ list }}"
wx:key="index"
data-item="{{ item }}"
bind:tap="handleTapItem">
<StatisticsItem title="{{ item.merchantName }}"
data="{{ item }}"
hideValue="4"
schema="{{ schemaList }}">
<view slot="title-sub" class="title-sub-wrapper">
<view class="label">
{{ item.staffCount }}名驻店人员
</view>
<view wx:if="{{ item.warnList && item.warnList.length }}">
<WarnList list="{{ item.warnList }}" />
</view>
</view>
</StatisticsItem>
</view>
<view class="last-tips">
到底了~
</view>
</block>
<block wx:else>
<empty-data />
</block>
</view>
</scroll-view>
<view class="fixed-action-bar">
<view class="fixed-action-btn" catchtap="goSpecialTaskApply">
<view class="fixed-action-text">发起专项任务</view>
</view>
</view>