|
@@ -80,17 +80,6 @@
|
|
|
return;
|
|
|
}
|
|
|
// 检查手机号有无注册
|
|
|
-
|
|
|
- let API = "http://south.niimei.com:8866/server";
|
|
|
- let GETUSERINFO = "/smartUsers/list";
|
|
|
- // this.$http.get(API+GETUSERINFO).then((data) => {
|
|
|
- // // 响应成功回调
|
|
|
- // console.log(data);
|
|
|
- // }, (err) => {
|
|
|
- // // 响应错误回调
|
|
|
- // console.log(err);
|
|
|
- // console.log(this);
|
|
|
- // });
|
|
|
// let login_info = {
|
|
|
// phone: this.phone,
|
|
|
// pass: this.password
|
|
@@ -102,7 +91,6 @@
|
|
|
// this.passError = true;
|
|
|
// }
|
|
|
// 检查手机号有无验证
|
|
|
- // BasicFunction.get_data("smartUsers/list", function(data) { console.log(data.model.list); } );
|
|
|
BasicFunction.get_data("ajaxlogin", function(response){
|
|
|
console.log("------ Data Rcvd in Login --------");
|
|
|
console.log(response);
|
|
@@ -113,7 +101,7 @@
|
|
|
// 密码错误的处理
|
|
|
console.warn("登录失败");
|
|
|
}
|
|
|
- }, { u: this.phone, p : this.passWord });
|
|
|
+ }, { u: this.phone, p : this.password });
|
|
|
// this.$router.push('index');
|
|
|
},
|
|
|
Register() {
|
|
@@ -127,7 +115,7 @@
|
|
|
// 注册失败的处理
|
|
|
console.warn("注册失败");
|
|
|
}
|
|
|
- }, { u: this.phone, p : this.passWord });
|
|
|
+ }, { u: this.phone, p : this.password });
|
|
|
}
|
|
|
}
|
|
|
}
|