<template>
	<view>
		<view class="content">
			<!-- 学生选择按钮 -->
			<button class="student" @click="goSigned">
				<view class="stu">
					签约
				</view>
				<view class="stu_point">
					签约用户选择此项
				</view>
				<view class="stu_img">
					<image src="../../static/stu_img.svg"></image>
				</view>
			</button>

			<!-- 维修人员选择按钮 -->
			<button class="worker" @click="goUnwind">
				<view class="work">
					解约
				</view>
				<view class="work_point">
					解约用户选择此项
				</view>
				<view class="work_img">
					<image src="../../static/work_img.svg"></image>
				</view>
			</button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			};
		},
		methods: {
			goSigned() {
				// 跳转到签约页面
				uni.navigateTo({
					url: "/pages/index/index"
				})
			},
			goUnwind() {
				// 跳转到解约页面
				uni.navigateTo({
					url: "/pages/unwind/unwind"
				})
			}
		}
	}
</script>

<style lang="scss">
	.content {
		flex-direction: column;
		display: flex;

		.student {
			position: relative;
			width: 702rpx;
			height: 300rpx;
			margin-top: 148rpx;
			margin-left: 24rpx;
			border-radius: 32rpx;
			background-color: rgba(42, 69, 228, 0.89);

			.stu {
				position: absolute;
				top: 34rpx;
				left: 50rpx;
				font-size: 56rpx;
				font-weight: 700;
				color: rgba(255, 255, 255, 1);
			}

			.stu_point {
				position: absolute;
				top: 140rpx;
				left: 50rpx;
				font: 32rpx;
				color: rgba(255, 255, 255, 1);
			}

			image {
				position: absolute;
				right: 44rpx;
				top: 72rpx;
				width: 152rpx;
				height: 152rpx;
			}
		}

		.worker {
			position: relative;
			width: 702rpx;
			height: 300rpx;
			margin-top: 114rpx;
			margin-left: 24rpx;
			border-radius: 32rpx;
			background-color: rgba(42, 130, 228, 1);

			.work {
				position: absolute;
				top: 34rpx;
				left: 50rpx;
				font-size: 56rpx;
				font-weight: 700;
				color: rgba(255, 255, 255, 1);
			}

			.work_point {
				position: absolute;
				top: 140rpx;
				left: 50rpx;
				font: 32rpx;
				color: rgba(255, 255, 255, 1);
			}

			image {
				position: absolute;
				right: 40rpx;
				top: 72rpx;
				width: 152rpx;
				height: 152rpx;
			}
		}
	}
</style>
