|
|
|
@@ -103,7 +103,8 @@ Page({ |
|
|
|
Authorization: 'bearer '+ that.data.token |
|
|
|
}, |
|
|
|
success(res) { |
|
|
|
if (res.statusCode == 200) { |
|
|
|
console.log(res) |
|
|
|
if (res.data.code==0) { |
|
|
|
that.setData({ |
|
|
|
avatarModal: false, |
|
|
|
step: 2 |
|
|
|
@@ -113,6 +114,11 @@ Page({ |
|
|
|
phoneModal: true |
|
|
|
}) |
|
|
|
} |
|
|
|
}else{ |
|
|
|
wx.showToast({ |
|
|
|
icon: 'none', |
|
|
|
title: res.data.msg |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
@@ -125,7 +131,6 @@ Page({ |
|
|
|
// console.log(res) |
|
|
|
that.bindNickname(res.userInfo) |
|
|
|
getApp().globalData.userInfo.userWxName = res.userInfo.nickName |
|
|
|
console.log(2121212) |
|
|
|
console.log(getApp().globalData.userInfo) |
|
|
|
} |
|
|
|
}) |
|
|
|
@@ -161,6 +166,11 @@ Page({ |
|
|
|
getApp().globalData.userInfo.phone = res.data.data |
|
|
|
console.log(getApp().globalData.userInfo) |
|
|
|
that.leave() |
|
|
|
}else{ |
|
|
|
wx.showToast({ |
|
|
|
icon: 'none', |
|
|
|
title: res.data.msg |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
|