<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="contextPath" value="${pageContext.request.contextPath}"></c:set>

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>多问律师</title>
<meta name="description" content="">
<meta name="keywords" content="">
<link href="${contextPath}/static/weixin/ssdb/css/common.css" rel="stylesheet">
<link href="${contextPath}/static/weixin/ssdb/css/main.css" rel="stylesheet">
<script src="${contextPath}/static/js/flexible.min.js"></script>
</head>
<body class="bg-grey">
	<header class="pad-lr-20 bg-blue fc-white ub ub-ac">
		<span class="icon icon-placeholder"></span>
		<p class="ub-f1 fs-16 text-center">担保机构(${res.total})</p>
		<span class="header-back" onclick="goToHome('${contextPath}')">取消</span>
	</header>
	<section>
		<div class="pad-lr-20 br-b bg-white fs-14 fc-dgrey ub ub-pj ub-ac ub-pj guarantee-top" id="nrCompanySearchInfo">
			<p>担保金额: <span>${targetAmount}</span></p>
			<p>法院: <span>${courtName}</span></p>
		</div>
		<ul class="mar-tb-35 fs-14 bg-white guarantee-list" id="nrCompanyList">
			<c:forEach var="company" items="${res.infos}">
				<li class="pad-lr-20 br-b">
					<a href="#">${company.name}</a>
				</li>
			</c:forEach>
		</ul>
		<p class="mar-t-50 text-center fs-14 hide" id="noCompanys">尚未开通!</p>
	</section>
	
	<input type="hidden" id="fromCompanyList" value="${fromCompanyList}"/>
	<input type="hidden" id="nrCompanyCount" value="${res.total}"/>
		
	<script src="${contextPath}/static/js/jquery-1.12.0.min.js"></script>
    <script src="${contextPath}/static/weixin/ssdb/js/util.js"></script>
	<script type="text/javascript">
    	var baseUrl = '<%=com.fadu.app.util.AppConfig.url_duowenapp_b%>';
    	$(document).ready(function() {
    		clickStatistics(baseUrl,'Model_ssdb','Page_order_filter_wx',postDataDefaultErrorCallback);
    		if('0' == $('#fromCompanyList').val() && '0' == $('#nrCompanyCount').val()){
    			$('#nrCompanySearchInfo').addClass('hide');
    			$('#nrCompanyList').addClass('hide');
    			$('#noCompanys').removeClass('hide');
    		}
    	});
    </script>
</body>
</html>
