storePerformance.wxml 2.6 KB
<!--packageIndex/pages/specialTask/specialTask.wxml-->
<navigation-bar bind:navbarReady="navbarReady"
                class="navigation-header"
                showBack
                bind:back="back"
                navStyle="background-color: white;box-shadow:none;">
	<view class="page-title">
		门店业绩列表
	</view>
</navigation-bar>
<scroll-view scroll-y
             class="container"
             style="padding-top: calc({{ navBarHeight }}px); padding-bottom: calc(140rpx + env(safe-area-inset-bottom));">
	<view class="filter-wrapper">
		<view class="tab-wrapper">
			<TypeTabs bind:change="handleBrandTabChange"
			          list="{{ brandType.list }}"
			          value="{{ query.statDimension }}" />
		</view>
		<view class="date-filter-wrapper">
			<date-screen customBackground="#f3f3f4"
			             tabSelected="{{ 3 }}"
			             bind:search="handleSearch"></date-screen>
		</view>
		<view class="statistics-wrapper"
		      wx:if="{{ query.dateType === 1 || query.dateType === 2 }}">
			<view wx:for="{{ staticInfoList }}"
			      wx:key="{{ item.key }}"
			      class="static-item"
			      style="background:{{ item.background }}">
				<view class="label">
					{{ item.label }}
				</view>
				<view class="value">
					{{ statistics[item.key] }}
				</view>
			</view>
		</view>
		<van-search value="{{ query.filterKey }}"
		            shape="round"
		            custom-class="search-input-wrapper"
		            background="#fff"
		            bind:change="handleFilterKeyChange"
		            placeholder="搜索门店名称..." />
	</view>
	<view class="list-wrapper">
		<view class="title-wrapper">
			门店列表
		</view>
		<block wx:if="{{ list && list.length > 0 }}">
			<view class="item-wrapper"
			      wx:for="{{ list }}"
			      wx:key="index"
			      data-item="{{ item }}"
			      bind:tap="handleTapItem">
				<StatisticsItem title="{{ item.merchantName }}"
				                data="{{ item }}"
				                hideValue="4"
				                schema="{{ schemaList }}">
					<view slot="title-sub" class="title-sub-wrapper">
						<view class="label">
							{{ item.staffCount }}名驻店人员
						</view>
						<view wx:if="{{ item.warnList && item.warnList.length }}">
							<WarnList list="{{ item.warnList }}" />
						</view>
					</view>
				</StatisticsItem>
			</view>
			<view class="last-tips">
				到底了~
			</view>
		</block>
		<block wx:else>
			<empty-data />
		</block>
	</view>
</scroll-view>

<view class="fixed-action-bar">
	<view class="fixed-action-btn" catchtap="goSpecialTaskApply">
		<view class="fixed-action-text">发起专项任务</view>
	</view>
</view>