<%@ page language="java" pageEncoding="utf-8"%>
<%@ page language="java" import="com.fadu.web.util.Constant" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<% 
	String token = (String)session.getAttribute(Constant.Session.TOKEN) ;
	String openid = (String)session.getAttribute(Constant.Session.DWLSD_OPENID);
%>
<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/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 ub ub-pj">
			<a id="aback" href="javascript:history.back(-1);" class="pad-l-30 pad-r-20">
				<span class="icon icon-back"></span>
			</a>
			<span>异地查档</span>
			<span class="pad-r-30 cancel-order">取消</span>
		</header>
		<div class="pad-lr-25 ub bg-blue fs-12 service-progress">
			<div class="ub-f1 service-progress-item">
				<div class="bg-white service-progress-bar"></div>
				<div class="bg-white fc-white fs-12 text-center service-progress-dotted"></div>
				<p class="fc-white">律师申请</p>
			</div>
			<div class="ub-f1 service-progress-item active">
				<div class="bg-white service-progress-bar"></div>
				<div class="bg-white fc-white fs-12 text-center service-progress-dotted"></div>
				<p class="fc-white">平台确认</p>
			</div>
			<div class="ub-f1 service-progress-item">
				<div class="bg-white service-progress-bar"></div>
				<div class="bg-white fc-white fs-12 text-center service-progress-dotted"></div>
				<p class="fc-white">律师付款</p>
			</div>
			<div class="ub-f1 service-progress-item">
				<div class="bg-white service-progress-bar"></div>
				<div class="bg-white fc-white fs-12 text-center service-progress-dotted"></div>
				<p class="fc-white">进行查档</p>
			</div>
		</div>
		<a href="#" class="mar-b-25 pad-r-20 bg-white ub ub-ac ub-pj search-top" >
			<span class="mar-l-15 br br-orange br-radius5 text-center fc-orange search-state">待确认</span>
			<p class="mar-l-15 pad-lr-5 fs-12 fc-grey ub-f1 text-overflow">平台确认中</p>
			<div class="pad-l-5">
				<span class="mar-r-5 fc-xxxlgrey">订单详情</span>
				<span class="icon icon-top icon-turn-right"></span>
			</div>
		</a>
		<div class="mask-page cancel-page hide">
			<div class="br-radius10 bg-white mask-box-center mask-confirm">
				<div class="text-center pos-relate br-bottom1 ub ub-ac ub-pc mask-confirm-content">
					<div>
						<div class="mar-b-10 fc-black fs-16 bold">提示</div>
						<div class="fc-black">是否确定取消服务？</div>
					</div>
				</div>
				<div class="ub ub-ac fs-16 mask-confirm-btn">
					<a href="javascript:;" class="text-center fc-blue ub-f1 btn-cancel">取消</a>
					<a href="javascript:;" class="text-center fc-blue ub-f1 btn-yes" >确定</a>
				</div>
			</div>
		</div>
	</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/js/jstorage.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%>';
		var openid = '<%=openid==null?"":openid%>';
		var token = '<%=token==null?"":token%>';
		$(document).ready(function() {			
			$(".btn-yes").bind("click", function(){
				postData(baseUrl + '/B/android', JSON.stringify({actionCode:'B614',orderId:'${orderId}',token:token}), concelOrderSucc, postDataDefaultErrorCallback);
			});
			
			$(".search-top").bind('click',function(){
				window.location.href=baseUrl + "/web/cd/toOrderDetail?orderId=${orderId}&step=0";
			})
			if('${prePage==null?"":prePage}'!=''){
				$("#aback").attr('href', baseUrl + "/web/cd/toSearch");
			}
		});
		
		function concelOrderSucc(data){
			if(data){
				if(data.success){
					showMsg("订单成功取消！");
					$(".cancel-order").html(" ");
				}else{
					showMsg(data.message);
				}
			}else{
				showMsg("网络异常！");
			}
		}
	</script>
</body>
</html>