signResult.jsp 2.44 KB
<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>提示页面</title>
<link href="${ctx}/resource/css/common.css" rel="stylesheet" type="text/css" />
<link href="${ctx}/resource/css/detail.css" rel="stylesheet" type="text/css" />
<link href="${ctx}/resource/css/detail.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="${ctx }/resource/js/utils/jquery/jquery-1.11.3.min.js"></script>
<style type="text/css">
	.minheight{
		min-height: 250px;
		text-align: center;
		margin-top: 90px;
		font-size: 30px;
	}
	.title{
	    font-weight: 600;
    	font-size: 27px;
    	margin:0 0 20px 0;
	}
	.detail{
	    font-size: 20px;
    	padding: 10px 0;
	}
	.jump-btn{
		padding: 8px 25px;
		background: rgb(231, 36, 38);
		color:#fff;
		border: 0;
		border-radius: 5px;
		margin-top: 20px;
		font-size:16px;
	}
</style>
</head>
<body>
	<jsp:include page="${ctx }/view/common/header.jsp" />
	<!-- 成功页面 -->
	<c:if test="${resultCode=='0'}">
	   <div id="successPage" class="minheight ">
		<h2 class="title">${msg}</h2>
		
		<p class="detail">该页面   <span id="second">5</span> 秒后跳转到会员中心</p>
		<button class="jump-btn" onclick="javascript:window.location.href='/user/userCenter';  ">立即跳转</button>
	</div>
	</c:if>
	
	<!-- 失败页面 -->
	<c:if test="${resultCode=='1'}">
		<div id="failedPage" class="minheight ">
			<h2 class="title">${msg }</h2>
			
			<p class="detail">请您进入会员中心重新绑卡,否则您将无法正常进行资金操作。</p>
			<p class="detail">如有任何疑问请联系客服:400-969-0800</p>
			<button class="jump-btn" onclick="javascript:window.location.href='/user/userCenter';  ">立即绑卡</button>
		</div>
	</c:if>
	<jsp:include page="${ctx }/view/common/bottom.jsp" />
	
	   <script>
		$(function(){
			var showSuccess=${resultCode};
			var time=5;
			
			if(showSuccess=='0'){
				$("#failedPage").hide()
				setInterval(function(){
					if(time){
						time--;
						$("#second").html(time);
					}else{
						window.location.href="/user/userCenter"; 
					}
				},1000);
			}else{
				$("#successPage").hide()
			}
		})
		
		
		
	</script>   
</body>
</html>