<%@ 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="wap-font-scale" content="no">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no">
    <title>多问</title>    
	<script src="${contextPath}/static/js/flexible.min.js"></script>
	<link rel="stylesheet" type="text/css" href="${contextPath}/static/weixin/cd/css/swiper-3.3.1.min.css">
	<link rel="stylesheet" type="text/css" href="${contextPath}/static/weixin/cd/css/sprite.css">
	<link rel="stylesheet" type="text/css" href="${contextPath}/static/weixin/cd/css/common.css">
	<link rel="stylesheet" type="text/css" href="${contextPath}/static/weixin/cd/css/main.css">
</head>
<body>
	<div class="page">
		<header class="top bg-blue text-center fc-white fs-16">
			服务
		</header>
		<div class="swiper-container" id="index-swiper">
			<div class="swiper-wrapper">				
	            <!-- <div class="swiper-slide"><img src="/duowenapp_b/static/weixin/cd/images/banner01.png"></div>
	            <div class="swiper-slide"><img src="/duowenapp_b/static/weixin/cd/images/banner02.png"></div> -->
			</div>
			<div class="swiper-pagination"></div>
		</div>
		<ul class="list-bottom pos-relate br-bottom1 service-list">
	    	<li class="pad-lr-25 pos-relate br-bottom1 bg-white">
	    		<a href="#" class="ub ub-ac ub-pj" id="ssdb">
	    			<div class="ub ub-ac">
	    				<span class="icon icon-icon1"></span>
	    				<div class="mar-l-20">
	    					<p class="mar-b-5">保函在线</p>
	    					<p class="fs-12 fc-xxxlgrey" id="dbMsg"></p>
	    				</div>
	    			</div>
	    			<div class="ub ub-ac">
	    				<!-- <span class="mar-r-5 pad-lr-5 fs-10 br-radius5 new-state">新状态</span> -->
	    				<span class="icon icon-turn-right"></span>
	    			</div>
	    		</a>
	    	</li>
	    	<li class="pad-lr-25 pos-relate br-bottom1 bg-white">
	    		<a href="#" class="ub ub-ac ub-pj"  id="cd">
	    			<div class="ub ub-ac">
	    				<span class="icon icon-icon2"></span>
	    				<div class="mar-l-20">
	    					<p class="mar-b-5">异地查档</p>
	    					<p class="fs-12 fc-xxxlgrey" id="cdMsg"></p>
	    				</div>
	    			</div>
	    			 <div class="ub ub-ac">
	    				<!--<span class="mar-r-5 pad-lr-5 fs-10 br-radius5 new-state">新状态</span>-->
	    				<span class="icon icon-turn-right"></span>
	    			</div> 
	    		</a>
	    	</li>
	    	<li class="pad-lr-25 pos-relate br-bottom1 bg-white hide">
	    		<a href="#" class="ub ub-ac ub-pj">
	    			<div class="ub ub-ac">
	    				<span class="icon icon-icon3"></span>
	    				<div class="mar-l-20">
	    					<p class="mar-b-5">诉讼融资</p>
	    					<p class="fs-12 fc-xxxlgrey">律师专属的风险投资</p>
	    				</div>
	    			</div>
	    			<div>
	    				<span class="icon icon-turn-right"></span>
	    			</div>
	    		</a>
	    	</li>
	    </ul>
	</div>
	<script type="text/javascript" src="${contextPath}/static/js/jquery-1.12.0.min.js"></script>
	<script type="text/javascript" src="${contextPath}/static/weixin/cd/js/main.js"></script>
	<script type="text/javascript" src="${contextPath}/static/weixin/cd/js/swiper-3.3.1.jquery.min.js"></script>
	<script type="text/javascript" src="${contextPath}/static/weixin/cd/js/util.js"></script>
	<script type="text/javascript">
	var baseUrl = '<%=com.fadu.app.util.AppConfig.url_duowenapp_b%>';
	$(document).ready(function() {
		postData(baseUrl + '/B/android', JSON.stringify({actionCode:'B018'}), b018Succ, postDataDefaultErrorCallback);
		$("#ssdb").attr("href", baseUrl + "/web/ssdb/toSearch");
		$("#cd").attr("href", baseUrl + "/web/cd/toSearch");
	});	
	function b018Succ(data){
		if(data && data.success){
			//console.log(data);
			var html = "";
			for(var i=0; i<data.parameter.length; i++){
				if(data.parameter[i].type && data.parameter[i].type=='1'){
					html += '<div class="swiper-slide"><img src="'+data.parameter[i].url+'" style="width:100%;"></div>';					
				}else if(data.parameter[i].type && data.parameter[i].type=='3'){
					$("#dbMsg").html(data.parameter[i].text);
				}else if(data.parameter[i].type && data.parameter[i].type=='4'){
					$("#cdMsg").html(data.parameter[i].text);
				}
			}
			$(".swiper-wrapper").html(html);				
			if($('#index-swiper').get(0)){
				var indexSwiper = new Swiper ('#index-swiper', {
				    loop: true,
				    autoplay: true,
				    autoplay: 5000,
				    pagination : '.swiper-pagination'
				});      
			}				
		}else {
			showMsg("网络异常！");
		}
	}
	</script>
</body>
</html>