<template>
	<view class="app">
		<view class="visual">
			<view class="department">
				<view class="item" v-for="(item,index) in departmentlist" :key="index"
					:class="aindex == index ?'departmentitem':''">
					{{item.name}}
				</view>
			</view>
			<view class="list">
				<view class="information">
					<view class="image">
					</view>
					<view class="name">
						某某某
					</view>
				</view>
				<view class="information">
					<view class="image">
					</view>
					<view class="name">
						某某某
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				aindex: 1,
				departmentlist: [{
						name: '内科',
					},
					{
						name: '外科',
					},
					{
						name: '皮肤科',
					},
				],
			};
		}
	}
</script>

<style lang="scss">
	.app {
		.visual {
			text-align: center;
			width: 94%;
			margin: 0 auto;
			background-color: #F4F5F7;
			padding-top: 20rpx;
			display: flex;

			.list {
				width: 72%;
				background: #FFFFFF;
				box-shadow: 0px 9rpx 31rpx 9rpx rgba(0, 0, 0, 0.03);
				border-radius: 0px 20rpx 20rpx 0px;
				padding-bottom: 100rpx;

				.information {
					width: 90%;
					position: relative;
					margin: 37rpx auto 0;
					padding-bottom: 60rpx;
					border-bottom: 1rpx solid #D8D4D4;

					.name {
						font-size: 36rpx;
						position: absolute;
						left: 45%;
						top: 10%;
					}

					.image {
						width: 135rpx;
						height: 138rpx;
						background: #BFBFBF;
						border-radius: 25rpx;
						margin-left: 6%;
					}
				}
			}

			.department {
				width: 28%;

				.item {
					line-height: 100rpx;
					width: 100%;
					height: 100rpx;
					background: #ffffff;
					box-shadow: 0px 9rpx 31rpx 9rpx rgba(0, 0, 0, 0.03);
					border-radius: 20rpx 0px 0px 20rpx;
					margin-bottom: 6rpx;
				}

				.departmentitem {
					background: #4C7BC9;
					color: #ffffff;
				}
			}
		}
	}
</style>
