...
|
...
|
@@ -12,18 +12,21 @@ $receive.on('touchend',function(){ |
|
|
url:'/coupon/receiveCoupon',
|
|
|
dataType:'json',
|
|
|
success:function(data){
|
|
|
var msg=data.msg;
|
|
|
var status=data.status;
|
|
|
if(!status){
|
|
|
$tooltip.show();
|
|
|
setTimeout(function(){
|
|
|
$tooltip.hide();
|
|
|
//location.reload();
|
|
|
},3000);
|
|
|
if (data['noLogin'] !== true) {
|
|
|
var msg=data.msg;
|
|
|
var status=data.status;
|
|
|
if(!status){
|
|
|
$tooltip.show();
|
|
|
setTimeout(function(){
|
|
|
$tooltip.hide();
|
|
|
},3000);
|
|
|
}else{
|
|
|
$message.find('.coupon-message-content').text(msg);
|
|
|
$mask.show();
|
|
|
$message.show();
|
|
|
}
|
|
|
}else{
|
|
|
$message.find('.coupon-message-content').text(msg);
|
|
|
$mask.show();
|
|
|
$message.show();
|
|
|
location.href = data['url'];
|
|
|
}
|
|
|
},
|
|
|
error:function(){}
|
...
|
...
|
|