redpackage.jsp 3.2 KB
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>领取红包</title>
<style>
body {
	margin: 0;
	background-color: #f1f1f1;
}

@media screen and (max-width: 321px) {
	html {
		font-size: 13px;
	}
}

@media ( min-width : 321px) and (max-width: 480px) {
	html {
		font-size: 15px;
	}
}

@media screen and (min-width: 481px) {
	html {
		font-size: 18px;
	}
}

.header {
	position: relative;
}

.h1 {
	background-color: rgb(216, 89, 64);
	color: rgb(255, 226, 177);
	width: 100%;
	height: 4.67rem;
	line-height: 4.67rem;
	text-align: center;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2
}

.yuan {
	width: 100%;
	height: 9.34rem;
	background-color: rgb(216, 89, 64);
	border-radius: 100%;
	position: absolute;
	top: 0px;
	left: 0;
	z-index: 1;
}

.logo {
	width: 4rem;
	height: 4rem;
	border: 1px solid rgb(255, 226, 177);
	position: absolute;
	top: 6.67rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 3;
	border-radius: 4px;
}

.logo img {
	width: 100%;
	height: 100%;
	border-radius: 4px;
}

.content {
	background-color: #f1f1f1;
	width: 100%;
	height: 23.67rem;
	padding-top: 12rem;
	box-sizing: border-box;
	text-align: center;
}

.title {
	font-size: 1.2rem;
	letter-spacing: 4px;
	font-weight: bold;
}

.subTitle {
	font-size: 0.8rem;
	margin-top: 0.8rem;
	letter-spacing: 3px;
}

.money {
	font-size: 2.6rem;
	font-weight: bold;
	font-family: '黑体'
}

.moneyBox {
	margin-top: 1rem;
}

.tip {
	margin: 1.4rem 0;
	font-size: 0.8rem;
	color: rgb(87, 118, 179);
	letter-spacing: 2px;
}

.closeBox {
	height: 4.67rem;
	line-height: 4.67rem;
	font-size: 1.1rem;
	font-weight: bold;
	color: #666;
	text-align: center;
	border-bottom: 1px solid #eee;
}

.closeBox button {
	border: none;
	background-color: #1AAD19;
	border: 1px solid #179B16;
	color: #fff;
	width: 80%;
	height: 40px;
	border-radius: 4px;
}
</style>
</head>

<body>
	<div class="header">
		<div class="h1">微信红包</div>
		<div class="yuan"></div>
		<div class="logo">
			<img src="../../res/images/vanke_logo.png" alt="">
		</div>
	</div>
	<div class="content">
		<div class="title">万小二的红包</div>
		<div class="subTitle">买房就找万小二</div>
		<div class="moneyBox">
			<span class="money">0</span> <span>元</span>
		</div>
			<div class="tip">
				红包已入帐,请到【微信支付】消息处查收。
			</div>
	</div>
	<div class="closeBox">
		<button onclick="fn()">我知道了</button>
	</div>
	<script src='/zzhnc/res/js/jquery.min.js'></script>
	<script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js" type="text/javascript"></script>
	<script type="text/javascript">
		function getUrl_G(name) {  
		    var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");  
		    var r = window.location.search.substr(1).match(reg);  
		    if (r != null) return unescape(r[2]); return null;  
		}
		
		var mny = getUrl_G("mny");
		$(".money").html(mny);
		
		function fn() {
			wx.closeWindow();
		}
		
		
	</script>
</body>

</html>