<%@ page language="java" contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<link type="text/css" rel="stylesheet" href="<c:url value='/resources/version_new/css/public.css' />" />
	<link type="text/css" rel="stylesheet" href="<c:url value='/resources/version_new/css/idangerous.swiper2.7.6.css' />" />
	<link type="text/css" rel="stylesheet" href="<c:url value='/resources/version_new/css/basic.css' />" />
	<title>${productDto.product_name}</title>
	<style>
		.aProject {
			width: 92px;
			height: 32px;
			font-size: 14px;
			line-height: 32px;
			text-align: center;
			background: -moz-linear-gradient(to right, #ff8b00, #ff6600);
			background: -webkit-linear-gradient(to right, #ff8b00, #ff6600);
			background: linear-gradient(to right, #ff8b00, #ff6600);
			color: #fff;
		}
		.aProject:hover{
			opacity: .8;
			cursor: pointer;
		}
	</style>
</head>

<body>
<jsp:include page="../../../index/multi_h.jsp"/>
<!--产品详情页内容-->
<div class="product-particulars sqe">
	<div class="partic-place">
		<p id="bread_crumbs">
		</p>
		<ul class="clearfix" id="nav">
			<li class="current">
				<a href="#section-1">产品详情</a>
			</li>
			<li>
				<a href="#section-2">投保须知</a>
			</li>
			<li>
				<a href="#section-3">典型案例</a>
			</li>
			<li>
				<a href="#section-4">保险条款</a>
			</li>
			<li>
				<a href="#section-5">理赔流程</a>
			</li>
			<li>
				<a href="#section-6">常见问题</a>
			</li>
		</ul>
	</div>
	<div class="partic-content clearfix">
		<div class="partic-left fl">
			<div class="sed insur-content" id="section-1">
				<!--<div class="insur-logo">-->
				<!--<img src="<c:url value='/resources/version_new/images/taikang-green.png' />">-->
				<!--</div>-->
				<div class="insur-head clearfix">
					<p class="fl">${productDto.product_name}</p>
					<div class="insur-share fr">
                        <span class="fl">
                            <i>￥</i>
                            <em>${productDto.premium_min }起</em>
                        </span>
						<c:if test="${empty userdetail.web_type || fn:contains(userdetail.web_type, 'BLB')}">
							<a href="javascript:;" class="share-more fl copyPathToShare">立即分享</a>
						</c:if>
						<c:if test="${productDto.p_status eq '0'}">
							<a href="javascript:;" onclick="layer.alert('该产品目前已下架，请选择其它产品！', {skin: 'layui-layer-lan',closeBtn: 0,anim: 4});" class="insur-buy fl insur-buy-gray">立即购买</a>
						</c:if>
						<c:if test="${productDto.p_status eq '1'}">
                        	<a href="<c:url value='/insurance/gzzrx/policy/policyInit/${productDto.oid }?recommendCode=${recommendCode}&ACCESS_TOKEN=${ACCESS_TOKEN}' />" class="insur-buy fl">立即购买</a>
						</c:if>
					</div>
				</div>
				<input type="hidden" id="fe_text" value=""/>
				<ul class="insur-label clearfix">
					<c:if test="${fn:contains(productDto.product_label,',')}">
						<c:forEach items="${fn:split(productDto.product_label,',')}" var="lables">
							<li>${lables}</li>
						</c:forEach>
					</c:if>
					<c:if test="${fn:contains(productDto.product_label,' ')}">
						<c:forEach items="${fn:split(productDto.product_label,' ')}" var="lables">
							<li>${lables}</li>
						</c:forEach>
					</c:if>
				</ul>
				<p class="insur-p" id="insur-p-p">
				</p>
				<table cellspacing="0" cellpadding="0" class="wed">
					<tbody>
					<tr>
						<td>
							<span>保险公司</span>
						</td>
						<td>
							<span class="grey">${productDto.insurance_name}</span>
						</td>
						<td>
							<span>保险金额</span>
						</td>
						<td>
							<span class="grey">${productDto.dl_coverage}</span>
						</td>
					</tr>
					<tr>
						<td>
							<span>适用范围</span>
						</td>
						<td>
							<span class="grey">${productDto.scope}</span>
						</td>
						<td>
							<span>限购份数</span>
						</td>
						<td>
							<span class="grey">1份</span>
						</td>
					</tr>
					<tr>
						<td>
							<span>保单形式</span>
						</td>
						<td>
							<span class="grey">${productDto.from_of_policy}</span>
						</td>
						<td>
							<span>缴费期间</span>
						</td>
						<td>
							<span class="grey">${productDto.payment_way eq '1' ? '一次性' : productDto.payment_way eq '2' ? '分期' : productDto.payment_way eq '1,2' ? '一次性或分期' : '-'}</span>
						</td>
					</tr>
					<tr>
						<td>
							<span>保障期限</span>
						</td>
						<td>
							<span class="grey">${productDto.dl_rep_time}</span>
						</td>
						<td>
							<span>保费</span>
						</td>
						<td>
							<span class="grey">${productDto.dl_priem}</span>
						</td>
					</tr>
					<tr>
						<td>
							<span>承保年龄</span>
						</td>
						<td>
							<span class="grey">16-65周岁</span>
						</td>
						<td>
							<span>承保职业</span>
						</td>
						<td>
							<span class="grey">保安服务业</span>
						</td>
					</tr>
					</tbody>
				</table>
				<div class="insur-plan clearfix">
                    <span class="fl plan">
                        保险计划
                    </span>
					<ul class="clearfix fl" id="bx_jh">
					</ul>
				</div>
				<%--<div class="security-content">
					<p class="clearfix">
						<i class="fl"></i>
						<span class="fl">保费测算</span>
					</p>
					<div class="insur-plan clearfix" style="padding-left: 60px; margin-top: 10px">
						<span class="fl plan">
							标准方案
						</span>
						<div class="clearfix fl" style="margin-top: 5px;margin-left: 40px;font-size: 14px;" id="planInfo">
							雇主责任+24小时扩展责任+烈士褒扬金
						</div>
					</div>
					<div class="insur-plan clearfix" style="padding-left: 65px; margin-top: 10px">
						<span class="fl plan">
							&nbsp;&nbsp;附加险
						</span>
						<div class="clearfix checkbox fl" style="margin-top: 5px;margin-left: 40px;font-size: 14px;" id="checkboxSet">
							<label>
								<input type="checkbox" id="sz" style="-webkit-appearance:checkbox;">
								保安员第三者责任
							</label>
						</div>
					</div>
					<div class="insur-plan clearfix" style="padding-left: 60px; margin-top: 10px">
						<span class="fl plan">
							购买人数
						</span>
						<div class="clearfix fl" style="margin-left: 40px;">
							<input type="number" id="rs" class="form-control" style="width: 150px;height: 30px" placeholder="不低于3人">
						</div>
					</div>
					<div class="insur-plan clearfix" style="padding-left: 62px; margin-top: 10px">
						<span class="fl plan">
							&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						</span>
						<div class="clearfix fl aProject" style="margin-top: 5px;margin-left: 40px;" onclick="bfcs();">
							测算
						</div>
					</div>
					<div class="insur-plan clearfix" style="padding-left: 65px;margin-top: 20px">
						<span class="fl plan">
							&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;保费
						</span>
						<div class="clearfix fl" style="margin-left: 40px;">
							<strong style="font-size: 20px" id="zbf">￥${productDto.premium_min }</strong>
						</div>
					</div>
				</div>--%>
				<div class="security-content">
					<p class="clearfix">
						<i class="fl"></i>
						<span class="fl">保障内容</span>
					</p>
					<table cellspacing="0" cellpadding="0">
						<thead>
						<tr>
							<th>
								<span>保障责任</span>
							</th>
							<th width="320">
								<span>保障说明</span>
							</th>
							<th>
								<c:set var="irp_1" value="${ productDto.responsibilityVoList[0] }"></c:set>
								<c:choose>
									<c:when test="${empty irp_1.insurance_amount_max && not empty irp_1.fcy}">
										<span>保险金额</span>
									</c:when>
									<c:when test="${empty irp_1.fcy && not empty irp_1.insurance_amount_max}">
										<span>赔偿限额</span>
									</c:when>
									<c:otherwise>
										<span>保险金额</span>
									</c:otherwise>
								</c:choose>
							</th>
							<th>
								<span>免赔额</span>
							</th>
							<th>
								<span>赔付比例</span>
							</th>
							<th>
								<span>免赔天数</span>
							</th>
						</tr>
						</thead>
						<tbody>
						<c:forEach items="${ productDto.responsibilityVoList }" var="irp">
							<tr class="bg-3f">
								<td class="ert">${irp.name}</td>
								<td class="text">
									<span>${irp.explain_product}</span>
								</td>
								<td>
									<c:choose>
										<c:when test="${empty irp.insurance_amount_max && not empty irp.fcy}">
											<span>
												<c:if test="${ empty irp.fcy}">
													-
												</c:if>
												<c:if test="${empty irp.compensation_days && not empty irp.fcy}">
													<c:if test="${irp.fcy/10000 >= 1}">
														${(fn:split((irp.fcy/10000),'.')[1] eq '0' || fn:split((irp.fcy/10000),'.')[1] eq '00') ? fn:split((irp.fcy/10000),'.')[0] : (irp.fcy/10000)}
														万元
													</c:if>
													<c:if test="${irp.fcy/10000 < 1}">
														${(fn:split(irp.fcy,'.')[1] eq '0' || fn:split(irp.fcy,'.')[1] eq '00') ? fn:split(irp.fcy,'.')[0] : irp.fcy}
														元
													</c:if>
												</c:if>
												<c:if test="${not empty irp.compensation_days && not empty irp.fcy}">
													<c:if test="${irp.fcy/10000 >= 1}">
														${(fn:split((irp.fcy/10000),'.')[1] eq '0' || fn:split((irp.fcy/10000),'.')[1] eq '00') ? fn:split((irp.fcy/10000),'.')[0] : (irp.fcy/10000)}
														万元/天
													</c:if>
													<c:if test="${irp.fcy/10000 < 1}">
														${(fn:split(irp.fcy,'.')[1] eq '0' || fn:split(irp.fcy,'.')[1] eq '00') ? fn:split(irp.fcy,'.')[0] : irp.fcy}
														元/天
													</c:if>
												</c:if>
											</span>
										</c:when>
										<c:when test="${empty irp.fcy && not empty irp.insurance_amount_max}">
											<span>
												<c:if test="${ empty irp.insurance_amount_max}">
													-
												</c:if>
												<c:if test="${empty irp.compensation_days && not empty irp.insurance_amount_max}">
													<c:if test="${irp.insurance_amount_max/10000 >= 1}">
														${(fn:split((irp.insurance_amount_max/10000),'.')[1] eq '0' || fn:split((irp.insurance_amount_max/10000),'.')[1] eq '00') ? fn:split((irp.insurance_amount_max/10000),'.')[0] : (irp.insurance_amount_max/10000)}
														万元
													</c:if>
													<c:if test="${irp.insurance_amount_max/10000 < 1}">
														${(fn:split(irp.insurance_amount_max,'.')[1] eq '0' || fn:split(irp.insurance_amount_max,'.')[1] eq '00') ? fn:split(irp.insurance_amount_max,'.')[0] : irp.insurance_amount_max}
														元
													</c:if>
												</c:if>
												<c:if test="${not empty irp.compensation_days && not empty irp.insurance_amount_max}">
													<c:if test="${irp.insurance_amount_max/10000 >= 1}">
														${(fn:split((irp.insurance_amount_max/10000),'.')[1] eq '0' || fn:split((irp.insurance_amount_max/10000),'.')[1] eq '00') ? fn:split((irp.insurance_amount_max/10000),'.')[0] : (irp.insurance_amount_max/10000)}
														万元/天
													</c:if>
													<c:if test="${irp.insurance_amount_max/10000 < 1}">
														${(fn:split(irp.insurance_amount_max,'.')[1] eq '0' || fn:split(irp.insurance_amount_max,'.')[1] eq '00') ? fn:split(irp.insurance_amount_max,'.')[0] : irp.insurance_amount_max}
														元/天
													</c:if>
												</c:if>
											</span>
										</c:when>
										<c:otherwise>
											<span>-</span>
										</c:otherwise>
									</c:choose>
								</td>
								<td>
									<span>${empty irp.cumulative_deductibles ? (empty irp.deductible_per_accident ? '-' : irp.deductible_per_accident) : irp.cumulative_deductibles}</span>
								</td>
								<td>
									<span>${empty irp.compensation_ratio ? '-' : irp.compensation_ratio}${not empty irp.compensation_ratio ? '%' : ''}</span>
								</td>
								<td>
									<span>${empty irp.deductible_days ? '-' : irp.deductible_days}</span>
								</td>
							</tr>
						</c:forEach>
						</tbody>
					</table>
				</div>
			</div>
			<div class="sed insur-informa" id="section-2">
				<h2 class="clearfix">
					<i class="fl"></i>
					<span class="fl">投保须知</span>
				</h2>
				<p id="section-p-2">
					<c:if test="${fn:contains(productDto.notice_mod,'<p>')}">
						${fn:replace(fn:replace(fn:replace(fn:replace(fn:replace(productDto.notice_mod, '<br>', ''), '<br/>', ''), '<p></p>', ''), '<p>', ''), '</p>', '<br/>')}
					</c:if>
					<c:if test="${fn:contains(productDto.notice_mod,'<div>')}">
						${fn:replace(fn:replace(fn:replace(fn:replace(fn:replace(productDto.notice_mod, '<br>', ''), '<br/>', ''), '<div></div>', ''), '<div>', ''), '</div>', '<br/>')}
					</c:if>
				</p>
			</div>
			<div class="sed insur-case" id="section-3">
				<h2 class="clearfix">
					<i class="fl"></i>
					<span class="fl">典型案例</span>
				</h2>
				${productDto.sample_mod}
			</div>
			<div class="sed insur-clause" id="section-4">
				<h2 class="clearfix">
					<i class="fl"></i>
					<span class="fl">保险条款</span>
				</h2>
				<ul>
					<h2 style="font-size: 14px">特别提醒：保险责任请参考以下条款，并敬请特别留意条款中的<span style="color: red ;font-size: 14px" >"责任免除"</span>部分。</h2>
					<c:if test="${not empty productDto.pro_clauses}">
						<c:forEach items="${fn:split(productDto.pro_clauses, '#')}" var="pcs">
							<li>
								<a target="_blank" href="<c:url value='/weixin/product/clause/${fn:split(pcs, "::")[0]}' />">${fn:split(pcs, "::")[1]}</a>
								<div class="clause-cic"></div>
							</li>
						</c:forEach>
					</c:if>
				</ul>
			</div>
			<div class="sed claims-process" id="section-5">
				<h2 class="clearfix">
					<i class="fl"></i>
					<span class="fl">理赔流程</span>
				</h2>
				<div class="claims-content">
					<div class="content-img">
						<img src="<c:url value='/resources/version_new/images/claims.png'/>" alt="理赔流程图">
					</div>
					<ul class="clearfix">
						<li>
							<p>拨打报案电话</p>
							<span>根据保单信息拨打相应保险公司报案电话或拨打平台报案电话400-662-9696或根据平台要求在线填写信息</span>
						</li>
						<li class="wer">
							<p>准备材料</p>
							<span>根据服务人员告知的资料清单准备理赔资料</span>
						</li>
						<li class="wed">
							<p>理赔办理</p>
							<span>提交理赔资料</span>
						</li>
						<li>
							<p>审核</p>
							<span>保险公司审核理赔材料</span>
						</li>
						<li class="jie">
							<p>结案</p>
							<span>确属保险责任范围的事故，保险公司将在约定时效内赔付</span>
						</li>
					</ul>
				</div>
			</div>
			<div class="sed common-problems" id="section-6">
				<h2 class="clearfix">
					<i class="fl"></i>
					<span class="fl">常见问题</span>
				</h2>
				<ul id="section-6-p">
					${productDto.faq_mod}
				</ul>
			</div>

		</div>
		<div class="partic-right fr">
			<jsp:include page="../../../index/multi_ins_intro.jsp"/>
			<jsp:include page="../../../index/multi_hot_product_iframe.jsp"/>
		</div>
	</div>
</div>

<!--滚动轴滚动一定距离后出现固定导航栏-->
<div class="product-wed">
	<div class="wed-content">
		<ul class="clearfix" id="nav-more">
			<li class="current">
				<a href="#section-1">产品详情</a>
			</li>
			<li>
				<a href="#section-2">投保须知</a>
			</li>
			<li>
				<a href="#section-3">典型案例</a>
			</li>
			<li>
				<a href="#section-4">保险条款</a>
			</li>
			<li>
				<a href="#section-5">理赔流程</a>
			</li>
			<li>
				<a href="#section-6">常见问题</a>
			</li>
		</ul>
		<div class="share-buy fr">
            <span class="fl">
                 <i>保费</i>
                 <b>￥</b>
                 <em>${productDto.premium_min }起</em>
            </span>
			<c:if test="${empty userdetail.web_type || fn:contains(userdetail.web_type, 'BLB')}">
				<a href="javascript:;" class="share-more fl copyPathToShare">立即分享</a>
			</c:if>
			<c:if test="${productDto.p_status eq '0'}">
				<a href="javascript:;" onclick="layer.alert('该产品目前已下架，请选择其它产品！', {skin: 'layui-layer-lan',closeBtn: 0,anim: 4});" class="insur-buy fl insur-buy-gray">立即购买</a>
			</c:if>
			<c:if test="${productDto.p_status eq '1'}">
				<a href="<c:url value='/insurance/gzzrx/policy/policyInit/${productDto.oid }?recommendCode=${recommendCode}&ACCESS_TOKEN=${ACCESS_TOKEN}' />" class="insur-buy fl">立即购买</a>
			</c:if>
		</div>
	</div>
</div>

<!--产品链接复制弹出框-->
<div class="link-share">
	<h2 class="clearfix">提示
		<span id="link-close">
            <img src="<c:url value='/resources/version_new/images/link-close.png' />">
        </span>
	</h2>
	<div class="link-success">
		<p>
			<img src="<c:url value='/resources/version_new/images/link-success.png' />">
			<span>产品链接已复制！您可以将它分享给其他人。</span>
		</p>
		<a href="javascript:;" onclick="$(this).parent().parent().hide();$('.link-mask').hide();" class="link-zhi">我知道了</a>
	</div>
</div>

<!--弹出框透明蒙板-->
<div class="link-mask"></div>
<jsp:include page="../../../index/multi_f.jsp" />
<%--<script type="text/javascript" src="<c:url value='/resources/version_new/js/jquery-1.8.3.min.js' />"></script>--%>
<script type="text/javascript" src="<c:url value='/resources/version_new/js/login.js' />"></script>
<script type="text/javascript" src="<c:url value='/resources/version_new/js/jquery.nav.js' />"></script>
<script type="text/javascript" src="<c:url value='/resources/version_new/js/clipboard.min.js' />"></script>
<script type="text/javascript" src="<c:url value='/resources/commonJS/con-common.js' />"></script>
<script>
    var baseUrl = '${pageContext.request.contextPath }';
    $(function(){
        //        滚动固定导航栏
        $('#nav').onePageNav();
        $('#nav-more').onePageNav();
        $(window).scroll(function () {
            if ($(window).scrollTop() >= 350) {
                $('.product-wed').fadeIn();
            } else {
                $('.product-wed').fadeOut();
            }
        });

        $(window).onload = function () {
            if ($(window).scrollTop() >= 350) {
                $('.product-wed').fadeIn();
            } else {
                $('.product-wed').fadeOut();
            }
        }

        $('ul#nav li a').click(function () {
            var s_index = $(this).parent().index();
            $('ul#nav-more li').eq(s_index).children('a').click();
        });

        //计划的切换
        $('.insur-plan ul li').click(function () {
            $('.insur-plan ul li').removeClass('on');
            $(this).addClass('on');
        });

        //点击复制链接
        var s_url = '${sharePath }';
        var _rm_val = s_url.split('=')[1];
        if(_rm_val == ''){
            $('a.share-more').on('click',function(){
                if($('.link-success a').length==1){
                    $('.link-success p').html("<span>您当前未登录，分享产品无法关联您的推广信息！</span>");
                    $('.link-zhi').attr("href","/insurance/product/toLogin/${product_id}");
                    $('.link-zhi').html("去登录");
                    $('.link-zhi').attr('style','float: left;margin-left: 80px;');
                    $('.link-zhi').attr('class','');
                    $('.link-success a').after('<a class="link-s" style="float: right;margin-right: 80px;">继续分享</a>');
                    var clipboard_v = new Clipboard('.link-s', {
                        text: function() {
                            return s_url;
                        }
                    });
                    clipboard_v.on('success', function(e) {
                        $('.link-success').html('<p><img src="/resources/version_new/images/link-success.png"><span>产品链接已复制！您可以将它分享给其他人。</span></p><a href="javascript:;" class="link-zhi">我知道了</a>');
                        $('.link-zhi').click(function () {
                            $('.link-share').hide();
                            $('.link-mask').hide();
                        });
                    });
                }
                $('.link-share').show();
                $('.link-mask').show();
            });
        }else{
            var clipboard = new Clipboard('.copyPathToShare', {
                text: function () {
                    return s_url;
                }
            });

            clipboard.on('success', function (e) {
                $('.link-share').show();
                $('.link-mask').show();
            });
            $('.link-zhi').click(function () {
                $('.link-share').hide();
                $('.link-mask').hide();
            });
        }

        $('#link-close').click(function () {
            $('.link-share').hide();
            $('.link-mask').hide();
        });

        $("#insur-p-p").html('· '+'${productDto.intro}'.replace(/<.*?>/ig,''));
        $("#section-3").find("p").each(function(){
            $(this).html($(this).html().replace(/<.*?>/ig,''));
            $(this).attr("class","case-one");
        });
        $("#section-6-p").html(function(){
            var c=1;
            var lis = '';
            $("#section-6-p").find("p").each(function(){
                var htl = $(this).html().replace(/<.*?>/ig,'');
                if(htl != '' && htl != '&nbsp;' && htl != ' '){
                    if(c % 2 == 1){
                        lis = lis + '<li><h3>'+htl+'</h3>';
                    }else{
                        lis = lis + '<p>'+htl+'</p></li>';
                    }
                    c++;
                }
            });
            return lis;
        });
        //配套js(/resources/commonJS/con-common.js)1.表单参数，2.请求地址，3.是否同步，4.是否遮盖，5.返回处理
        setParamDatas('',baseUrl+'/synopsis/product/productListByCode/GZZRX-QH',true,false,function(data){
            var _hs = '';
            $.each(data, function(i, obj){
                if(obj.product_code != ''&&obj.product_code!=null&&obj.product_code!=undefined){
                    if(obj.product_code.indexOf('GZZRX-QH')!=-1){
                        var sg = obj.product_code.split('-')[obj.product_code.split('-').length-1];
                        var _u = baseUrl + "/insurance/product/productInfo/" + obj.oid+"?ACCESS_TOKEN=${ACCESS_TOKEN}";
                        var _liC;
                        if('${productDto.oid}' == obj.oid){
                            _liC = "class='on'";
                        }else{
                            _liC = "onclick='javascript:location.href=\""+_u+"\";'";
                        }
                        _hs = _hs + "<li "+_liC+"><span>"+ getName(sg) +"</span><div class='plan-gou'></div></li>";
                    }
                }
            });
            if(_hs != ''){
                $("#bx_jh").html(_hs);
            }
        });
    });
    function getName(_num){
        return _num == '1' ? '计划一' : _num == '2' ? '计划二' : _num == '3' ? '计划三' : _num == '4' ? '计划四' : _num == '5' ? '计划五' : _num == '6' ? '计划六' : _num == '7' ? '计划七' : _num == '8' ? '计划八' : _num == '9' ? '计划九' : '';
    }
    function bfcs(){
        var rs = $('#rs').val();
        var reg = /^[1-9]\d*$/;
        if(rs == ''||!reg.test(rs)||rs.length>4||Number(rs)<3){
            window.parent.layer.msg("请正确输入购买人数，限制3~10000人");
            return;
		}
        var isChecked = $('#sz').is(":checked");
        var product_code = '${productDto.product_code}';
        var is_contain_repo = isChecked?'1':'0';
        var person_num = $('#rs').val();
        var premium = '${productDto.premium_min}';
        if(product_code != ''&&is_contain_repo != ''&&person_num != ''&&premium != ''){
            $.ajax({
                type: 'POST',
                url:baseUrl + '/insurance/gzzrx/policy/computational-costs',
                data:{
                    'product_code':product_code,
                    'is_contain_repo':is_contain_repo,
                    'person_num':person_num,
                    'premium':premium
                },
                dataType:"json",
                success: function(json){
                    if(json.statusCode == '200') {
                        var arr = json.message.split('#');
                        $('#zbf').html('￥'+arr[0]);
                    }
                }
            });
        }
    }

</script>
</body>
</html>
