storeWarning.wxml
1.74 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
<!--pages/components/storeWarning/storeWarning.wxml-->
<!-- <text>pages/components/storeWarning/storeWarning.wxml</text> -->
<view class="box indicator">
<view class="header">
<view class="left">指标预警门店</view>
<view class="right select" bindtap="changeMonth">
{{showMonth}}
<glsx-image class="icon" src="{{ '/index/arrowbottom.png' }}" webp></glsx-image>
</view>
</view>
<view class="tips">指标异常门店</view>
<view class="list">
<view class="item" bindtap="navigateToStoreDetail" data-index="{{ 0 }}">
<view class="top">兜底指数预警</view>
<view class="bottom">
<text class="num">{{warningStores.backstopWarningCount}}</text>
<text class="unit">家</text>
</view>
</view>
<view class="item" bindtap="navigateToStoreDetail" data-index="{{ 1 }}">
<view class="top">丢店风险预警</view>
<view class="bottom">
<text class="num">{{warningStores.lostShopWarningCount}}</text>
<text class="unit">家</text>
</view>
</view>
<view class="item last" bindtap="navigateToStoreDetail" data-index="{{ 2 }}">
<view class="top">亏损预警</view>
<view class="bottom">
<text class="num">{{warningStores.lossWarningCount}}</text>
<text class="unit">家</text>
</view>
</view>
</view>
</view>
<!-- 月份选择弹窗(门店) -->
<popup
bind:hidePopup="cancel"
bind:confirm="popupConfirm"
customPopupSlotStyle="{{ 'height: calc(100% - 210rpx)' }}"
show="{{ monthPickerShow }}"
title="选择月份"
height="50%"
>
<van-datetime-picker
type="year-month"
model:value="{{ monthPickerValue }}"
min-date="{{ minMonthDate }}"
max-date="{{ maxMonthDate }}"
show-toolbar="{{ false }}"
bind:change="onMonthChange"
/>
</popup>