master
tpingzhang 5 years ago
parent 186205e10b
commit 4a1fc13a4f

@ -63,12 +63,36 @@
arr.game_name = "{$game_name}";
$('.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}",
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])}";
@ -77,7 +101,7 @@
window.location.href = data.url;
}
});
}); */
})
$("#hidedialog").on("click",function(){
$("#iosDialog").hide();

Loading…
Cancel
Save