|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
|
|
|
<link rel="stylesheet" href="__CSS__/weui.mim.css">
|
|
|
|
<link rel="stylesheet" href="__CSS__/sdkptbpay.css">
|
|
|
|
<script src="__JS__/resize.js" type=""></script>
|
|
|
|
<title>礼包领取</title>
|
|
|
|
</head>
|
|
|
|
<body class="gifbag-box">
|
|
|
|
<!-- <div class="ptbnav" style="background:url('__IMG__/navbg.png') no-repeat bottom center/100% 100%;">
|
|
|
|
<img src="__IMG__/back.png">
|
|
|
|
<p>礼包详情</p>
|
|
|
|
<div></div>
|
|
|
|
</div> -->
|
|
|
|
<div class="ptbboxpad">
|
|
|
|
<div class="gifbox">
|
|
|
|
<div href="#" class="weui-cell gifcopy">
|
|
|
|
<div class="weui-cell__bd">
|
|
|
|
<p>{$content.giftbag_name}</p>
|
|
|
|
<p>剩余{$content.novice_num}个</p>
|
|
|
|
</div>
|
|
|
|
<a href="#" class="weui-cell__ft">
|
|
|
|
<div class="actbtn">
|
|
|
|
领取
|
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div class="weui-cell gifinfo">
|
|
|
|
<p class="info-title">有效期</p>
|
|
|
|
<p class="info-desc">有效期:{$content.start_time}至 {$content.end_time}</p>
|
|
|
|
<p class="info-title">礼包内容</p>
|
|
|
|
<p class="info-desc">{$content.desribe}</p>
|
|
|
|
<p class="info-title">使用说明</p>
|
|
|
|
<p class="info-desc">{$content.digest}</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</body>
|
|
|
|
<script src="__JS__/jquery.min.js"></script>
|
|
|
|
<script type="text/javascript">
|
|
|
|
var arr = {};
|
|
|
|
arr.user_token = "{$user_token}";
|
|
|
|
arr.gift_id = "{$gift_id}";
|
|
|
|
arr.game_id = "{$game_id}";
|
|
|
|
arr.game_name = "{$game_name}";
|
|
|
|
|
|
|
|
$('.actbtn').on("click",function(){
|
|
|
|
$.post("{:U('receive_gift')}",{
|
|
|
|
user_token : "{$user_token}",
|
|
|
|
gift_id : "{$gift_id}",
|
|
|
|
game_id : "{$game_id}",
|
|
|
|
game_name : "{$game_name}",
|
|
|
|
},function(data,status){
|
|
|
|
if(data == '领取成功')
|
|
|
|
{
|
|
|
|
window.location.href = "{:U('details',['user_token' => $user_token,'gift_id' => $gift_id,'game_id' => $game_id,'game_name' => $game_name])}";
|
|
|
|
}else
|
|
|
|
{
|
|
|
|
alert(data);
|
|
|
|
// window.location.href = "{:U('details',['user_token' => $user_token,'gift_id' => $gift_id,'game_id' => $game_id,'game_name' => $game_name])}";
|
|
|
|
}
|
|
|
|
});
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
</html>
|