<template>
	<view class="app">
		<view class="cards">
			<view class="nursing item">
				<image src="../../static/jjhl.png" mode=""></image>
				<view class="title">
					护理站
				</view>
			</view>
			<view class="expert item" @tap='gomedicine'>
				<image src="../../static/zhuanjia.png" mode=""></image>
				<view class="title">
					就医
				</view>
			</view>
			<view class="item knowledge">
				<image src="../../static/zs.png" mode=""></image>
				<view class="title">
					健康知识
				</view>
			</view>
			<view class="elderly item">
				<image src="../../static/ylfw.png" mode=""></image>
				<view class="title" style="font-size: 42rpx;">
					国家老年病中心
				</view>
			</view>
			<view class="smallitem">
				<image src="../../static/pb.png" mode=""></image>
				<view class="title">
					体卫融合
				</view>
			</view>
			<view style="width:56% ;">
			</view>
		</view>


	</view>
</template>

<script>
	export default {
		data() {
			return {};
		},
		methods: {
			//跳转就医页面
			gomedicine() {
				uni.navigateTo({
					url: '/pages/medicine/medicine'
				})
			},
		}
	}
</script>

<style lang="scss">
	.app {
		// background-color: #F4F5F7;
		// width: 100%;
		// height: 100vh;
		// position: relative;

		.cards {

			.smallitem {
				width: 30%;
				height: 200rpx;
				margin-bottom: 40rpx;
				border-radius: 25rpx;
				position: relative;
				background: #9E4DD0;

				.title {
					width: 90%;
					text-align: center;
					font-size: 26rpx;
					color: #FCFCFC;
					position: absolute;
					top: 60%;
					left: 50%;
					transform: translateX(-50%);
				}

				image {
					width: 70rpx;
					height: 70rpx;
					position: absolute;
					top: 20%;
					left: 50%;
					transform: translateX(-50%);
				}
			}

			.knowledge {
				background-color: #E1AE3C;
			}

			.elderly {
				background-color: #00C176;
			}

			.expert {
				background-color: #D43953;
			}

			.nursing {
				background: #4C7BC9;
			}
		}
	}
</style>
