function getCoupon(n,t){$.ajax({type:"post",url:"/coupon/receive",data:{coupon_id:t},success:function(t){t.code==1?(layer.msg("领取成功",{time:1e3}),$(n).attr("visibility","False"),$(n).next().attr("visibility","True")):t.code==0&&layer.msg(t.msg,{icon:2,shift:6})}})}