From 2b2964e2b946309a35d08631647a4e63364ac35b Mon Sep 17 00:00:00 2001 From: lxc <237024898@qq.com> Date: Wed, 14 Dec 2022 16:20:10 +0800 Subject: [PATCH] up --- app/js/dialog-1.0.js | 114 ------------------------------------------- 1 file changed, 114 deletions(-) delete mode 100644 app/js/dialog-1.0.js diff --git a/app/js/dialog-1.0.js b/app/js/dialog-1.0.js deleted file mode 100644 index 2606125..0000000 --- a/app/js/dialog-1.0.js +++ /dev/null @@ -1,114 +0,0 @@ - - -document.write(""); - - -function alertEx(message) { - swal( - message); -} - -function alertTitle(title,message) { - swal(title, message); -} - - -function alertSuccess(message) { - swal( message, '',"success"); -} -function alertSuccessCallBack(message, callbackfuntion) { - swal({ - title: message, - text: '', - type: "success", - confirmButtonColor: "#DD6B55", - confirmButtonText: "确定", - closeOnConfirm: false - }, - function () { - callbackfuntion(); - }); - -} -function alertSuccessCallBack2(title1,message, callbackfuntion) { - swal({ - title: title1, - text: message, - type: "success", - confirmButtonColor: "#DD6B55", - confirmButtonText: "确定", - closeOnConfirm: false - }, - function () { - callbackfuntion(); - }); - -} - - -function alertError( message) { - swal(message, '', "error"); -} - -function alertWarning(_title,message) { - - swal({ - title: _title, - text: message, - type: "warning", - showCancelButton: false, - confirmButtonColor: "#DD6B55", - confirmButtonText: "确定", - closeOnConfirm: false - } ); -} - - -function alertWarningCallBack(message,dtovalue,callbackfuntion) { - - swal({ - title: message, - text: "", - type: "warning", - showCancelButton: false, - confirmButtonColor: "#DD6B55", - confirmButtonText: "确定", - closeOnConfirm: true - }, - function () { - callbackfuntion(dtovalue); - }); -} - - -function confirmEx(title, message, callbackfuntion) { - swal({ - title: title, - text: message, - type: "warning", - showCancelButton: true, - confirmButtonColor: "#DD6B55", - confirmButtonText: "确定", - closeOnConfirm: true - }, - function () { - callbackfuntion(); - }); -} - -function alertAutoClose(message) { - swal({ - title: message, - text: "2秒钟后自动关闭", - timer: 2000, - showConfirmButton: false - }); -} -function alertAutoClose3(message) { - swal({ - title: message, - text: "3秒钟后自动关闭", - timer: 3000, - showConfirmButton: false - }); -}