<template>
	<view class="container">
		<view class="certifyIntro">
			{{certificateInfo.cerIntroduce}}
		</view>
		<view class="certifySignInfo">
			<ul>
				<li><text>报名时间：</text><text>{{certificateInfo.startDate}} - {{certificateInfo.endDate}}</text></li>
				<li><text>考试费用：</text><text>{{certificateInfo.examinationPrice}}</text></li>
				<li><text>培训费用：</text><text>{{certificateInfo.trainPrice}}</text></li>
				<li><text>培训课程：</text><text>{{certificateInfo.courseName}}</text></li>
				<li><text>培训方式：</text><text>{{certificateInfo.trainType == 1 ? '线上培训' : '/'}}</text></li>
				<li><text>考试方式：</text><text>{{certificateInfo.examinationType == 1 ? '线上考试' : '/'}}</text></li>
				<li><text>及格分数：</text><text>{{certificateInfo.passScore}}</text></li>
			</ul>
			<view class="eqrocdeContent">
				<img :src="certificateInfo.wechatCodeUrl" alt="" srcset="">
				<text>请扫二维码进群学习~</text>
			</view>
		</view>
		<!-- 荣誉证书 -->
		<view class="certifyImgBox">
			<h3>荣誉证书</h3>
			<img :src="certificateInfo.cerUrl" alt="" srcset="">
		</view>
		<!-- 考试计划 -->
		<view class="examPlanning">
			<h3>考试计划</h3>
			<view class="content">
				<h4>Ⅰ.考核类型</h4>
				<view>理论考试：客观+主观题</view>	
				<h4>Ⅱ.考试内容</h4>
				<view>考核内容包括：保险，财会，基金，信托</view>	
				<h4>Ⅲ.得分说明</h4>
				<view>总分：客观题得分+主观题得分</view>	
			</view>
		</view>
		<!-- 考试认证流程 -->
		<view class="examProcessContainer">
			<h3>考试认证流程</h3>
			<ul>
				<li>
					<view>
						<img src="../../static/certifyProcess/onlineSign.png" alt="" srcset="">
					</view>
					<view>
						<h4>线上报名</h4>
						<view>点击右下方“立即报名”，提交信息，选择时间 并缴费后即可完成报名。</view>	
					</view>
				</li>
				<li>
					<view>
						<img src="../../static/certifyProcess/onlineExam.png" alt="" srcset="">
					</view>
					<view>
						<h4>线上考试</h4>
						<view>考试必须在电脑端进行，通过浏览器访问考试链 接进行考试。电脑须配置摄像头设备用于考前人 脸和身份验证、考中监考等。考试前请确认设备 网络、摄像头可正常运行！</view>	
					</view>
				</li>
				<li>
					<view>
						<img src="../../static/certifyProcess/getCertify.png" alt="" srcset="">
					</view>
					<view>
						<h4>获得证书</h4>
						<view>考试分及格后，即可获得证书</view>	
					</view>
				</li>
				<li>
					<view>
						<img src="../../static/certifyProcess/feedback.png" alt="" srcset="">
					</view>
					<view>
						<h4>填写反馈</h4>
						<view>培训完成后，请填写培训反馈，考试质量进行评估。</view>	
					</view>
				</li>
			</ul>
			<!-- 报名按钮区域 -->
			<view class="signBtnContent">
				<view class="consultBtn">咨询客服</view>
				<view class="signBtn">立即报名</view>
			</view>
		</view>
		
	</view>
</template>

<script>
	import api from "@/api/api";
	export default {
		data() {
			return {
				certificateInfo:{}
			};
		},
		methods:{
			queryCertificateInfo(certificateId=null,userSignupId=null){
				const params = {
					certificateId:certificateId,
					userSignupId:userSignupId
				}
				api.queryCertificateInfo(params).then(res=>{
					console.log(res)
					if(res['success']){
						this.certificateInfo = res['data'];
					}
				})
			}
		}
	}
</script>

<style lang="scss">
	.container{
		.certifyIntro{
			padding: 20rpx 30rpx;
			text-indent: 60rpx;
			line-height: 1.5;
			border-bottom: 1px solid #e4e4e4;
			background-color: #fff;
		}
		.certifySignInfo{
			padding: 20rpx 30rpx;
			line-height: 2;
			background-color: #fff;
			margin-bottom: 10rpx;
		}
		.certifyImgBox,.examPlanning,.examProcessContainer{
			padding: 20rpx 30rpx;
			margin-bottom: 10rpx;
			background-color: #fff;
		}
		.examPlanning{
			h3{
				font-size: 32rpx;
				margin-bottom: 30rpx;
			}
			.content{
				h4{
					margin-bottom: 10rpx;
					color: #333;
					margin-left: 24rpx;
				}
				view{
					margin-bottom: 20rpx;
					margin-left: 65rpx;
					color: #666;
				}	
			}
			
		}
		.certifyImgBox{
			h3{
				font-size: 32rpx;
				margin-bottom: 30rpx;
			}
		}
		.examProcessContainer{
			h3{
				font-size: 32rpx;
				margin-bottom: 30rpx;
			}
			li{
				margin-bottom: 20rpx;
				display: flex;
				view{
					img{
						width: 40rpx;
						height: 40rpx;
						margin-right: 10rpx;
					}
					h4{
						color: #333;
						margin-bottom: 10rpx;
					}
					view{
						color: #666;
					}
				}
			}
		
		}
		.signBtnContent{
			margin-top: 30rpx;
			display: flex;
			justify-content: space-around;
			width: 100%;
			.consultBtn{
				display:flex;
				justify-content: center;
				align-items: center;
				background-color: #EAEFFF;
				color: #3671F4;
				border-radius: 80rpx;
				width: 40%;
				height: 90rpx;
			}
			.signBtn{
				display:flex;
				justify-content: center;
				align-items: center;
				background-color: #3671F4;
				color: #fff;
				border-radius: 80rpx;
				width: 40%;
				height: 90rpx;
			}
		}
	}
</style>
