Authored by liangxs

领券修盖

... ... @@ -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(){}
... ...
... ... @@ -27,6 +27,7 @@ class CouponController extends AbstractAction
}
$this->_view->display('index', array(
'floor' => $result,
'floorPage' => true
));
}
... ...