|
@@ -188,7 +188,7 @@
|
|
|
BasicFunction.get_data("smartIdentity/list?userId=" + userId, function (res) {
|
|
|
try {
|
|
|
let useridentity = res.model.list[0];
|
|
|
- if (res.ret === '10000') {
|
|
|
+ if (res.ret === '10000' && res.model !== undefined && res.model.list !== undefined && res.model.list.length > 0) {
|
|
|
useridentity.userWxAccount = that.wechat;
|
|
|
useridentity.dormDistrict = that.dorId;
|
|
|
useridentity.userSex = parseInt(that.radio);
|
|
@@ -205,14 +205,14 @@
|
|
|
// console.log(res);
|
|
|
try {
|
|
|
let user = res.model.list[0];
|
|
|
- if (res.ret === '10000') {
|
|
|
+ if (res.ret === '10000' && res.model !== undefined && res.model.list !== undefined) {
|
|
|
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') {
|
|
|
+ if (res !== undefined && res.ret === '10000') {
|
|
|
Toast.success("注册成功");
|
|
|
that.$router.push('presentRegister');
|
|
|
} else {
|