{wc:templates "index","header"}
{wc:templates "member","top"}
<style type="text/css">
<!--
.STYLE1 {font-size: 24px}
.STYLE3 {font-size: 18px}
.STYLE4 {color: #666666}
.STYLE1 {color: #FF0000}
-->
</style>
<div class="c_person_record">
<ul class="c_person_list">
	<li class=""><a href="{WEB_PATH}/member/home/userbuylist" hidefocus="">云购记录</a></li>
	<li class=""><a href="{WEB_PATH}/member/home/singlelist" hidefocus="">我的晒单</a></li>
	<li class=""><a href="{WEB_PATH}/member/home/orderlist" hidefocus="">中奖记录</a></li>
	<li class=""><a href="{WEB_PATH}/member/home/userfufen" hidefocus="">我的福分</a></li>
	<li class=""><a href="{WEB_PATH}/member/home/userbalance" hidefocus="">账户管理</a></li>
	<li class=""><a href="{WEB_PATH}/member/home/commissions" hidefocus="">奖励专区</a></li>
	<li class=""><a href="{WEB_PATH}/member/home/invitefriends" hidefocus="">邀请好友</a></li>
	<li class=""><a href="{WEB_PATH}/member/home/address" hidefocus="">收货地址</a></li>
</ul>
<div class="main-content clearfix">
{wc:templates "member","left"}
	
<script type="text/javascript" src="{G_GLOBAL_STYLE}/global/js/jquery-1.8.3.min.js"></script>
<style>
#tb{height: 110px;}

		#wuliu_select{ padding: 5px 48px;
width: 55px; background-color:#D80000;border-radius:2px;font-family: 微软雅黑; color:#fff; font-size:12px; margin-left:30px; }		
		.wuliubtn{ padding:3px 5px;background-color:#C40000;border-radius:2px; color:#fff; font-size:12px; }
		.wuliubtn:hover{ color:#fff; cursor:pointer}
		.single-img .pic{ text-indent:0px;}
		#divPageNav{ padding-top:10px;text-align:right}		
		.listTitle .sdzt b{color: #fe6c00; font-weight:bold}
		.message{ background:#fff; border:0px solid #fff; color:#D80000; padding:0px 0px; text-indent:0px;}
		.single-xx-has span{ display:inline-block;  width:180px}
</style>
        
<link rel="stylesheet" type="text/css" href="{G_TEMPLATES_STYLE}/css/layout-commodity.css"/>
<style type="text/css">
#row1 h2{color: #D80000; font-size: 18px;font-weight: 700; padding-bottom: 10px;}
#row1 table{ width:100%;}
#row1 hr{color: #ccc; height:0px; border: none; border-top:1px solid #ccc;}
#row1 td{ padding: 10px;}
#row1 img{ border: 1px solid #eee;}
#row1 button{ width:200px; height: 50px; line-height: 50px; background:#D80000; border-radius: 5px;border: none; color: #fff;}
#row1 .wuliubtn{ background:#D80000; line-height: 40px; font-size: 14px; }
#row1 .cards td,#row1 .cards th{ border: 1px solid #ccc; padding: 5px;}
#row1 .cards th{ font-weight: 700;}
</style>
<div class="R-content" id="row1">
	<h2>商品兑换</h2>
	<hr>
	<form method="post" action="/member/home/exchange" id="exchange">
	<table border="0" cellspacing="1" cellpadding="1">
		<input type="hidden" name="id" value="{wc:$id}" />
		<tr>
			<td width="43"><img src="/statics/uploads/{wc:$record['thumb']}"/></td>
			<td width="600">
				<ul>
					<li><span class="STYLE1">商品名称：</span>{wc:$record['title']}</li>
					<li><span class="STYLE1">商品价格：</span>{wc:$record['money']}元</li>
					<li><span class="STYLE1">中奖号码：</span>{wc:$record['q_user_code']}</li>
					<li><span class="STYLE1">兑换金额：</span>{wc:$record['zhejiu']}元</li>
					{wc:if $status[1]=='已发货'}
					<li><span class="STYLE1">选择卡商：</span>{wc:$rs_member_go_record['card_type']}</li>
					{wc:else}
					<li><span class="STYLE1">选择卡商：</span>
					  <select name="card_type">
						<option value="中国移动充值卡">中国移动充值卡</option>
						<option value="中国联通充值卡">中国联通充值卡</option>
						<option value="中国电信充值卡">中国电信充值卡</option>
					</select>
				  </li>
					{wc:if:end}
				</ul>
			</td>
			<td width="378" valign="bottom">
				
				{wc:if $status[1]=='未发货'}
				  <button type='submit'>确定兑换</button>{wc:if:end}
				{wc:if $status[1]=='已发货'}<button type='button' class="wuliubtn" uid="{wc:$rs_member_go_record['uid']}" oid="{wc:$rs_member_go_record['id']}">确认收货</button>{wc:if:end}			</td>
		</tr>
	</table>
	</form>
	<hr />

	<h2>充值卡中心</h2>
	<table border="0" cellpadding="0" cellspacing="0" bgcolor="#f2fbe9" class="cards">
		<tr>
			<th background="{G_TEMPLATES_IMAGE}//main_right_title_bg.gif" bgcolor="#ff8681"><span class="STYLE1">卡号</span></th>
			<th background="{G_TEMPLATES_IMAGE}//main_right_title_bg.gif" bgcolor="#ff8681"><span class="STYLE1">卡密</span></th>
			<th background="{G_TEMPLATES_IMAGE}//main_right_title_bg.gif" bgcolor="#ff8681"><span class="STYLE1">面值</span></th>
		</tr>
		
		{wc:php:start} 
		$card=preg_split("/[\n\r]+/s",$rs_member_go_record['card'],-1,PREG_SPLIT_NO_EMPTY); 
		foreach($card as $k=>$v){
			$v=preg_split("/[\s]+/s",$v,-1,PREG_SPLIT_NO_EMPTY); 
			echo '
			<tr>
				<td><div align="center">'.$v[0].'</div></td>
				<td><div align="center">'.$v[1].'</div></td>
				<td><div align="center">'.$v[2].'</div></td>
			</tr>
			';
		}
		{wc:php:end} 
	</table>

	<table width="100%" border="0" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF">
              <tr>
                <td height="51">
                 <span class="STYLE1"><strong>兑换说明：</strong></span>
                 </p>
                  <p class="STYLE4">&nbsp;<span class="STYLE3">&nbsp;&nbsp; &nbsp; 如果商品不满意，不需要此商品可以兑换成充值卡（支持兑换;中国移动充值卡、中国电信充值卡、中国联通充值卡、目前只支持三种卡），需要奖品兑换成充值卡的会员们可以在中奖时每天早9点之前申请兑换，商品会在每天10点统一进行发货，商品折旧兑换充值卡带有兑换价格觉得合适的可以进行兑换，例如：1200元手机、折旧价格为1000元、可以兑换成1000元充值卡，每张充值卡面额50元-100元不等、中奖会员可以随意选择三大运营商的充值卡进行兑换、卡号卡密只保留3天，超过3天不使用或者不充值本站概不负责，请妥善保管好自己的卡号和卡密。充值卡如何充值如何使用与本站无关，不管您是将充值卡充值到支付宝、财付通、云奇付、都与本站无关，充值卡批量兑换推荐使用云奇付2小时内到账、费率高。</span> </p>
                  <p></p>
                  <p></p>
                  <hr />
                 
                </td>
              </tr>
              <tr>
                <td height="89">
				
				<p align="center"><a href="https://auth.alipay.com" target="_blank"><img src="{G_TEMPLATES_IMAGE}/alipay.png" alt="" width="150" height="50" border="0"></a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  
			  <a href="https://www.tenpay.com" target="_blank"><img src="{G_TEMPLATES_IMAGE}/tenpay.png" alt="" width="150" height="50" border="0"></a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
			  <a href="http://www.361ser.com" target="_blank"><img src="{G_TEMPLATES_IMAGE}/361ser.png" alt="" width="150" height="50" border="0"></a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			  <a href="http://www.yc88.net" target="_blank"><img src="{G_TEMPLATES_IMAGE}/yc.png" alt="" width="150" height="50" border="0"></a> </p>		
			  
				</td>
              </tr>
              <tr>
                <td height="57">
				<hr />
				<div align="center">
				  <p>&nbsp;</p>
				  <p>&nbsp;</p>
				  <p><a href="/help/17" target="_blank">支付宝兑换教程【兑换比例：5%】</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="/help/18" target="_blank">财付通兑换教程【兑换比例：5%】</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.361ser.com/news/4026-5.html" target="_blank">云奇付兑换教程【兑换比例：4%】</a> </p>
				</div></td>
              </tr>
      </table>
</div>
</div>
<!--center_center_end-->
<div class="right">				
</div>
<!--center_rjght_end-->
</div>
</div>

<!--期数修改弹出框-->
<style>
#paywindow{position:absolute;z-index:999; display:none}
#paywindow_b{width:542px;height:360px;background:#2a8aba; filter:alpha(opacity=60);opacity: 0.6;position:absolute;left:0px;top:0px; display:block}
#paywindow_c{width:530px;height:348px;background:#fff;display:block;position:absolute;left:6px;top:6px;}
.p_win_title{ line-height:40px;height:40px;background:#f8f8f8;}
.p_win_title b{float:left}
.p_win_title a{float:right;padding:0px 10px;color:#D80000}
.p_win_content h1{font-size:25px;font-weight:bold;}
.p_win_but,.p_win_mes,.p_win_ctitle,.p_win_text{ margin:10px 20px;}
.p_win_mes{border-bottom:1px solid #eee;line-height:35px;}
.p_win_mes span{margin-left:10px;}
.p_win_ctitle{overflow:hidden;}
.p_win_x_b{float:left; width:73px;height:68px;background-repeat:no-repeat;}
.p_win_x_t{ font-size:18px; font-weight:bold;font-family: "Helvetica Neue",\5FAE\8F6F\96C5\9ED1,Tohoma;color:#f00; text-align:center}
.p_win_but{ height:40px; line-height:40px;}
.p_win_but a{ padding:8px 15px; background:#D80000; color:#fff;border:1px solid #f50; margin:0px 15px;font-family: "Helvetica Neue",\5FAE\8F6F\96C5\9ED1,Tohoma; font-size:15px; }
.p_win_but a:hover{ background:#f50}
.p_win_text a{ font-size:13px; color:#D80000}
.pay_window_quit:hover{ color:#f00}
</style>
<div id="paywindow">
	<div id="paywindow_b"></div>
	<div id="paywindow_c">
		<div class="p_win_title"><a href="javascript:void();" class="pay_window_quit">[关闭]</a><b>　 物流查询</b></div>
		<div class="p_win_content">			
            	<iframe name="kuaidi100" src="http://www.kuaidi100.com/frame/app/index2.html" width="527" height="300" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"></iframe>        
		</div>
	</div>
</div>
<script>
$(function(){
	var width = ($(window).width()-542)/2;
	var height = ($(window).height()-360)/2;
	$("#paywindow").css("left",width);
	$("#paywindow").css("top",height);
		
	$(".pay_window_quit").click(function(){
		$("#paywindow").hide();								 
	});	
	$("#wuliu_select").click(function(){
		$("#paywindow").show();								 
	});	
	
	$(".wuliubtn").click(function(){
		var uid = $(this).attr("uid");	
		var oid = $(this).attr("oid");	
		$.post("{WEB_PATH}/api/dingdan/set",{"uid":uid,"oid":oid},function(sdata){
			if(sdata=='1'){
				location.href='/member/home/orderlist';
			}else{
				alert("更新失败");
			}											   
		});					  
	});
});

</script>
<!--期数修改弹出框-->
{wc:templates "index","footer"}