index.vue 2.4 KB
<template>
	<div class="guide">
		<div class="title">{{ data.title }}</div>
		<div class="content">
			<div class="guid-item " :class="{
			qualityAssessment: data.qualityAssessment || false,
			assetRegistration: data.assetRegistration || false,
			registration: data.registration || false,
		}" v-for="item in data.children" :key="item.title">
				<div class="guid-item-title">{{ item.title }}</div>
				<div style="padding-right: 30px;">
					<div class="text" v-for="text in item.children" :key="text" v-html="text"></div>
				</div>
			</div>
		</div>
	</div>
</template>
<script setup lang="ts">
const props = defineProps({
	data: {
		type: Object,
		default: {} as any
	}
})
const data: any = computed(() => props.data)
</script>
<style lang="scss" scoped>
.guide {
	padding-top: 16px;
	width: 100%;
	height: auto;
	padding-left: 16px;
	padding-right: 11px;
	background: #fff;
	margin-bottom: 16px;

	.title {
		font-size: 18px;
		color: #212121;
		letter-spacing: 0;
		line-height: 27px;
		font-weight: 600;
		padding-top: 10px;
	}

	.content {
		display: flex;
		justify-content: space-around;
		padding-bottom: 16px;

		.qualityAssessment {
			background: url("../../../../assets/images/qualityAssessment.png");
			background-size: auto 100%;
			background-position: center right;
			background-repeat: no-repeat;
		}

		.assetRegistration {
			background: url("../../../../assets/images/assetRegistration.png");
			background-size: auto 100%;
			background-position: center right;
			background-repeat: no-repeat;
		}

		.registration {
			background: url("../../../../assets/images/registration.png");
			background-size: auto 100%;
			background-position: center right;
			background-repeat: no-repeat;
		}

		.guid-item {
			width: 100%;
			height: 171px;
			border-right: 1px solid rgba(217, 217, 217, 1);

			// background: url("../../../../assets/images/qualityAssessment.png");
			// width: 100%;
			// height:171px;
			// background-size: auto 100%;
			// background-position: center right;
			// background-repeat: no-repeat;
			&>div {
				margin-left: 24px
			}

			.guid-item-title {
				font-size: 20px;
				color: #2D60B9;
				letter-spacing: 0;
				line-height: 30px;
				font-weight: 500;
				margin-top: 24px;
				margin-bottom: 16px;
			}

			.text {
				list-style: none;
				color: #666666;
				letter-spacing: 0;
				line-height: 21px;
				font-weight: 400;
				margin-bottom: 8px;
				width: 100%;
			}
		}
	}

}
</style>