<%@ 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" %>
<%@ taglib uri="/WEB-INF/tld/fns.tld" prefix="fns" %>
<c:forEach items="${listVo }" var="list">
	<div class="filter clearfix">
		<div class="filter-text fl">
			<h2 style="margin: 0">${list.product_name}</h2>
			<h3 class="intro_some_h3">
					${list.intro}
			</h3>
			<p>保障期限: <span>1年</span></p>
			<ul class="insurance-money clearfix">
				<li>
					<span >保险责任</span>
				</li>
				<li>
					<span >保险金额</span>
				</li>
				<c:forEach items="${list.responsibilityVoList }" var="irp">
					<li>
						<span <c:if test="${irp.name eq '烈士褒扬金'}">style="color: red"</c:if>>${irp.name}</span>
					</li>
					<li>
						<span <c:if test="${irp.name eq '烈士褒扬金'}">style="color: red"</c:if>>
							<c:choose>
								<c:when test="${empty irp.insurance_amount_max && not empty irp.fcy}">
									<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>
								</c:when>
								<c:when test="${empty irp.fcy && not empty irp.insurance_amount_max}">
									<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>
								</c:when>
								<c:when test="${fn:contains(list.product_code, 'GZX-HT')}">
									500 - 3500 万元
								</c:when>
								<c:otherwise>
									-
								</c:otherwise>
							</c:choose>
						</span>
					</li>
				</c:forEach>
			</ul>
			<div class="the-label">
				<ul class="clearfix">
					<c:if test="${fn:contains(list.product_label,',')}">
						<c:forEach items="${fn:split(list.product_label,',')}" var="lables">
							<li>${lables}</li>
						</c:forEach>
					</c:if>
					<c:if test="${fn:contains(list.product_label,' ')}">
						<c:forEach items="${fn:split(list.product_label,' ')}" var="lables">
							<li>${lables}</li>
						</c:forEach>
					</c:if>
				</ul>
			</div>
			<div class="filter-logo"><c:if test="${not empty list.min_insurance_draw && fn:contains(list.min_insurance_draw, '?') }"><img src="${list.min_insurance_draw}" width="100%"></c:if></div>
		</div>
		<div class="filter-price fr">
			<div class="price">
				<c:if test="${not empty list.premium_min ? list.premium_min != '0.00' : false}">
					<p>
						<c:if test="${!fn:contains(list.product_code, 'TYX')}">
							<c:if test="${!fn:contains(list.product_code, 'GZX')&&!fn:contains(list.product_code, 'GZZRX')}">
								<c:if test="${!fn:contains(list.product_code, 'GCTB')&&!fn:contains(list.product_code, 'SSBQ')}">
									<c:if test="${empty list.premium_min || list.premium_min eq '0'}">
										<span>-</span>
									</c:if>
									<c:if test="${not empty list.premium_min && list.premium_min != '0'}">
										<i>￥</i><span>${list.premium_min}</span>
									</c:if>
								</c:if>
								<c:if test="${fn:contains(list.product_code, 'GCTB')||fn:contains(list.product_code, 'SSBQ')}">
									<c:if test="${empty list.premium_min || list.premium_min eq '0'}">
										<span>-</span>
									</c:if>
									<c:if test="${not empty list.premium_min && list.premium_min != '0'}">
										<i>￥</i><span>${list.premium_min}起</span>
									</c:if>
								</c:if>

							</c:if>
							<c:if test="${fn:contains(list.product_code, 'GZX')||fn:contains(list.product_code, 'GZZRX')}">
								<c:if test="${empty list.premium_min || list.premium_min eq '0'}">
									<span>-</span>
								</c:if>
								<c:if test="${not empty list.premium_min && list.premium_min != '0'}">
									<i>￥</i><span>${list.premium_min}起</span>
								</c:if>
							</c:if>
						</c:if>
						<c:if test="${fn:contains(list.product_code, 'TYX')}">
							<c:if test="${empty list.premium_min || list.premium_min eq '0'}">
								<span>-</span>
							</c:if>
							<c:if test="${not empty list.premium_min && list.premium_min != '0'}">
								<i>￥</i><span>${list.premium_min}${fn:contains(list.product_code, 'TYX-RB') ? '起':''}</span>
							</c:if>
						</c:if>
					</p>
				</c:if>
			</div>
			<div class="filter-details">
				<a href="${list.headurl }/insurance/product/productInfo/${list.oid }?ACCESS_TOKEN=${ACCESS_TOKEN}">查看详情</a>

			</div>
			<div class="filter-share">
				<a href="javascript:;" class="right-share copyPathToShare" data-clipboard-text="${fns:getShareUrl(list.oid,userdetail.business_support_id)}">立即分享</a>
			</div>
			<c:if test="${list.do_hot eq '1'}"><%--1代表热门--%>
				<div class="filter-hot">
					<p>热门</p>
				</div>
			</c:if>
		</div>
	</div>
</c:forEach>
<script>
    $('.intro_some_h3').each(function(){
        $(this).html('· '+$(this).html().replace(/<.*?>/ig,'').replace(/&nbsp;/ig,''));
    });
</script>