<?php if (!defined('ROOT')) exit; ?>
<!DOCTYPE html>
<html>

	<head>
		<title>提取码下载</title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link rel="stylesheet" type="text/css" href="/static/public/css/mui/3.7.0/css/mui.min.css">
		<link rel="stylesheet" type="text/css" href="/static/public/css/wap.1.0.0.css">
		<link rel="stylesheet" type="text/css" href="/static/public/css/flexcss/flex.css">
		<link rel="stylesheet" type="text/css" href="http://static.523w.cn/js/form/wap.css">
		<style type="text/css">
		#boot{ position: fixed; bottom: 0; width: 100%; background:#16a085; height: 50px; line-height: 50px; text-align: center; color: #fff; z-index: 999;}
		#boot .c1{ background:#1abc9c;}
		</style>
	</head>
	<body>
		<nav id="boot">
		    <div  class="c1 btn_submit1 blur">立即下载</div>
		</nav>
		<div class="mui-content">
			<form  method="post" >
				<input type="hidden" name="pk1" value="<?php echo $pk['pk1'];?>" />
				<input type="hidden" name="pk2" value="" />
				<input type="hidden" name="pk3" value="" />
				<input type="hidden" name="pk4" value="<?php echo $pk['pk4'];?>" />
				<ul class="mui-input-group">
					<li class="mui-input-row" flex="box:justify">
						<label>邮箱</label>
						<input type="text" class="mui-input-clear tr" name="email" placeholder="点击输入" />
					</li>
					<li class="mui-input-row" flex="box:justify">
						<label>提取码</label>
						<input type="text" class="mui-input-clear tr" name="code" placeholder="点击输入" />
					</li>
				</ul>
			</form>
		</div>
		<script src="/static/public/js/jquery.2.1.4.mui.3.7.0.angular.1.2.16.sonar.js" type="text/javascript" charset="utf-8"></script>
		<script src="/static/public/js/jquery.cookie.js" type="text/javascript" charset="utf-8"></script>
		<script src="/static/public/js/wap.1.0.0.js" type="text/javascript" charset="utf-8"></script>
		<script type="text/javascript">
		mui(document).on("tap",".btn_submit1",function () {
		    var the=jQuery(this);
		    jQuery.ajax({
				url: "/file/download",
				data: jQuery('form').serializeArray(),
				dataType: "json",
				type: "post",
				timeout: 10000,
				success: function(data) {
					if(data.status == 1) {
						location.href = data.url;
					} else {
						mui.toast(data.info);
					}
				},
				error: function() {}
			});
         
		})
		</script>
	</body>
</html>