<template>
	<view class="modal-page">
		<view class="modal-box">
			<image class="pic" src="../../../static/hint.png"></image>
			<text class="text">您的分配工作量较大，建议使用批量分配功能</text>
			<view class="btn-wrap">
				<view class="btn" @click="isBatchHandle(false)">
					<text class="btn-text">取消</text>
				</view>
				<view class="btn" @click="isBatchHandle(true)">
					<text class="btn-text">确定</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	//提示弹框
	export default {
		data() {
			return {
			}
		},
		methods: {
			isBatchHandle(flage) {
				this.$emit('callback', flage);
			}
		},
	}
</script>

<style lang="less">
	.modal-page{
		display: flex;
		flex-direction: row;
		justify-content: center;
		align-items: center;
		position: fixed;
		top: 0rpx;
		left: 0rpx;
		height: 100%;
		width: 100%;
		background: rgba(0,0,0,0.5);
		.modal-box{
			background: #FFFFFF;
      border-radius: 24px;
      overflow: hidden;
			position: relative;
			height: 317.5rpx;
			width: 562.5rpx;

			.pic{
				height: 80rpx;
				width: 80rpx;
				position: absolute;
				top: 50rpx;
				left: 241.25rpx;
			}
			.text{
				font-size: 22.5rpx;
				font-family: SourceHanSansCN-Normal, SourceHanSansCN;
				font-weight: 400;
				color: #292C33;
				position: absolute;
				top: 170rpx;
				left: 56.25rpx;
			}
			.btn-wrap {
				display: flex;
				flex-direction: row;
				justify-content: space-between;
				position: absolute;
				bottom: 0rpx;
				border-top: 1px solid #DADEE6;
				width: 100%;
				.btn{
					height: 75rpx;
					width: 50%;
					background: #3377FF;
					text-align: center;
					.btn-text{
						font-size: 22.5rpx;
						font-family: SourceHanSansCN-Normal, SourceHanSansCN;
						font-weight: 400;
						color: #FFFFFF;
						line-height: 75rpx;
					}
					&:first-child {
						background-color: #fff;
						.btn-text {
							color: #292C33;
						}
					}
				}
			}
		}
	}
</style>
