diff --git a/frontend/views/phone-center/sub-index.php b/frontend/views/phone-center/sub-index.php index dd495cf..7720b05 100644 --- a/frontend/views/phone-center/sub-index.php +++ b/frontend/views/phone-center/sub-index.php @@ -72,10 +72,16 @@ use \common\libs\MyLib; btn: ['删除','取消'], //按钮 shade: false //不显示遮罩 }, function(){ - $.post('/phone-center/sub-delete',{id:id},function(data) { - parent.layer.msg(data.msg); - refreshList(); - }, 'json'); + $.get('/phone/ax-unbind',{id:id},function(obj){ + if(obj.success){ + $.post('/phone-center/sub-delete',{id:id},function(data) { + parent.layer.msg(data.msg); + refreshList(); + }, 'json'); + } else { + parent.layer.msg(obj.msg); + } + }); }, function(){ // });