<template>
	<view class="container">
		<image class="bg" src="https://ysrw-1395926010.cos.ap-chengdu.myqcloud.com/image/bg_bench.png" mode="widthFix"></image>
		<view class="status_bar" :style="{height: statusBarHeight}"></view>
		<view class="content">
			<view class="title">工作台</view>
			<view class="summary-section ">
				<!-- <view class="summary-header">
					<view class="summary-indicator"></view>
					<text class="summary-title">互联网</text>
				</view> -->
				<view class="list">
					<view class="item" @click="navTo('/pages_task/xlTask')">
						<image class="icon" src="https://ysrw-1395926010.cos.ap-chengdu.myqcloud.com/image/xl.png"></image>
						<text>任务申请</text>
					</view>
					<view class="item" @click="navTo('/pages_speaker/index')">
						<image class="icon" src="https://ysrw-1395926010.cos.ap-chengdu.myqcloud.com/image/speaker.png" ></image>
						<text>讲者管理</text>
					</view>
					<view class="item" @click="navTo('/pages_task/approvalCenter')">
						<image class="icon" src="https://ysrw-1395926010.cos.ap-chengdu.myqcloud.com/image/approval.png"></image>
						<text>审批中心</text>
					</view>
				</view>
				<!-- <view class="summary-header">
					<view class="summary-indicator"></view>
					<text class="summary-title">行政管理</text>
				</view> -->
				<!-- <view class="list">
					<view class="item" @click="navTo('/pages_task/approvalCenter')">
						<image class="icon" src="https://ysrw-1395926010.cos.ap-chengdu.myqcloud.com/image/approval.png"></image>
						<text>审批中心</text>
					</view>
				</view> -->
			</view>
		</view>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				// 状态栏的高度
				// statusBarHeight: uni.getStorageSync('menuInfo').statusBarHeight,
				statusBarHeight: uni.getSystemInfoSync().statusBarHeight + 'px',
			}
		},
		computed: {

		},
		watch: {

		},
		onLoad() {

		},
		onReachBottom() {},
		// 分享给朋友
		onShareAppMessage(res) {
			return {
				title: '研究型互联网医院',
				path: '/pages/home/index',
				imageUrl: '/static/image/logo.png'
			}
		},
		// 分享朋友圈
		onShareTimeline() {
			return {
				title: '研究型互联网医院',
				query: '',
				imageUrl: '/static/image/logo.png'
			}
		},
		methods: {
			navTo(url) {
				uni.navigateTo({
					url: url
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.container {
		min-height: 100vh;
		display: flex;
		flex-direction: column;
		position: relative;

		.bg {
			width: 100%;
			position: absolute;
			top: 0;
			left: 0;
		}

		.content {
			width: 100%;
			height: 100%;
			position: relative;
			z-index: 2;

			.title {
				font-weight: 600;
				font-size: 36rpx;
				color: #333333;
				height: 88rpx;
				text-align: center;
				line-height: 88rpx;

			}

			.summary-section {
				padding: 32rpx 24rpx;
				display: flex;
				flex-direction: column;

				.summary-header {
					display: flex;
					align-items: center;
					margin-bottom: 24rpx;

					.summary-indicator {
						width: 6rpx;
						height: 32rpx;
						background: #388BFF;
						border-radius: 40rpx;
						margin-right: 16rpx;
					}

					.summary-title {
						font-size: 36rpx;
						font-weight: bold;
						color: #333;
					}
				}
			}

			.list {
				display: flex;
				align-items: center;
				margin-bottom: 40rpx;

				.item {
					display: flex;
					flex-direction: column;
					justify-content: center;
					align-items: center;
					width: 170rpx;
					height: 184rpx;
					border-radius: 20rpx 20rpx 20rpx 20rpx;
					font-size: 28rpx;
					color: #333333;

					.icon {
						width: 88rpx;
						height: 88rpx;
						margin-bottom: 16rpx;
					}
				}
			}
		}
	}
</style>