<template>
	<view class="contetn">
		<view class="jg" style="height: 50rpx;">
			
		</view>
		<view class="applic-wrap" v-for="item in navList" @click="navTo(item.path)">
			<image :src="item.bgimg" mode="" class="item-bg"></image>
			<view class="item-tit">{{item.tit}}</view>
			<view class="item-content">{{item.content}}</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				navList: [{
						tit: '志愿者报名',
						content: '成为红十字志愿者',
						path: '/pages/form/tovolApply',
						bgimg: '../../static/img/applic-1.png'
					},
					{
						tit: '个人/团体会员报名',
						content: '加入红十字成为会员',
						path: '/pages/cart/cart',
						bgimg: '../../static/img/applic-2.png'
					},
					{
						tit: '普及培训',
						content: '一起学习救援知识',
						path: '/pages/train/index',
						bgimg: '../../static/img/applic-3.png'
					},
					{
						tit: '遗体器官捐献',
						content: '报名捐献遗体器官',
						path: '/pages/form/applicationForm',
						bgimg: '../../static/img/applic-4.png'
					}
				]
			}
		},
		methods: {
			navTo(url) {
				uni.navigateTo({
					url,
					fail() {
						uni.switchTab({
							url
						})
					}
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	page {
		background-color: #fff;
		height: 100%;
	}
	.applic-wrap {
		width: 630rpx;
		height: 230rpx;
		margin: auto;
		margin-bottom: 40rpx;
		position: relative;
		padding: 70rpx 50rpx;
		.item-bg {
			position: absolute;
			top: 0;
			left: 0;
			width: 630rpx;
			height: 230rpx;
		}
		.item-tit {
			position: relative;
			font-size: 38rpx;
			font-family: PingFang SC;
			font-weight: bold;
			color: #333333;
		}
		.item-content {
			position: relative;
			font-size: 24rpx;
			font-family: PingFang SC;
			font-weight: bold;
			color: rgba(153, 153, 153, 0.5);
			padding-top: 24rpx;
		}
	}
</style>
