按钮加loding框
This commit is contained in:
@@ -176,6 +176,7 @@ var vue = new Vue({
|
||||
// 绑定手机
|
||||
binding: function() {
|
||||
if (this.checkMobile() && this.checkSmsCode()) {
|
||||
plus.nativeUI.showWaiting();
|
||||
axios.post("/rest/user/bindMobile", {
|
||||
mobile:this.mobile,
|
||||
smsCode:this.smsCode,
|
||||
@@ -201,9 +202,11 @@ var vue = new Vue({
|
||||
} else {
|
||||
$.toast(resData.message);
|
||||
}
|
||||
plus.nativeUI.closeWaiting();
|
||||
})
|
||||
.catch(function (error) {
|
||||
$.toast(error);
|
||||
plus.nativeUI.closeWaiting();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user