<template>
	<view class="container">
		<view class="report-tab">
			<u-tabs :list="tabList" bar-width="60" bar-height="6" active-color="#FF6D25" inactive-color="#666666" font-size="30" :is-scroll="false" :current="current" @change="change"></u-tabs>
		</view>
		<view class="my-btn">
			<view class="dot"></view>部门战报<view class="dot"></view>
		</view>
		<view class="list-box">
			<view class="list-item" v-for="(item, index) in listData" :key="index">
				<view class="item-top">
					<view class="left">
						<image class="house-icon" src="/static/house.png" mode="" />
						芍药居一店一部
					</view>
					<view class="right">
						我的战报 
						<image class="path" src="/static/path.png" mode="" />
					</view>
				</view>
				<view class="item-bottom">
					<view class="subitem-box">
						<view class="number">32</view>
						<view class="text">新增成交/单</view>
					</view>
					<view class="subitem-box">
						<view class="number">32</view>
						<view class="text">新增客户/位</view>
					</view>
					<view class="subitem-box">
						<view class="number">32</view>
						<view class="text">新增带看/位</view>
					</view>
					<view class="subitem-box">
						<view class="number">32</view>
						<view class="text">新增代理合同/单</view>
					</view>
					<view class="subitem-box">
						<view class="number">32</view>
						<view class="text">新增客户跟进/位</view>
					</view>
					<view class="subitem-box">
						<view class="number">32</view>
						<view class="text">新增拜访/位</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>
<script>
	export default {
		data() {
			return {
				tabList: [{
					name: '今日'
				}, {
					name: '本周'
				}, {
					name: '本月'
				}],
				current: 0,
				listData: [{},{},{}],
			};
		},
		onLoad(options) {
		},
		onShow() {
		
		},
		methods: {
			change(index){
				this.current = index
			},
		},
	
	};
</script>

<style lang="scss" scoped>
.container{
	width: 100%;
	min-height: 100vh;
	background: #F8F8F8;
	overflow: auto;
	padding-bottom: 60rpx;
	.report-tab{
		border-bottom: 1px solid rgba(224,224,224,0.5);
	}
	.my-btn{
		width: 280rpx;
		height: 88rpx;
		line-height: 88rpx;
		background: linear-gradient(360deg, #FECF3F 0%, #DD1F10 0%, #FF6D25 100%);
		box-shadow: inset 0px -8rpx 2rpx 0px #CD0000;
		border-radius: 46rpx;
		margin: 20rpx auto;
		color: #fff;
		font-size: 32rpx;
		font-family: PingFangSC-Medium, PingFang SC;
		font-weight: 500;
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 0 28rpx;
		box-sizing: border-box;
		.dot{
			width: 20rpx;
			height: 20rpx;
			background: #FFEEB7;
			border-radius: 10rpx;
			box-shadow: inset 2rpx -5rpx 0px 0px #FFD244;
		}
	}
	.list-box{
		width: 750rpx;
		.list-item{
			background:#fff;
			margin-bottom: 20rpx;
			padding: 30rpx;
			.item-top{
				display: flex;
				justify-content: space-between;
				align-items: center;
				margin-bottom: 24rpx;
				.left{
					display: flex;
					align-items: center;
					font-size: 30rpx;
					font-family: PingFangSC-Medium, PingFang SC;
					font-weight: 500;
					color: #333333;
					line-height: 42rpx;
					.house-icon{
						width: 30rpx;
						height: 30rpx;
						margin-right: 12rpx;
					}
				}
				.right{
					display: flex;
					align-items: center;
					font-size: 30rpx;
					font-family: PingFangSC-Regular, PingFang SC;
					font-weight: 400;
					color: #333333;
					.path{
						width: 14rpx;
						height: 30rpx;
						margin-left: 12rpx;
					}
				}

			}
			.item-bottom{
				width: 690rpx;
				height: 286rpx;
				background: #F8F8F8;
				border-radius: 12rpx;
				display: flex;
				align-items: center;
				flex-wrap: wrap;
				.subitem-box{
					display: flex;
					flex-direction: column;
					align-items: center;
					justify-content: space-between;
					width: 33.333%;
					.number{
						margin-bottom: 6rpx;
						height: 56rpx;
						font-size: 40rpx;
						font-family: PingFangSC-Medium, PingFang SC;
						font-weight: 500;
						color: #333333;
						line-height: 56rpx;
					}
					.text{
						height: 36rpx;
						font-size: 26rpx;
						font-family: PingFangSC-Regular, PingFang SC;
						font-weight: 400;
						color: #333333;
						line-height: 36rpx;
					}
				}

			}

		}
	}
}
 

</style>
