|
@@ -23,7 +23,7 @@
|
|
|
<div class="icon"><img class="icon-user" src="../static/img/beeMans/icon-password.png" alt=""></div>
|
|
|
<input type="password" id="tel_pass" placeholder="请输入密码">
|
|
|
</div>
|
|
|
- <div class="btn" onclick="handleClick()">登录</div>
|
|
|
+ <button class="btn" onclick="handleClick()">登录</button>
|
|
|
</div>
|
|
|
</body>
|
|
|
<script src="../static/js/vender/jquery-3.4.1.min.js"></script>
|
|
@@ -79,6 +79,9 @@
|
|
|
contentType: "application/json",
|
|
|
dataType: 'json',
|
|
|
cache: false,
|
|
|
+ beforeSend: function() {
|
|
|
+ $('.btn').attr({ disabled: 'disabled' });
|
|
|
+ },
|
|
|
success: function (res) {
|
|
|
$.hideLoading();
|
|
|
if (res.status === 0) {
|
|
@@ -86,6 +89,9 @@
|
|
|
} else {
|
|
|
$.toast(res.msg, "text");
|
|
|
}
|
|
|
+ },
|
|
|
+ complete: function() {
|
|
|
+ $('.btn').removeAttr('disabled');
|
|
|
}
|
|
|
})
|
|
|
}
|