mirror of https://gitee.com/karson/fastadmin.git
优化验证码发送
parent
5e1970b0fb
commit
7a6a65c190
|
|
@ -68,7 +68,7 @@ define(['jquery', 'bootstrap', 'toastr', 'layer', 'lang'], function ($, undefine
|
|||
si[type] = setInterval(function () {
|
||||
seconds--;
|
||||
if (seconds <= 0) {
|
||||
clearInterval(si);
|
||||
clearInterval(si[type]);
|
||||
$(btn).removeClass("disabled").text("发送验证码");
|
||||
} else {
|
||||
$(btn).addClass("disabled").text(seconds + "秒后可再次发送");
|
||||
|
|
|
|||
Loading…
Reference in New Issue