<template>
	<!-- 结算中心页面 -->
	<view>
		<view class="top">
			<view class="content">
				<view class="content-one">
				</view>
				<text class="content-two">代理商2</text>
				<text class="content-three">核销返利</text>
				<view class="content-four">
					<text>品牌</text>
					<text>奖励</text>
					<text @click="checkedAll1">全选</text>
				</view>
				<view class="content-five">
					<view>
						<u-icon name="photo"></u-icon>
					</view>
					<view>
						800万
					</view>
					<view>
						<u-checkbox-group>
									<u-checkbox 
										v-model="checked1" 
									></u-checkbox>
								</u-checkbox-group>
					</view>
				</view>
				<view class="content-five">
					<view>
						<u-icon name="photo"></u-icon>
					</view>
					<view>
						800万
					</view>
					<view>
						<u-checkbox-group>
									<u-checkbox 
										v-model="checked2" 
									></u-checkbox>
								</u-checkbox-group>
					</view>
				</view>
				<view class="content-five">
					<view>
						<u-icon name="photo"></u-icon>
					</view>
					<view>
						800万
					</view>
					<view>
						<u-checkbox-group>
									<u-checkbox 
										v-model="checked3" 
									></u-checkbox>
								</u-checkbox-group>
					</view>
				</view>
			</view>
		</view>
		<view class="content2">
				<view class="content-one">
				</view>
				<text class="content-two">代理商1</text>
				<text class="content-three">核销返利</text>
				<view class="content-four">
					<text>品牌</text>
					<text>奖励</text>
					<text @click="checkedAll">全选</text>
				</view>
				<view class="content-five">
					<view>
						<u-icon name="photo"></u-icon>
					</view>
					<view>
						800万
					</view>
					<view>
						<u-checkbox-group>
									<u-checkbox 
										v-model="checked4" 
									></u-checkbox>
								</u-checkbox-group>
					</view>
				</view>
				<view class="content-five">
					<view>
						<u-icon name="photo"></u-icon>
					</view>
					<view>
						800万
					</view>
					<view>
						<u-checkbox-group>
									<u-checkbox 
										v-model="checked5" 
									></u-checkbox>
								</u-checkbox-group>
								<!-- <u-button @click="checkedAll">全选</u-button> -->
					</view>
				</view>
				
			</view>
		</view>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				checked1: false,
				checked2: false,
				checked3: false,
				checked4: false,
				checked5: false
			};
		},
			methods: {
				// 选中某个复选框时，由checkbox时触发
				checkboxChange(e) {
					//console.log(e);
				},
				// 选中任一checkbox时，由checkbox-group触发
				checkboxGroupChange(e) {
					// console.log(e);
				},
				// 全选
				checkedAll() {
					this.checked4 = true
					this.checked5 = true
				},
				checkedAll1() {
					this.checked1 = true
					this.checked2 = true
					this.checked3 = true
				}
			},
			}
</script>

<style>
	.top {
		width: 750rpx;
		height: 331rpx;
		background: url(../../static/sailun/background.png) no-repeat;
		background-size: 750rpx 331rpx;
	}

	.content {
		width: 712rpx;
		height: 445rpx;
		margin: 0 auto;
		background: #FFFFFF;
		box-shadow: 0px 0px 24px 0px rgba(101, 176, 249, 0.41);
		border-radius: 18px;
		position: relative;
		top: 30rpx;
	}
	.content2 {
		width: 712rpx;
		height: 351rpx;
		margin: 0 auto;
		background: #FFFFFF;
		box-shadow: 0px 0px 24px 0px rgba(101, 176, 249, 0.41);
		border-radius: 18px;
		position: relative;
		top: 170rpx;
		}

	.content-one {
		width: 6rpx;
		height: 30rpx;
		background-color: #0589F8;
		position: relative;
		top: 20rpx;
		left: 30rpx;

	}

	.content-two {
		font: 26rpx;
		font-weight: bolder;
		position: relative;
		top: -14rpx;
		left: 60rpx;
	}

	.content-three {
		width: 114rpx;
		height: 40rpx;
		display: inline-block;
		background-color: #3A9FF2;
		position: relative;
		top: -14rpx;
		left: 470rpx;
		border-radius: 10rpx;
		font-size: 24rpx;
		color: #fff;
		text-align: center;
		line-height: 40rpx;
	}

	.content-four {
		display: flex;
		justify-content: space-between;
		font-weight: bolder;
		font-size: 26rpx;
		margin-top: 40rpx;
		margin-left: 80rpx;
		margin-right: 50rpx;
	}

	.content-five {
		display: flex;
		justify-content: space-between;
		font-size: 24rpx;
		margin-top: 40rpx;
		margin-left: 100rpx;
		font-weight: bolder;
		margin-right: 30rpx;
	}
</style>
