|
@@ -189,17 +189,17 @@
|
|
|
// console.log(response);
|
|
|
if (response.ret === "10000") {
|
|
|
// console.log('----- User Info -----');
|
|
|
- BasicFunction.get_data('smartUsers/list?uid=' + userId, function (res) {
|
|
|
- // console.log(res);
|
|
|
- if (res.ret === '10000' && ret.model !== undefined && ret.model.list !== undefined) {
|
|
|
- let user = res.model.list[0];
|
|
|
+ BasicFunction.get_data('smartUsers/list?uid=' + userId, function (resOfUser) {
|
|
|
+ // console.log(resOfUser);
|
|
|
+ if (resOfUser.ret === '10000' && resOfUser.model !== undefined && resOfUser.model.list !== undefined) {
|
|
|
+ let user = resOfUser.model.list[0];
|
|
|
user.name = that.username;
|
|
|
user.phone = that.phone;
|
|
|
// console.log('----- Update User Info -----');
|
|
|
// console.log(user);
|
|
|
- BasicFunction.get_data('smartUsers/updateBatch', function (res) {
|
|
|
- // console.log(res);
|
|
|
- if (res.ret === '10000') {
|
|
|
+ BasicFunction.get_data('smartUsers/updateBatch', function (resOfUpdate) {
|
|
|
+ // console.log(resOfUpdate);
|
|
|
+ if (resOfUpdate !== undefined && resOfUpdate.ret === '10000') {
|
|
|
Toast.success("注册成功");
|
|
|
that.$router.push('presentRegister');
|
|
|
} else {
|