vhis-detail.vue 6.48 KB

<template>
	<div class="page page-vhis">
		<div class="banner-contaner">
			<!-- banner 轮播 -->

			<div class="banner banner-pc">
				<swiper :options="swiperOption">
					<swiper-slide v-for="(item,index) in bannerList" :key="index">
						<img class="banner-img" :src="item.pcBannerUrl">
						<!-- <img :src="require('@/assets/images/vhis/kv.png')"> -->
						<div class="btn-wrap">
							<div v-for="(btnItem, btnIndex) in item.btns" :key="btnIndex">
								<div class="banner-btn" v-if="btnItem.n && btnItem.t && btnItem.c" @click="btnNavigateTo(btnItem.t,btnItem.l)" :style="{backgroundColor:btnItem.c}">{{btnItem.n}}</div>
							</div>
						</div>
					</swiper-slide>
					<!-- <div class="swiper-button-prev" slot="button-prev"></div>
					<div class="swiper-button-next" slot="button-next"></div> -->
					<!-- <div class="swiper-pagination" slot="pagination"></div> -->
				</swiper>
			</div>

			<div class="banner banner-mobile">
				<swiper class="swiper" :options="swiperOption">
					<swiper-slide v-for="(item,index) in bannerList" :key="index">
						<img class="banner-img" :src="item.mobileBannerUrl">
						<div class="btn-wrap">
							<div class="banner-btn" v-for="(btnItem, btnIndex) in item.btns" :key="btnIndex" @click="btnNavigateTo(btnItem.t,btnItem.l)" :style="{color:btnItem.c}">{{btnItem.n}}&nbsp;&gt;</div>
						</div>
					</swiper-slide>
					<div class="swiper-pagination" slot="pagination"></div>
				</swiper>
			</div>
			<!-- <div class="swiper-button-prev" slot="button-prev"></div>
					<div class="swiper-button-next" slot="button-next"></div> -->

			<div v-if="bannerTipsVisible" class="banner-tips">
				<div class="cont">
					<div class="tit">
						<img class="icon" src="@/assets/images/vhis/hot-deal-icon.png"> {{$t('vhisDetail.bannerTips.t1')}}
					</div>
					<div class="desc">
						<div class="t1"> {{$t('vhisDetail.bannerTips.t2')}}</div>
						<div class="t2"> {{$t('vhisDetail.bannerTips.t3')}}</div>
					</div>
				</div>
				<img @click="onHideBannerTipsHandler" class="close" src="@/assets/images/vhis/close2.png">
			</div>
		</div>
		<!-- 标题 -->
		<div class="title">
			<div class="tt t1"><img class="easy easy1" src="@/assets/images/vhis/easy-1.png">{{$t('vhisDetail.title.t1')}}</div>
			<div class="tt t2">
				{{$t('vhisDetail.title.t2')}}<img class="easy easy2" src="@/assets/images/vhis/easy-2.png">{{$t('vhisDetail.title.t3')}}<br> {{$t('vhisDetail.title.t4')}}
			</div>
		</div>
		<div class="content">
			<!-- 产品 -->
			<div class="box product">
				<div class="tit">{{$t('vhisDetail.main.t1')}}</div>
				<div class="prod">
					<div v-for="(item,index) in productList" :key="item.id" class=" prod-item">
						<div class="cont">
							<div class="icon-wrap">
								<img :src="require('@/assets/images/vhis/vhis-icon'+(index+1)+'.png')">
							</div>
							<div class="detail">
								<div class="t1" v-html="item.title">{{item.title}}</div>
								<div class="more pointer" @click="onShowMoreHandler(index)">
									<div class="more-icon-wrap">
										<img v-if="item.showMore"  src="@/assets/images/vhis/vhis-mine.png">
										<img v-else src="@/assets/images/vhis/vhis-plus.png">
									</div>
									<div class="c1">{{item.showMore ? $t('vhisDetail.close') : $t('vhisDetail.expand')}}</div>
								</div>
								<div v-if="item.showMore" class="desc">
									{{item.desc}}
									<div class="tips">{{item.tips}}</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>

			<!-- 视频 -->
			<div class="box video">
				<video-player class="vjs-custom-skin" ref="videoPlayer" :options="playerOptions" :playsinline="true">
				</video-player>
			</div>

			<!-- 保障 -->
			<div class="guarantee">
				<div class="tit">{{$t('vhisDetail.guarantee1.t1')}}</div>
				<div class="table">
					<div class="border2 table-border"></div>
					<div class="table-item">
						<div class="tt label">{{$t('vhisDetail.guarantee1.t2')}}</div>
						<div class="tt val">{{$t('vhisDetail.guarantee1.t3')}}</div>
					</div>
					<div class="table-item">
						<div class="tt label">{{$t('vhisDetail.guarantee1.t4')}}</div>
						<div class="tt val">{{$t('vhisDetail.guarantee1.t5')}}</div>
					</div>
					<div class="table-item">
						<div class="tt label">{{$t('vhisDetail.guarantee1.t6')}}</div>
						<div class="tt val">{{$t('vhisDetail.guarantee1.t7')}}</div>
					</div>
					<div class="table-item">
						<div class="tt label">{{$t('vhisDetail.guarantee1.t8')}}</div>
						<div class="tt val">{{$t('vhisDetail.guarantee1.t9')}}</div>
					</div>
					<div class="table-item">
						<div class="tt label">{{$t('vhisDetail.guarantee1.t10')}}</div>
						<div class="tt val">{{$t('vhisDetail.guarantee1.t11')}}</div>
					</div>
					<div class="table-item">
						<div class="tt label">{{$t('vhisDetail.guarantee1.t12')}}</div>
						<div class="tt val">{{$t('vhisDetail.guarantee1.t13')}}</div>
					</div>
				</div>

				<div class="table2">
					<div class="table-item">
						<div class="tt label">
							<div class="t1">{{$t('vhisDetail.guarantee2.t1')}}</div>
							<ul>
								<li>
									<span>{{$t('vhisDetail.guarantee2.t2')}}</span>
									<span class="small">1</span>
									<span>{{$t('vhisDetail.guarantee2.t3')}}</span>
								</li>
								<li>{{$t('vhisDetail.guarantee2.t4')}}
								</li>
								<li>{{$t('vhisDetail.guarantee2.t5')}}</li>
							</ul>
						</div>
						<div class="tt tt2 label label2">
							<div class="t1">
								<span>{{$t('vhisDetail.guarantee2.t6')}}</span>
								<span class="small">2</span>
							</div>
							<ul>
								<li>{{$t('vhisDetail.guarantee2.t7')}}
								</li>
							</ul>

						</div>
					</div>
				</div>
			</div>

			<!-- 下载 -->
			<div class="download">
				<div class="border2 download-item">
					<div class="cont">
						<img class="icon" src="@/assets/images/vhis/vhis-download.png"> {{$t('vhisDetail.download.t1')}}
					</div>
				</div>
				<div class="border2 download-item">
					<div class="cont">
						<img class="icon" src="@/assets/images/vhis/vhis-download.png"> {{$t('vhisDetail.download.t2')}}
					</div>
				</div>
				<div class="border2 download-item">
					<div class="cont">
						<img class="icon" src="@/assets/images/vhis/vhis-download.png"> {{$t('vhisDetail.download.t3')}}
					</div>
				</div>
			</div>

			<!-- 立即投保 -->
			<div class="submit-btn" @click="bottomBtnHandle()">
				{{$t('vhisDetail.submitBtn')}}
			</div>

		</div>
	</div>

</template>

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