4sOverview.wxml 6.47 KB
<!-- tabOperating/pages/4sOverview/4sOverview.wxml -->
<!-- src引入filter.wxs, module给模块起名 -->
<wxs src="../index.wxs" module="filter" />
<glsx-privacy appletName="生意助手员工版" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
<view class="layout {{flag?'opacity':''}}">
	<navigation-bar bindback="jump" bindnavbarReady="navbarReady" showBack="{{true}}">
		<picker
		        range="{{merchantRange}}"
		        value="{{subIndex}}"
		        range-key="merchantName"
		        bindchange="changePicker"
		        bindtap="tapPicker"
		        bindcancel="tapPicker"
		        disabled="{{merchantRange.length < 2}}">
			<view class="navigation-title">
				<view class="navigation-title-text text-hide">
					{{merchantRange[subIndex].merchantName}}
				</view>
				<view class="arrow {{moveArrow?'move':''}}" wx:if="{{merchantRange.length > 1}}">
					<image src="{{ IMG_URL }}images/arrow-bottom.png" />
				</view>
			</view>
		</picker>
	</navigation-bar>
	<view class="header" style="margin-top:{{statusBarHeight}}px">
		<view class="total4s" bindtap="createNewImg">
			累计合作门店共计
			<text class="num">{{total}}</text>
			家
		</view>
		<view class="date">
			<calendar
			          id="calender"
			          class="calendar"
			          allowSameDay
			          shortcut
			          bindselect='rangeSelect'
			          rangeAll
			          dateType='single'
			          calenderColor='#347BFF'
			          vertical
			          minDate="2020-10-01"
			          maxDate="{{dateObj.maxDate}}"
			          isComponents>
				<view class="item text-center dateNum">
					{{dateObj.todayShow}}
					<image class="solidArrow" src="../../images/solidArrow.png" />
				</view>
			</calendar>
		</view>
	</view>
	<view class="canvas-box">
		<!-- style="width:{{canvasWidth}}rpx;height:{{canvasHeight}}rpx;" -->
		<canvas style="width:355px;height:370px; margin:0 auto;" canvas-id="mycanvas" />
	</view>
	<!-- {{isFullSucreen?'isFullSucreen':''}} -->
	<view class="table {{isFullSucreen?'isFullSucreen':''}}">
		<view class="tableContainer">
			<block>
				<view class="table-body ">
					<!-- <image class="img" src="{{ src }}" mode="widthFix" /> -->
					<scroll-view
					             scroll-y
					             enable-back-to-top
					             refresher-enabled="{{true}}"
					             bindrefresherrefresh="restPageNum"
					             bindscrolltolower="scrollonReachBottom"
					             refresher-threshold="104"
					             style="height:100%;"
					             class="list"
					             refresher-triggered="{{triggered}}">
						<block wx:for="{{tableList}}" wx:key="index">
							<view class="shopcon">
								<view class="shopconHeader">
									<view class="shopconHeaderTitle">{{item.merchantName}}</view>
									<image
									       bindtap="showShareModel"
									       data-item="{{item}}"
									       class="shareIcon"
									       src="../../images/shareIcon.png" />
								</view>
								<view class="shopInfo">
									<view class="shopheader">
										<view class="shopheaderitem">
											<view class="shopheaderNum">{{item.customerTotal}}</view>
											<view class="shopheaderlabel">客户数</view>
										</view>
										<view class="shopheaderitem">
											<view class="shopheaderNum">{{item.customerShareRate}}</view>
											<view class="shopheaderlabel">客占率</view>
										</view>
									</view>
									<view class="shopStatistics">
										<view class="shopStatisticsLabel">
											<block wx:for="{{ShopStatisticsLabel}}" wx:key="index">
												<view class="shopStatisticsLabelItem" data-text="{{item}}">{{item}}</view>
											</block>
										</view>
										<view class="shopStatisticsToday">
											<view class="shopStatisticsTodayLabel">当天</view>
											<view class="shopStatisticsTodayItem shopStatisticsTodayItemLeft">
												{{item.filmTimesTotalDay}}
											</view>
											<view class="shopStatisticsTodayItem">{{item.experienceTotalDay}}</view>
											<view class="shopStatisticsTodayItem">{{item.upgradeTotalDay}}</view>
											<view class="shopStatisticsTodayItem shopStatisticsTodayItemRight">
												{{item.orderMoneyTotalDay}}
											</view>
										</view>
										<view class="shopStatisticsMoth">
											<view class="shopStatisticsMothLabel">本月</view>
											<view class="shopStatisticsMothItem shopStatisticsTodayItemLeft">
												{{item.fileTimesTotalMonth}}
											</view>
											<view class="shopStatisticsMothItem">{{item.experienceTotalMonth}}</view>
											<view class="shopStatisticsMothItem">{{item.upgradeTotalMonth}}</view>
											<view class="shopStatisticsMothItem shopStatisticsTodayItemRight">
												{{item.orderMoneyTotalMonth}}
											</view>
										</view>
									</view>
									<view class="shopStatisticsTotal">
										<view class="shopStatisticsTotalLabel">
											<block wx:for="{{shopStatisticsTotalLabel}}" wx:key="index">
												<view class="shopStatisticsTotalLabelItem" data-text="{{item}}">
													{{item}}
												</view>
											</block>
										</view>
										<view class="StatisticsTotal">
											<view class="StatisticsTotalLabel">总指标</view>
											<view class="StatisticsTotalItem StatisticsTotalItemLeft">
												{{item.attractExperienceRate}}
											</view>
											<view class="StatisticsTotalItem">{{item.experienceUpgradeRate}}</view>
											<view class="StatisticsTotalItem StatisticsTotalItemRight">
												{{item.upgradeAveragePrice}}
											</view>
										</view>
									</view>
									<view class="shopFooter">数据统计日期:{{dateObj.toadyforList}}</view>
								</view>
							</view>
						</block>
						<view class="tips" wx:if="{{currentPage == pages&&tableList.length>1}}">到底了~</view>
					</scroll-view>
				</view>
			</block>
			<block wx:if="{{!tableList.length}}">
				<view class=" noListText">
					<image
					       class="image"
					       src="../../images/nothingBg.png"
					       mode=""
					       binderror=""
					       bindload="" />
					<view class="text">暂无数据</view>
				</view>
			</block>
		</view>
	</view>
</view>
<!-- btns="{{['返回','确定']}}" -->
<shareModal
            id="modal"
            class="modal"
            custom='true'
            show="{{shareModal}}"
            bind:didClickBtn="shareBtn">
	<view class="modatcontent">
		<image class="img" src="{{ imagePath }}" mode="widthFix" />
	</view>
</shareModal>