diff --git a/Application/Home/View/default/Withdraw/index.html b/Application/Home/View/default/Withdraw/index.html index ca094517c..27ce2abd7 100644 --- a/Application/Home/View/default/Withdraw/index.html +++ b/Application/Home/View/default/Withdraw/index.html @@ -326,11 +326,13 @@ dataType: "json", data: { id:id }, success: function (result) { - layer.msg(result.msg); - poolCount(result.data.pool_id); - setTimeout(function () { - location.reload(); - }, 1000); + poolCount(result.data.pool_id,function(){ + layer.msg(result.msg); + setTimeout(function () { + location.reload(); + }, 1000); + }); + }, error: function () { @@ -340,7 +342,7 @@ }); - function poolCount(pool_id) { + function poolCount(pool_id,callback) { $.ajax({ async: false, @@ -349,6 +351,7 @@ dataType: "json", data: { poolid:pool_id }, success: function (result) { + callback(); }, error: function () { }