You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

89 lines
3.3 KiB
HTML

<!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="js_dialog" id="iosDialog" style="display: none;">
<div class="weui-mask"></div>
<div class="weui-dialog" style="width: 4rem;height: 4rem;max-width: 4rem;">
<img src="__IMG__/payerroricon.png" style="width: 1.4rem;height: 1.4rem;margin-top: .59rem;">
<p id="errormsg" style="font-size: .24rem;margin-top: .39rem;">输入错误,请重新输入</p>
<div class="btnbox" style="margin-top: .28rem;">
<div id="hidedialog" class="ptbbtn" style="width: 1.5rem;height: .5rem;line-height: .5rem;">
返回
</div>
</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
{
$("#errormsg").html(data);
$("#iosDialog").show();
// window.location.href = "{:U('details',['user_token' => $user_token,'gift_id' => $gift_id,'game_id' => $game_id,'game_name' => $game_name])}";
}
});
})
$("#hidedialog").on("click",function(){
$("#iosDialog").hide();
})
</script>
</html>