| @@ -179,13 +179,14 @@ | |||||
| $('#mask').css('display', 'block') | $('#mask').css('display', 'block') | ||||
| $("iframe[name=iframeContent]").on("load", function() { | $("iframe[name=iframeContent]").on("load", function() { | ||||
| var responseText = $("iframe")[0].contentDocument.body.getElementsByTagName("pre")[0].innerHTML; | |||||
| var responseText = $("iframe")[0].contentDocument.body.getElementsByTagName("pre")[0].innerHTML; | |||||
| alert(responseText) | |||||
| var json1 = JSON.parse(responseText) | var json1 = JSON.parse(responseText) | ||||
| $('#mask').css('display', 'none') | $('#mask').css('display', 'none') | ||||
| parent.location.href | parent.location.href | ||||
| if (json1.result_code === "0") { | if (json1.result_code === "0") { | ||||
| $('.alert').html('操作成功!').addClass('alert-success').show().delay(1500).fadeOut(); | |||||
| $('.alert').html('操作成功!').removeClass('alert-danger').addClass('alert-success').show().delay(1500).fadeOut(); | |||||
| } else { | } else { | ||||
| $('.alert').html(json1.error_msg).removeClass('alert-success').addClass('alert-danger').show().delay(5000).fadeOut(); | $('.alert').html(json1.error_msg).removeClass('alert-success').addClass('alert-danger').show().delay(5000).fadeOut(); | ||||
| } | } | ||||
| @@ -194,6 +195,8 @@ | |||||
| </script> | </script> | ||||
| <style> | <style> | ||||
| /* 弹窗 */ | |||||
| #mask { | #mask { | ||||
| position: fixed; | position: fixed; | ||||
| top: 0px; | top: 0px; | ||||
| @@ -271,6 +274,7 @@ | |||||
| -webkit-transform: scaleY(1.0); | -webkit-transform: scaleY(1.0); | ||||
| } | } | ||||
| } | } | ||||
| /* 消息框 */ | |||||
| .alert { | .alert { | ||||
| display: none; | display: none; | ||||