|
|
@@ -58,7 +58,7 @@ export default {
|
|
|
if (this.$store.state.loginInfo && this.$store.state.loginInfo.hasUnionId) {
|
|
|
return Promise.resolve();
|
|
|
} else {
|
|
|
- this.$store.commit('setUserIcon', e.userInfo.avatarUrl);
|
|
|
+ this.$store.commit('setUserIcon', JSON.parse(e.detail.rawData).avatarUrl);
|
|
|
return this.$http.post('/applets/dealuserinfo', {
|
|
|
...e.detail,
|
|
|
userInfo: JSON.stringify(e.detail.userInfo)
|
|
|
@@ -89,6 +89,7 @@ export default {
|
|
|
wx.navigateBack();
|
|
|
})
|
|
|
.catch(e => {
|
|
|
+ console.log(e);
|
|
|
this.$loading.close();
|
|
|
if (typeof e === 'string') {
|
|
|
this.$toast(e);
|