4sOverview.wxml
6.47 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
<!-- tabOperating/pages/4sOverview/4sOverview.wxml -->
<!-- src引入filter.wxs, module给模块起名 -->
<wxs src="../index.wxs" module="filter" />
<glsx-privacy appletName="生意助手员工版" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
<view class="layout {{flag?'opacity':''}}">
<navigation-bar bindback="jump" bindnavbarReady="navbarReady" showBack="{{true}}">
<picker
range="{{merchantRange}}"
value="{{subIndex}}"
range-key="merchantName"
bindchange="changePicker"
bindtap="tapPicker"
bindcancel="tapPicker"
disabled="{{merchantRange.length < 2}}">
<view class="navigation-title">
<view class="navigation-title-text text-hide">
{{merchantRange[subIndex].merchantName}}
</view>
<view class="arrow {{moveArrow?'move':''}}" wx:if="{{merchantRange.length > 1}}">
<image src="{{ IMG_URL }}images/arrow-bottom.png" />
</view>
</view>
</picker>
</navigation-bar>
<view class="header" style="margin-top:{{statusBarHeight}}px">
<view class="total4s" bindtap="createNewImg">
累计合作门店共计
<text class="num">{{total}}</text>
家
</view>
<view class="date">
<calendar
id="calender"
class="calendar"
allowSameDay
shortcut
bindselect='rangeSelect'
rangeAll
dateType='single'
calenderColor='#347BFF'
vertical
minDate="2020-10-01"
maxDate="{{dateObj.maxDate}}"
isComponents>
<view class="item text-center dateNum">
{{dateObj.todayShow}}
<image class="solidArrow" src="../../images/solidArrow.png" />
</view>
</calendar>
</view>
</view>
<view class="canvas-box">
<!-- style="width:{{canvasWidth}}rpx;height:{{canvasHeight}}rpx;" -->
<canvas style="width:355px;height:370px; margin:0 auto;" canvas-id="mycanvas" />
</view>
<!-- {{isFullSucreen?'isFullSucreen':''}} -->
<view class="table {{isFullSucreen?'isFullSucreen':''}}">
<view class="tableContainer">
<block>
<view class="table-body ">
<!-- <image class="img" src="{{ src }}" mode="widthFix" /> -->
<scroll-view
scroll-y
enable-back-to-top
refresher-enabled="{{true}}"
bindrefresherrefresh="restPageNum"
bindscrolltolower="scrollonReachBottom"
refresher-threshold="104"
style="height:100%;"
class="list"
refresher-triggered="{{triggered}}">
<block wx:for="{{tableList}}" wx:key="index">
<view class="shopcon">
<view class="shopconHeader">
<view class="shopconHeaderTitle">{{item.merchantName}}</view>
<image
bindtap="showShareModel"
data-item="{{item}}"
class="shareIcon"
src="../../images/shareIcon.png" />
</view>
<view class="shopInfo">
<view class="shopheader">
<view class="shopheaderitem">
<view class="shopheaderNum">{{item.customerTotal}}</view>
<view class="shopheaderlabel">客户数</view>
</view>
<view class="shopheaderitem">
<view class="shopheaderNum">{{item.customerShareRate}}</view>
<view class="shopheaderlabel">客占率</view>
</view>
</view>
<view class="shopStatistics">
<view class="shopStatisticsLabel">
<block wx:for="{{ShopStatisticsLabel}}" wx:key="index">
<view class="shopStatisticsLabelItem" data-text="{{item}}">{{item}}</view>
</block>
</view>
<view class="shopStatisticsToday">
<view class="shopStatisticsTodayLabel">当天</view>
<view class="shopStatisticsTodayItem shopStatisticsTodayItemLeft">
{{item.filmTimesTotalDay}}
</view>
<view class="shopStatisticsTodayItem">{{item.experienceTotalDay}}</view>
<view class="shopStatisticsTodayItem">{{item.upgradeTotalDay}}</view>
<view class="shopStatisticsTodayItem shopStatisticsTodayItemRight">
{{item.orderMoneyTotalDay}}
</view>
</view>
<view class="shopStatisticsMoth">
<view class="shopStatisticsMothLabel">本月</view>
<view class="shopStatisticsMothItem shopStatisticsTodayItemLeft">
{{item.fileTimesTotalMonth}}
</view>
<view class="shopStatisticsMothItem">{{item.experienceTotalMonth}}</view>
<view class="shopStatisticsMothItem">{{item.upgradeTotalMonth}}</view>
<view class="shopStatisticsMothItem shopStatisticsTodayItemRight">
{{item.orderMoneyTotalMonth}}
</view>
</view>
</view>
<view class="shopStatisticsTotal">
<view class="shopStatisticsTotalLabel">
<block wx:for="{{shopStatisticsTotalLabel}}" wx:key="index">
<view class="shopStatisticsTotalLabelItem" data-text="{{item}}">
{{item}}
</view>
</block>
</view>
<view class="StatisticsTotal">
<view class="StatisticsTotalLabel">总指标</view>
<view class="StatisticsTotalItem StatisticsTotalItemLeft">
{{item.attractExperienceRate}}
</view>
<view class="StatisticsTotalItem">{{item.experienceUpgradeRate}}</view>
<view class="StatisticsTotalItem StatisticsTotalItemRight">
{{item.upgradeAveragePrice}}
</view>
</view>
</view>
<view class="shopFooter">数据统计日期:{{dateObj.toadyforList}}</view>
</view>
</view>
</block>
<view class="tips" wx:if="{{currentPage == pages&&tableList.length>1}}">到底了~</view>
</scroll-view>
</view>
</block>
<block wx:if="{{!tableList.length}}">
<view class=" noListText">
<image
class="image"
src="../../images/nothingBg.png"
mode=""
binderror=""
bindload="" />
<view class="text">暂无数据</view>
</view>
</block>
</view>
</view>
</view>
<!-- btns="{{['返回','确定']}}" -->
<shareModal
id="modal"
class="modal"
custom='true'
show="{{shareModal}}"
bind:didClickBtn="shareBtn">
<view class="modatcontent">
<image class="img" src="{{ imagePath }}" mode="widthFix" />
</view>
</shareModal>