按钮加loding框

This commit is contained in:
尹吉欢
2018-04-09 13:39:07 +08:00
parent 6d6b6a2047
commit 5b020dbcff
4 changed files with 34 additions and 20 deletions
+3
View File
@@ -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();
});
}
},