common-form.vue 1.85 KB

<template>
	<div class="container common-form-container">
		<div class="table">
			<div class="table-header orange">
				<div class="table-header-item w1">{{$t('commonForm.head1')}}</div>
				<div class="table-header-item w2">{{$t('commonForm.head2')}}</div>
				<div class="table-header-item w3">{{$t('commonForm.head3')}}</div>
				<div class="table-header-item w4">{{$t('commonForm.head4')}}</div>
			</div>
			<div class="table-content">
				<div v-for="(item,index) in i18n.commonForm.form" :key="index" class="table-content-item">
					<div v-if="index < i18n.commonForm.form.length-1" class="hl"></div>
					<div class="ww w1">
						{{item.type}}
					</div>
					<div class="ww w2">
						<div v-for="(item2,index2) in item.list" :key="index2" class="grid">
							<div class="v-line"></div>
							<div v-if="index < i18n.commonForm.form.length-1 || index2 < item.list.length-1" class="h-line"></div>
							<span v-html="item2.name"> {{item2.name}}</span>
						</div>
					</div>
					<div class="ww w3">
						<div v-for="(item2,index2) in item.list" :key="index2" class="grid">
							<div class="v-line"></div>
							<div v-if="index < i18n.commonForm.form.length-1 || index2 < item.list.length-1" class="h-line"></div>
							<span v-html="item2.desc"> {{item2.desc}}</span>
						</div>
					</div>
					<div class="ww w4">
						<div v-for="(item2,index2) in item.list" :key="index2" class="grid pointer">
							<div v-if="index < i18n.commonForm.form.length-1 || index2 < item.list.length-1" class="h-line"></div>
							<div class="flex-center" @click="downloadHandle(item2)"><img class="icon" src="@/assets/images/common-form/icon-cf-download.png" alt=""> {{$t('commonForm.download')}}</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</template>

<script src="./common-form.js"></script>
<style lang="scss" scoped>
@import "./common-form.scss";
</style>