<template>
	<view class="page" :style="themeColor">
		<view class="flex benben-position-layout flex flex-wrap align-center statisticalDetails_flex_0"
			:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx'}">
			<view class='flex flex-wrap align-center justify-between flex-sub statisticalDetails_fd0_0'>
				<view class='flex flex-wrap align-center' @tap.stop="handleJumpDiy" data-type="back" data-url="1">
					<text class='fu-iconfont2  statisticalDetails_fd0_0_c0_c0' @tap.stop="handleJumpDiy"
						data-type="back" data-url="1">&#xE794;</text>
				</view>
				<view class='flex flex-wrap align-stretch justify-center flex-sub'>
					<text class='statisticalDetails_fd0_0_c1_c0'>资金统计</text>
				</view>
				<view class='flex flex-wrap align-center statisticalDetails_fd0_0_c2'>
				</view>
			</view>

		</view>
		<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
		<!---flex布局flex布局开始-->
		<view class="flex benben-flex-layout flex-wrap align-center statisticalDetails_flex_1">
			<view>
				<benben-flex-tabs class-name='statisticalDetails_benbenTabsfd1_0' v-model="tabls" ref="benben_tabsfd1_0"
					select-mark="benben_tabsfd1_0" key="benben_tabsfd1_0" :open-title-type='false' :open-sticky='true'
					:top='0' :is-show-content='false' :scrollspy='false' :tabs-info.sync="tabsInfofd1_0">

					<scroll-view @scroll="tabsInfofd1_0.scrollX = $event.detail.scrollLeft" id="benben_tabsfd1_0"
						class="benben-tabs" style="width:750rpx" :scroll-x="true"
						:scroll-left.sync="tabsInfofd1_0.moveX" scroll-with-animation="all .3s ease">
						<view class="benben-tabs-content" id="benben_tabsfd1_0-content">
							<view id="benben_tabsfd1_0-title" class="benben-tabs-title flex align-center flex ">
								<view
									:class="{ 'checkTitlefd1_0': tabls == '1', 'flex flex-wrap align-center justify-center statisticalDetails_titlefd1_0_c3': true }"
									@tap="changeTap(1)" :id="`benben_tabsfd1_0-title-item-${'1'}`">

									<text>当日</text>

								</view>
								<view
									:class="{ 'checkTitlefd1_0': tabls == '2', 'flex flex-wrap align-center justify-center statisticalDetails_titlefd1_0_c4': true }"
									@tap="changeTap(2)" :id="`benben_tabsfd1_0-title-item-${'2'}`">

									<text>近7天</text>

								</view>
								<view
									:class="{ 'checkTitlefd1_0': tabls == '3', 'flex flex-wrap align-center justify-center statisticalDetails_titlefd1_0_c5': true }"
									@tap="changeTap(3)" :id="`benben_tabsfd1_0-title-item-${'3'}`">

									<text>近30天</text>

								</view>
								<view
									:class="{ 'checkTitlefd1_0': tabls == '4', 'flex flex-wrap align-center justify-center statisticalDetails_titlefd1_0_c6': true }"
									@tap="changeTap(4)" :id="`benben_tabsfd1_0-title-item-${'4'}`">

									<text>全部</text>

								</view>
							</view>
							<view :style="{ left: tabsInfofd1_0.lineleft, maxWidth: tabsInfofd1_0.lineWidth }"
								id="benben_tabsfd1_0-line" class="benben-tabs-line flex benben-flex-tabs-line"></view>
						</view>
					</scroll-view>

				</benben-flex-tabs>

			</view>
		</view>

		<!---flex布局flex布局结束-->
		<!---flex布局flex布局开始-->
		<view class="flex flex-direction flex-wrap align-stretch benben-flex-layout statisticalDetails_flex_2">
			<view class='flex flex-direction flex-wrap align-stretch flex-sub statisticalDetails_fd2_0'>
				<view class='flex flex-wrap align-center'>
					<text class='statisticalDetails_fd2_0_c0_c0'>营业额统计</text>
				</view>
				<view class='flex flex-wrap align-end justify-center statisticalDetails_fd2_0_c1'>
					<text class='statisticalDetails_fd2_0_c1_c0'>￥</text>
					<view class=' statisticalDetails_fd2_0_c1_c1'>
						<text class=' statisticalDetails_price1_fd2_0_c1_c1'>{{ details.order_money | frontPrice }}</text>
						<text class=' statisticalDetails_price2_fd2_0_c1_c1'>{{ details.order_money  | laterPrice }}</text>
					</view>
				</view>
			</view>
			<view class='flex flex-direction flex-wrap align-stretch flex-sub statisticalDetails_fd2_1'>
				<view class='flex flex-wrap align-center'>
					<text class='statisticalDetails_fd2_1_c0_c0'>订单统计</text>
				</view>
				<view class='flex flex-wrap align-end justify-center statisticalDetails_fd2_1_c1'>
					<text class='statisticalDetails_fd2_1_c1_c0'>{{details.order_num }}</text>
				</view>
			</view>
			<view class='flex flex-direction flex-wrap align-stretch flex-sub statisticalDetails_fd2_2'>
				<view class='flex flex-wrap align-center'>
					<text class='statisticalDetails_fd2_2_c0_c0'>利润统计</text>
				</view>
				<view class='flex flex-wrap align-end justify-center statisticalDetails_fd2_2_c1'>
					<text class='statisticalDetails_fd2_2_c1_c0'>￥</text>
					<view class=' statisticalDetails_fd2_2_c1_c1'>
						<text class=' statisticalDetails_price1_fd2_2_c1_c1'>{{ details.profit  | frontPrice }}</text>
						<text class=' statisticalDetails_price2_fd2_2_c1_c1'>{{ details.profit  | laterPrice }}</text>
					</view>
				</view>
			</view>
		</view>

		<!---flex布局flex布局结束-->
		<view class="flex flex-direction flex-wrap align-center benben-position-layout flex statisticalDetails_flex_3">
			<button class='statisticalDetails_fd3_0' @tap.stop="handleJumpDiy" data-type="navigateTo"
				:data-url="`/pages/dpgl/viewReport/viewReport`">财务报表</button>

		</view>
		<view :style="{height: '128rpx'}"></view>


	</view>
</template>
<script>
	export default {
		components: {},


		data() {
			return {
				"tabsInfofd1_0": {
					lineleft: '',
					lineWidth: '',
					moveX: 0,
					scrollX: 0,
					PageScrollX: 0
				},
				"tabls": "1",
				details:""
			};
		},
		computed: {
			themeColor() {
				return this.$store.getters.themeColor
			},

		},
		watch: {},
		onLoad(options) {

		},
		onShow() {
			this.post6486e03b64354()
		},
		methods: {
			changeTap(type){
				this.tabls = type
				this.post6486e03b64354()
			},
			post6486e03b64354(){
				this.$api.post(global.apiUrls.post6486e03b64354,{
					type:this.tabls
				}).then(res=>{
					if(res.data.code==1){
						this.details = res.data.data
					}
				})
			}
		}
	};
</script>
<style lang="scss" scoped>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: rgba(248, 248, 248, 1);
		background-size: 100% auto !important;
	}

	.statisticalDetails_flex_0 {
		background: #fff;
		width: 750rpx;
		height: 88rpx;
		overflow: hidden;
		z-index: 10;
		top: 0rpx;
		background-size: 100% auto !important;
	}

	.statisticalDetails_fd0_0_c2 {
		width: 32rpx;
		height: 32rpx;
	}

	.statisticalDetails_fd0_0_c1_c0 {
		font-size: 36rpx;
		font-weight: 500;
		color: #333333;
		line-height: 36rpx;
	}

	.statisticalDetails_fd0_0_c0_c0 {
		font-size: 32rpx;
		font-weight: 500;
		color: #333;
		line-height: 88rpx;
	}

	.statisticalDetails_fd0_0 {
		margin: 0rpx 32rpx 0rpx 32rpx;
	}

	.statisticalDetails_flex_1 {
		padding: 0rpx 0rpx 0rpx 4rpx;
	}

	.statisticalDetails_titlefd1_0_c6 {
		background: rgba(255, 255, 255, 1);
		margin: 0rpx 0rpx 0rpx 20rpx;
		width: 136rpx;
		height: 60rpx;
		border-radius: 36rpx 36rpx 36rpx 36rpx;
		background-size: 100% auto !important;
	}

	.statisticalDetails_titlefd1_0_c5 {
		background: rgba(255, 255, 255, 1);
		margin: 0rpx 0rpx 0rpx 20rpx;
		width: 136rpx;
		height: 60rpx;
		border-radius: 36rpx 36rpx 36rpx 36rpx;
		background-size: 100% auto !important;
	}

	.statisticalDetails_titlefd1_0_c4 {
		background: rgba(255, 255, 255, 1);
		margin: 0rpx 0rpx 0rpx 20rpx;
		width: 136rpx;
		height: 60rpx;
		border-radius: 36rpx 36rpx 36rpx 36rpx;
		background-size: 100% auto !important;
	}

	.statisticalDetails_titlefd1_0_c3 {
		background: rgba(255, 255, 255, 1);
		margin: 0rpx 0rpx 0rpx 20rpx;
		width: 136rpx;
		height: 60rpx;
		border-radius: 36rpx 36rpx 36rpx 36rpx;
		background-size: 100% auto !important;
	}

	.checkTitlefd1_0 {
		font-weight: 700 !important;
		font-size: 28rpx !important;
		color: rgba(255, 255, 255, 1) !important;
		background-color: rgba(255, 147, 0, 1) !important;
	}

	::v-deep .statisticalDetails_benbenTabsfd1_0 {
		width: 750rpx;
		height: 108rpx;
		white-space: nowrap;
		text-align: center;
		font-size: 24rpx;
		font-weight: 500;
		color: #666666;
	}

	.statisticalDetails_flex_2 {
		padding: 0rpx 24rpx 0rpx 24rpx;
	}

	.statisticalDetails_price2_fd2_2_c1_c1 {
		font-size: 40rpx;
		color: #333333;
		font-weight: 700;
		line-height: 40rpx;
	}

	.statisticalDetails_price1_fd2_2_c1_c1 {
		font-size: 40rpx;
		color: #333333;
		font-weight: 700;
		line-height: 40rpx;
	}

	.statisticalDetails_fd2_2_c1_c1 {
		color: #ff5536;
		font-weight: 600;
	}

	.statisticalDetails_fd2_2_c1_c0 {
		color: #333333;
		font-size: 28rpx;
		font-weight: 700;
		line-height: 30rpx;
	}

	.statisticalDetails_fd2_2_c1 {
		margin: 22rpx 0rpx 0rpx 0rpx;
	}

	.statisticalDetails_fd2_2_c0_c0 {
		color: #666666;
		font-size: 28rpx;
		font-weight: 500;
		line-height: 30rpx;
	}

	.statisticalDetails_fd2_2 {
		background: rgba(255, 255, 255, 1);
		border-radius: 16rpx 16rpx 16rpx 16rpx;
		background-size: 100% auto !important;
		margin: 0rpx 0rpx 20rpx 0rpx;
		padding: 24rpx 0rpx 39rpx 24rpx;
	}

	.statisticalDetails_fd2_1_c1_c0 {
		color: #333333;
		font-size: 40rpx;
		font-weight: 700;
		line-height: 40rpx;
	}

	.statisticalDetails_fd2_1_c1 {
		margin: 22rpx 0rpx 0rpx 0rpx;
	}

	.statisticalDetails_fd2_1_c0_c0 {
		color: #666666;
		font-size: 28rpx;
		font-weight: 500;
		line-height: 30rpx;
	}

	.statisticalDetails_fd2_1 {
		background: rgba(255, 255, 255, 1);
		border-radius: 16rpx 16rpx 16rpx 16rpx;
		background-size: 100% auto !important;
		margin: 0rpx 0rpx 20rpx 0rpx;
		padding: 24rpx 0rpx 39rpx 24rpx;
	}

	.statisticalDetails_price2_fd2_0_c1_c1 {
		font-size: 40rpx;
		color: #333333;
		font-weight: 700;
		line-height: 40rpx;
	}

	.statisticalDetails_price1_fd2_0_c1_c1 {
		font-size: 40rpx;
		color: #333333;
		font-weight: 700;
		line-height: 40rpx;
	}

	.statisticalDetails_fd2_0_c1_c1 {
		color: #ff5536;
		font-weight: 600;
	}

	.statisticalDetails_fd2_0_c1_c0 {
		color: #333333;
		font-size: 28rpx;
		font-weight: 700;
		line-height: 30rpx;
	}

	.statisticalDetails_fd2_0_c1 {
		margin: 22rpx 0rpx 0rpx 0rpx;
	}

	.statisticalDetails_fd2_0_c0_c0 {
		color: #666666;
		font-size: 28rpx;
		font-weight: 500;
		line-height: 30rpx;
	}

	.statisticalDetails_fd2_0 {
		background: rgba(255, 255, 255, 1);
		border-radius: 16rpx 16rpx 16rpx 16rpx;
		background-size: 100% auto !important;
		margin: 0rpx 0rpx 20rpx 0rpx;
		padding: 24rpx 0rpx 39rpx 24rpx;
	}

	.statisticalDetails_flex_3 {
		background: rgba(248, 248, 248, 1);
		width: 750rpx;
		height: 128rpx;
		overflow: hidden;
		z-index: 10;
		bottom: calc(0rpx + var(--window-bottom));
		background-size: 100% auto !important;
	}

	.statisticalDetails_fd3_0 {
		background: rgba(255, 147, 0, 1);
		border-radius: 44rpx 44rpx 44rpx 44rpx;
		font-size: 32rpx;
		color: #fff;
		width: 686rpx;
		height: 88rpx;
		line-height: 88rpx;
		font-weight: 400;
	}
</style>
