|
|
@ -63,12 +63,36 @@
|
|
|
|
arr.game_name = "{$game_name}";
|
|
|
|
arr.game_name = "{$game_name}";
|
|
|
|
|
|
|
|
|
|
|
|
$('.actbtn').on("click",function(){
|
|
|
|
$('.actbtn').on("click",function(){
|
|
|
|
$.post("{:U('receive_gift')}",{
|
|
|
|
$.ajax({
|
|
|
|
|
|
|
|
type: "GET",
|
|
|
|
|
|
|
|
dataType: "json",
|
|
|
|
|
|
|
|
url: "{:U('receive_gift')}",
|
|
|
|
|
|
|
|
data: {
|
|
|
|
|
|
|
|
user_token : "{$user_token}",
|
|
|
|
|
|
|
|
gift_id : "{$gift_id}",
|
|
|
|
|
|
|
|
game_id : "{$game_id}",
|
|
|
|
|
|
|
|
game_name : "{$game_name}",
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
success: function (r) {
|
|
|
|
|
|
|
|
if (r.code == 200) {
|
|
|
|
|
|
|
|
window.location.href = r.url;
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
if (r == "领取成功") {
|
|
|
|
|
|
|
|
window.location.href = "{:U('details',['user_token' => $user_token,'gift_id' => $gift_id,'game_id' => $game_id,'game_name' => $game_name])}";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// alert(r.msg);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/* $.post("{:U('receive_gift')}",{
|
|
|
|
user_token : "{$user_token}",
|
|
|
|
user_token : "{$user_token}",
|
|
|
|
gift_id : "{$gift_id}",
|
|
|
|
gift_id : "{$gift_id}",
|
|
|
|
game_id : "{$game_id}",
|
|
|
|
game_id : "{$game_id}",
|
|
|
|
game_name : "{$game_name}",
|
|
|
|
game_name : "{$game_name}",
|
|
|
|
},function(data,status){
|
|
|
|
},function(data,status){
|
|
|
|
|
|
|
|
|
|
|
|
if(data == '领取成功')
|
|
|
|
if(data == '领取成功')
|
|
|
|
{
|
|
|
|
{
|
|
|
|
window.location.href = "{:U('details',['user_token' => $user_token,'gift_id' => $gift_id,'game_id' => $game_id,'game_name' => $game_name])}";
|
|
|
|
window.location.href = "{:U('details',['user_token' => $user_token,'gift_id' => $gift_id,'game_id' => $game_id,'game_name' => $game_name])}";
|
|
|
@ -78,7 +102,7 @@
|
|
|
|
$("#iosDialog").show();
|
|
|
|
$("#iosDialog").show();
|
|
|
|
// window.location.href = "{:U('details',['user_token' => $user_token,'gift_id' => $gift_id,'game_id' => $game_id,'game_name' => $game_name])}";
|
|
|
|
// 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(){
|
|
|
|
$("#hidedialog").on("click",function(){
|
|
|
|
$("#iosDialog").hide();
|
|
|
|
$("#iosDialog").hide();
|
|
|
|