<template>
	<!-- 记工记账 -->
	<view class="page">
		<navbar title="记工记账" leftClick @leftClick="$utils.navigateBack" />
		
		<view style="font-weight: 500; margin-top: 20rpx;">
			<uv-tabs :list="tabsSatus" lineWidth="0" 
			lineHeight="0" 
			:scrollable="false"
			activeStyle="color: #3796F8;"></uv-tabs>
		</view>
		<view class="page-two">
			
			<view class="cell" style="margin-top: 40rpx;">
				<uv-cell v-for="(item,index) in list" 
				:label="item.billDate" 
				title="佣金收入" 
				:value="item.amount"></uv-cell>
			</view>
		</view>

	</view>
</template>

<script>
	import mixinList from '@/mixins/list.js'
	export default {
		mixins : [mixinList],
		data() {
			return {
				mixinsListApi : 'commonQueryBill',
				apiType : '',
				tabsSatus : [
					{
						name: '记账',
					}, 
					{
						name: '记工',
					},
				],
			}
		},
		onLoad({apiType}) {
			this.apiType = apiType
			this.mixinsListApi += apiType || ''
		},
		onShow() {},
		methods: {

		}
	}
</script>

<style scoped lang="less">
	.page {
		background-color: #fff;

		.page-two {
			width: 90%;
			margin-left: 5%;

			.wire {
				border-bottom: 4rpx dashed rgb(168, 197, 255);
			}

			.option {
				padding: 40rpx 40rpx 40rpx 0rpx;

				.select {
					background-color: #EBF0FC;
					padding: 15rpx 20rpx;
					border: none;
					color: #4280FD;
				}
			}

			.select-date {
				padding: 30rpx 0;

				.select {
					padding: 15rpx 0rpx;
					border: none;
					color: #4280FD;
				}
			}

			.card {
				display: flex;
				justify-content: space-around;
				align-items: center;
				background-color: #F2F5FD;

				.card-one,
				.card-two {
					display: flex;
					justify-content: center;
					align-items: center;
					height: 150rpx;
					width: 50%;
					font-size: 28rpx;
					line-height: 40rpx;
				}

				image {
					height: 50rpx;
					width: 50rpx;
					margin-right: 20rpx;
				}
			}
		}


	}
</style>