storeWarning.wxml 1.74 KB
<!--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>