personalPerformance.wxml
4.5 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
<view class="personal-performance">
<view class="date">
<date-screen id="dateScreen" bind:search="onDateSearch" customBackground="#F7F8FA" initTimeDimension="{{initTimeDimension}}" initStartDate="{{initStartDate}}" initEndDate="{{initEndDate}}"></date-screen>
</view>
<view class="merchant-change" bind:tap="handleChangeMerchant">
<image src="{{IMG_URL}}analyse-merchant-icon.png" mode=""/>
<view class="name">{{selectedMerchantObj.merchantName}}</view>
<image src="{{IMG_URL}}arrow-down.png" mode=""/>
</view>
<block wx:if="{{selectedMerchantObj.merchantId}}">
<view class="merchant-data">
<view class="title">
<image src="{{IMG_URL}}analyse-merchant.png" mode=""/>
<view>门店数据</view>
</view>
<view class="content-box">
<view class="merchant-static-item" style="width: {{item.width}}rpx;" wx:for="{{statMerchants}}" wx:key="index">
<view>
<view class="label">{{item.text}}</view>
<view class="value">{{item.value}}</view>
</view>
</view>
</view>
</view>
<view class="divider"></view>
<view class="data-base">
<view class="top-title">
<image src="{{IMG_URL}}analyse-satff.png" mode=""/>
<view>人员数据</view>
</view>
<view class="statistics-box">
<view class="statistics" wx:for="{{statCards}}" style="background: {{card.background}};width: {{card.width}}rpx;" wx:for-item="card" wx:key="key">
<view class="title">{{card.text}}<image bindtap="openHelp" data-target="{{card}}" src="{{IMG_URL}}icon-white-info.png" mode=""/></view>
<view class="value">{{card.value}}</view>
<view class="ratio" wx:if="{{card.showMom}}">
<text class="ratio-label" wx:if="{{queryType != 'self'}}">环比</text>
<text class="ratio-value">{{card.momValue}}</text>
<image wx:if="{{card.momArrow}}" class="ratio-arrow" src="{{card.momArrow}}" mode=""/>
</view>
</view>
</view>
</view>
<view class="divider"></view>
<view class="analyse-data">
<view class="helps" bindtap="openHelp">帮助<image src="{{IMG_URL}}help-tips.png" mode=""/></view>
<view class="chunk {{chunk.posClass}}" wx:for="{{analyseChunks}}" wx:for-item="chunk" wx:key="id">
<view class="name">
<text>{{chunk.name}}</text>
<text class="rate" wx:if="{{chunk.rateValue}}">{{chunk.rateValue}}</text>
</view>
<view class="value" wx:if="{{chunk.value}}">{{chunk.value}}</view>
<view class="chunkLabel" wx:if="{{chunk.showMom}}">
<text class="mom-label">环比</text>
<text class="mom-value" style="color: {{chunk.momColor}}">{{chunk.momValue}}</text>
<image class="mom-arrow" wx:if="{{chunk.momArrow}}" src="{{chunk.momArrow}}" mode=""/>
</view>
</view>
</view>
<view class="divider" style="margin-top: 0;" wx:if="{{showSummaryAnalysis}}"></view>
<view class="business-stats" wx:if="{{showSummaryAnalysis}}">
<view class="stat-row" wx:for="{{businessStatsRows}}" wx:for-item="row" wx:key="key">
<view class="row-title">{{row.label}}</view>
<view class="row-content">
<view class="col {{col.colClass}}" wx:for="{{row.cols}}" wx:for-item="col" wx:key="label">
<view class="label">{{col.label}}</view>
<view class="value {{col.colorClass || ''}}">{{col.value}}</view>
<view class="sub-label" wx:if="{{col.subLabel}}">{{col.subLabel}}</view>
</view>
</view>
</view>
</view>
<view class="divider"></view>
<view class="product-value">
<view class="header">
<image src="{{IMG_URL}}analyse-chart.png" mode=""/>
<view class="title">个人产值趋势</view>
</view>
<analyse-line
id="line"
opts="{{opts}}"
chartData="{{trendList}}"
/>
</view>
</block>
<van-dialog
use-slot
title="{{tipsTitle || '帮助'}}"
show="{{helpVisible}}"
show-cancel-button="{{false}}"
confirm-button-text="知道了"
confirm-button-color="#347BFF"
bind:confirm="closeHelp"
bind:close="closeHelp"
>
<view class="help-message">
<view wx:if="{{tipsText}}" class="">{{tipsText}}</view>
<block wx:else>
<view class="help-item" wx:for="{{helpTextArr}}" wx:for-item="help" wx:key="title">
<text class="help-label">{{help.title}}:</text>
<text>{{help.content}}</text>
</view>
</block>
</view>
</van-dialog>
</view>
<select-popup show="{{ showSelectPopup }}" options="{{ selectOptions }}" values="{{ selectValues }}" value="{{ selectValue }}" bindconfirm="handlePopupConfirm" labelKey="merchantName" valueKey="merchantId" height="80%" title="门店选择" allowSearch="{{true}}" bindcancel="hideSelectPopup"></select-popup>