Authored by 袁晋鹏

修改弹框关闭的问题

@@ -588,12 +588,14 @@ layui.define(['xmSelect', 'md5'], function (exports) { @@ -588,12 +588,14 @@ layui.define(['xmSelect', 'md5'], function (exports) {
588 id: id, 588 id: id,
589 content: laytpl(res.body).render(JSON.stringify(params)), 589 content: laytpl(res.body).render(JSON.stringify(params)),
590 success: function (layero, index) { 590 success: function (layero, index) {
591 - if (typeof done==="function") {  
592 - done(layero, index);  
593 - }else if(done.success){  
594 - done.success()  
595 - }else {  
596 - return 591 + if(done) {
  592 + if (typeof done === "function") {
  593 + done(layero, index);
  594 + } else if (done.success) {
  595 + done.success()
  596 + } else {
  597 + return
  598 + }
597 } 599 }
598 }, 600 },
599 yes: function (index, layero) { 601 yes: function (index, layero) {
@@ -588,12 +588,14 @@ layui.define(['xmSelect', 'md5'], function (exports) { @@ -588,12 +588,14 @@ layui.define(['xmSelect', 'md5'], function (exports) {
588 id: id, 588 id: id,
589 content: laytpl(res.body).render(JSON.stringify(params)), 589 content: laytpl(res.body).render(JSON.stringify(params)),
590 success: function (layero, index) { 590 success: function (layero, index) {
591 - if (typeof done==="function") {  
592 - done(layero, index);  
593 - }else if(done.success){  
594 - done.success()  
595 - }else {  
596 - return 591 + if(done) {
  592 + if (typeof done === "function") {
  593 + done(layero, index);
  594 + } else if (done.success) {
  595 + done.success()
  596 + } else {
  597 + return
  598 + }
597 } 599 }
598 }, 600 },
599 yes: function (index, layero) { 601 yes: function (index, layero) {