monthReport.wxml
4.73 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
<!--packageOutput/pages/monthReport/monthReport.wxml-->
<wxs src="time.wxs" module="formatTime" />
<view class="container">
<navigation-bar showBack="{{true}}" navStyle="{{navStyle}}" bindnavbarReady="navbarReady">产值{{timeType=='day'?'日':'月'}}报表</navigation-bar>
<view class="layout" id="layout" style="padding-top:{{navHeight}}px; height: calc(100vh)">
<!-- 背景图 -->
<!-- <view class="bg-box" style="height:{{368 + navHeight * 2}}rpx;top:-{{navHeight}}px">
<view class="bg">
<glsx-image webp src="store-assistant/index_bg.webp"></glsx-image>
</view>
</view> -->
<scroll-view scroll-y class="content" class="content" refresher-triggered="{{triggered}}" refresher-enabled bindrefresherrefresh="getReport" bindscroll="scrollIng" style="{{'height: 100%'}}">
<view class="store-box">
<view class="store-item">
<view class="store-logo">
<glsx-image class="store-logo" webp src="output/merchantIcon.png"></glsx-image>
</view>
<view class="store-content">
<view class="store-name">{{merchantName}}</view>
<view class="store-desc">欢迎查看{{timeType=='day'?'日':'月'}}报表数据</view>
</view>
</view>
<view class="date-input" bindtap="onDisplay">
<view class="date-value">{{formatTime.formatTime(timeValue,timeType=='day'?11:8)}}</view>
<view class="date-icon">
<glsx-image class="date-icon" webp src="output/clander.png"></glsx-image>
</view>
</view>
</view>
<view class="output-box">
<view class="output-title">
当{{timeType=='day'?'日':'月'}}产值
</view>
<view class="totalCon" wx:if="{{type != 2}}">
<view class="item">
<view class="label">总营业额(元)</view>
<veiw class="number">
<text class="unit">¥ </text>{{outputData['orderMoneyTotal'] ||0}}
</veiw>
</view>
<view class="item">
<view class="label">发券量(张)</view>
<veiw class="number">
{{outputData['sendCouponTotal'] ||0}}
</veiw>
</view>
</view>
<view class="output-value">
<view class="output-item" wx:for="{{outputView[type == 2?'outputValue':'outputValueBoutique']}}" wx:key="index">
<view class="output-label">
<view class="label">{{item.label}}</view>
<glsx-image src="{{item.iconUrl}}" class="icon" />
</view>
<view class="output-num" style="font-size: {{(outputData[item.name] ||0) > 10000000?27:36}}rpx"><text class="_unit">{{item._unit}}</text> {{outputData[item.name] ||0}}<text class="unit_">{{item.unit_}}</text></view>
</view>
</view>
</view>
<view class="billboard-box">
<view class="billboard-title">
<text>当{{timeType=='day'?'日':'月'}}员工龙虎榜</text>
<view class="select-up" wx:if="{{type == 2 && timeType!='day'}}">
<view catchtap="showUp" class="staff-type">
<text>{{dataType[selectValue-1].label}}</text>
<glsx-image webp custom-class="up-icon" src="/output/down.png"></glsx-image>
</view>
<view class="up-box" hidden="{{typeShow}}">
<view class="up-item {{selectValue == item.value? 'checked':''}}" wx:for="{{dataType}}" wx:key="index" data-label="{{item.label}}" data-value="{{item.value}}" catchtap="selectType">
{{item.label}}
</view>
</view>
</view>
</view>
<view class="billboard-border">
<block wx:if="{{billboard.length}}">
<view class="billboard-item" wx:for="{{billboard}}" wx:key="index">
<view class="billboard-item-bar">
<view class="bill-border">
<view class="bill-name">{{item.name}}</view>
<view class="bill-num" wx:if="{{item.name}}"><text class="unit" wx:if="{{item.unit}}">{{item.unit}}</text>{{item.value}}<text class="unit" wx:if="{{item.sign}}">{{item.sign}}</text></view>
</view>
<glsx-image webp custom-class="bill-bg" src="output/bill0{{item.sort}}.png"></glsx-image>
</view>
</view>
</block>
<view wx:if="{{billboard.length==0}}" class="empty">
<glsx-image webp custom-class="empty-icon" src="output/empty.png"></glsx-image>
<view class="empty-text">暂无排行榜数据</view>
</view>
</view>
</view>
</scroll-view>
</view>
<popup bind:hidePopup="cancel" bind:confirm="confirm" show="{{show}}" height="50vh">
<van-datetime-picker max-date="{{ maxDate }}" value="{{ currentDate }}" type="{{timeType=='day'?'date':'year-month'}}" bind:input="onInput" />
</popup>
</view>