<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
	<meta content="telephone=no" name="format-detection" /> 
	<link rel="stylesheet" href="<?php echo sasset_url('css/style.css');?>">
</head>
<style>
	.exchange{text-align: center;}
	.exchange img{width: 40%;margin-top: 80px;margin-bottom: 25px;}
	.exchange h2{color: #F79324;margin: 0px;}
	.exchange p{color: #9E9E9E;}
	.exchange span{color: #F4B251;}
	.exchange p:nth-child(3){margin: 0px; font-size: 13px; margin-top: 10px;}
	.exbot{text-align: center;position: absolute;bottom: 25px;left: 50%;margin: -10px 0 0 -150px;width: 300px;height: 20px;}
	.exbot a{color:#9E9E9E;vertical-align: middle;}
</style>
<body>

	<div class="exchange">
		<img src="<?php echo sasset_url('images/exchange.png');?>" alt="">
		<?php if($is_ok == 'ok'){ ?>
			<h2>您已经兑换过</h2>
		<?php }else{?>
			<h2>兑换成功</h2>
		<?php } ?>
		<p>剩余<?php echo $score_name;?>：<span><?php echo $user->getScore();?></span></p>
		<?php if($cate == 1){?>
		<p>取货地址：<?php echo $address;?></p>
		<?php
		}elseif(!empty($extra)){
		?>
		<p>代充账号：<?php echo $extra;?></p>			
		<?php }	?>
	</div>
	<div class="exbot">
		<a href="<?php echo site_url('scorefront/goods/exchange');?>">兑换记录</a> | <a href="<?php echo site_url('scorefront/goods/index');?>">返回首页</a>
	</div>
</body>
</html>