<template>
	<view>
		<image class="gzt-image" src="/static/gzt-bg.png"></image>
		<view class="content">
			<view class="header">
				<view class="fill" @click="backTo">
					<i class="uni-btn-icon back"> </i>
				</view>
				<view class="fill title">工作台</view>
				<view class="fill"></view>
			</view>
			<view class="panel">
				<view class="action">
					<view class="title2">草原核查数据</view>
					<view class="flex" style="margin-top: 36px;">
						<view class="action-btn fill flex" style="margin-right: 12px;" @click="toSjsb">
							<image src="/static/sjsb.png" class="action-img"></image>
							<text class="action-text">数据上报</text>
							<image src="/static/jr.png" class="action-arrow"></image>
						</view>
						<view class="action-btn fill flex" @click="toSjgl">
							<image src="/static/sjgl.png" class="action-img"></image>
							<text class="action-text">数据管理</text>
							<image src="/static/jr.png" class="action-arrow"></image>
						</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				token: ''
			}
		},
		methods: {
			toSjsb() {
				uni.navigateTo({
					url: '/pages/sjsb/sjsb'
				})
			},
			toSjgl() {
				uni.navigateTo({
					url: '/pages/sjgl/sjgl'
				})
			},
			backTo() {
				uni.navigateBack()
			}
		}
	}
</script>

<style>
	.action-text {
		font-size: 16px;
		font-weight: bold;
	}

	.action-img {
		width: 64px;
		height: 64px;
		margin-bottom: -14px;
	}

	.action-arrow {
		width: 12px;
		height: 12px;
		margin-left: 4px;
	}

	.flex {
		display: flex;
		flex-direction: row;
	}

	.action-btn {
		background: #FBFBFD;
		border-radius: 15px;
		padding: 16px 4px;
		align-items: center;
		justify-content: center;
	}

	.gzt-image {
		height: 300px;
		width: 100vw;
		position: absolute;
		top: 0;
	}

	.content {
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		padding-top: 48px;
	}

	.header {
		display: flex;
		color: #fff;
		z-index: 1;
	}

	.title {
		text-align: center;
		font-size: 20px;
		font-weight: bold;
	}

	.back {
		font-size: 27px;
		font-weight: bold;
		padding-left: 12px;
	}

	.fill {
		flex: 1
	}

	.panel {
		padding: 20px;
		margin-top: 40px;
	}

	.action {
		height: 160px;
		background: #FFFFFF;
		box-shadow: 0px 0px 1px 0px rgba(0, 0, 0, 0.1);
		border-radius: 20px;
		padding: 24px 12px;
	}

	.title2 {
		font-weight: 400;
		font-size: 24px;
		color: #222222;
	}
</style>