index.vue 9.21 KB
<template>
	<div class="page page-index">
		<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" />
						<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>
		<!-- 导航菜单切换 -->
		<div class="nav-tab">
			<div
				@click="onTabHandler(item)"
				v-html="item.name"
				v-for="item in tabList"
				:key="item.id"
				class="nav-tab-item"
				:class="{ 'nav-tab-item-act': item.index == curTab.index }"
				:style="'width: calc(100% / ' + tabList.length + ');'"
			>
				{{ item.name }}
			</div>
		</div>
		<!-- 推荐 为什么选择平安人寿 -->
		<div class="content recommend">
			<div class="tit">為何選擇平安人壽?</div>
			<div class="features">
				<div class="features-item">
					<div class="icon">
						<img src="@/assets/images/index/recommend-icon-1.png" alt />
					</div>
					<div class="desc">
						簡單方便
						<br />線上客戶服務系統
					</div>
				</div>
				<div class="features-item">
					<div class="icon">
						<img src="@/assets/images/index/recommend-icon-2.png" alt />
					</div>
					<div class="desc">
						信心保證
						<br />服務超過2億客戶
					</div>
				</div>
				<div class="features-item">
					<div class="icon">
						<img src="@/assets/images/index/recommend-icon-3.png" alt />
					</div>
					<div class="desc">
						國際級
						<br />風險管理
					</div>
				</div>
			</div>
			<div @click="toContactUs" class="contact-tips">
				<span class="icon"></span>
				聯絡我們
			</div>
		</div>

		<!-- 线上报价 -->
		<div
			class="quote"
			:style="
				'background: url(' +
					quoteBgUrl +
					') center no-repeat;'
			"
		>
			<div class="space1"></div>
			<div class="tit">線上報價 閃速投保</div>
			<div class="tit2">
				平安「好e時」自願醫保標準計劃為政府自願醫保認可的標準計劃,
				涵蓋重點醫療保障,投保流程簡易,全程線上進行。
			</div>
			<!-- tab表格 -->
			<div class="table">
				<div class="table-tab">
					<div
						@click="onTabHandler(item)"
						v-html="item.name"
						v-for="(item, index) in tabList"
						:key="item.id"
						class="table-tab-item"
						:class="{ 'table-tab-item-act': item.index == curTab.index }"
						:style="
							'width: calc(100% / ' +
								tabList.length +
								');z-index:' +
								(tabList.length - index) +
								''
						"
					>
						{{ item.name }}
					</div>
				</div>
				<div
					class="table-cont"
					:style="'width: calc(100% - 29px *' + (tabList.length - 1) + ')'"
				>
					<div @click="onPrevTabHandler()" class="arrow arrow-left"></div>
					<div @click="onNextTabHandler()" class="arrow arrow-right"></div>
					<div class="panel panel-left">
						<div class="desc">
							<div class="desc-item">・潛在長線資本增值</div>
							<div class="desc-item">・創建家族財富</div>
							<div class="desc-item">・身故及意外身故賠償</div>
							<div class="desc-item">・保單持有人意外身故賠償</div>
							<div class="desc-item">・自選保費繳付期</div>
							<div class="desc-item">・彈性賠償支付方式</div>
							<div class="desc-item">・豁免醫療核保</div>
						</div>
					</div>
					<div class="panel panel-right">
						<div class="func func1">
							<div class="func1-item">
								<div class="k">性別</div>
								<div class="gender">
									<div class="gender-item " @click="onQuoteSexHandler(1)">
										男性
										<img
											v-if="quoteData.gender == 1"
											src="@/assets/images/common/icon-male-act.png"
											alt=""
										/>
										<img
											v-else
											src="@/assets/images/common/icon-male.png"
											alt=""
										/>
									</div>
									<div class="gender-item" @click="onQuoteSexHandler(2)">
										女性
										<img
											v-if="quoteData.gender == 2"
											src="@/assets/images/common/icon-female-act.png"
											alt=""
										/>
										<img
											v-else
											src="@/assets/images/common/icon-female.png"
											alt=""
										/>
									</div>
								</div>
							</div>
							<div class="func1-item">
								<div class="k">年齡</div>
								<div class="age">
									<div class="ipt-wrap-linear">
										<div class="down-arrow"></div>
										<div class="cont">
											<el-select
												class="ipt"
												v-model="formData.gender"
												:placeholder="'年龄'"
											>
												<el-option
													v-for="(item, index) in 100"
													:key="index"
													:label="item"
													:value="item"
												></el-option>
											</el-select>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
			<div class="quote-btn">立即報價</div>
			<div class="customer-service">
				我想<span @click="toContactUs" class="udl pointer">聯絡客服</span>
			</div>
		</div>

		<!-- 联系我们表单 -->
		<div class="contact">
			<div class="box-w panel">
				<div class="panel-left">
					<div class="t1">
						如欲了解我們的產品,
						<br />歡迎聯絡我們。
					</div>
					<div class="t2">想了解更多?致電2983 8866^聯絡我們。</div>
					<img
						class="pic-mobile"
						src="@/assets/images/index/index-mobile.png"
						alt
					/>
				</div>
				<div class="panel-right">
					<div class="form">
						<div class="form-item fl">
							<!-- 称呼 -->
							<div class="ipt-wrap-linear dear">
								<div class="down-arrow"></div>
								<div class="cont">
									<el-select
										class="ipt"
										v-model="formData.gender"
										:placeholder="'稱呼'"
									>
										<el-option
											v-for="(item, index) in genderList"
											:key="index"
											:label="item.n"
											:value="item.v"
										></el-option>
									</el-select>
								</div>
							</div>
							<!-- 姓名 -->
							<div class="ipt-wrap-linear name">
								<div class="cont">
									<input class="ipt" type="text" placeholder="姓名*" />
								</div>
							</div>
						</div>

						<div class="form-item">
							<!-- 联系电话 -->
							<div class="ipt-wrap-linear">
								<div class="cont">
									<input class="ipt" type="text" placeholder="聯絡電話*" />
								</div>
							</div>
						</div>

						<div class="form-item">
							<!-- 電郵 -->
							<div class="ipt-wrap-linear">
								<div class="cont">
									<input class="ipt" type="text" placeholder="電郵*" />
								</div>
							</div>
						</div>

						<div class="form-item">
							<!-- 理想聯絡時間 -->
							<div class="ipt-wrap-linear">
								<div class="down-arrow"></div>
								<div class="cont">
									<!-- <input class="ipt" type="text" placeholder="理想聯絡時間*" /> -->
									<date-picker
										class="ipt-date"
										:formatter="'dd-MM-yyyy'"
										:placeholder="'理想聯絡時間'"
										v-model="formData.birthDate"
										:filtModel="['future']"
										:cusStyle="{
											border: 'none !important',
											'background-color': 'transparent !important',
											padding: '16px 24px',
											color: '#606266',
											'text-align': 'center'
										}"
									></date-picker>
								</div>
							</div>
						</div>

						<div class="form-item">
							<!-- 查詢事項 -->
							<div class="ipt-wrap-linear">
								<div class="cont">
									<textarea
										class="ipt textarea"
										placeholder="查詢事項"
									></textarea>
								</div>
							</div>
						</div>
					</div>
					<!-- 错误提示 -->
					<div class="err-tips">{{ errTips }}</div>
					<div class="submit-btn">提交</div>
				</div>
			</div>
		</div>
	</div>
</template>

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

<style lang="scss"></style>