From a1703a62e1b30a831b1f71ad66624c1c4f6ba7ba Mon Sep 17 00:00:00 2001 From: zengchaoxin Date: Mon, 2 Dec 2019 13:53:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=A7=A3=E9=99=A4=E7=BB=91?= =?UTF-8?q?=E5=AE=9A=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/views/phone-center/sub-index.php | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) 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(){ // });