按钮加loding框
This commit is contained in:
@@ -124,6 +124,7 @@ new Vue({
|
||||
$.toast("请输入密码");
|
||||
return;
|
||||
}
|
||||
plus.nativeUI.showWaiting();
|
||||
axios.post("/rest/user/passLogin", {mobile:this.mobile, pass: $.md5(this.pass), pushClientId:getPushInfo()})
|
||||
.then(function (response) {
|
||||
var resData = response.data;
|
||||
@@ -137,9 +138,11 @@ new Vue({
|
||||
} else {
|
||||
$.toast(resData.message);
|
||||
}
|
||||
plus.nativeUI.closeWaiting();
|
||||
})
|
||||
.catch(function (error) {
|
||||
$.toast(error);
|
||||
plus.nativeUI.closeWaiting();
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user