Browse Source

头像上传失败问题

shibei
mk 1 year ago
parent
commit
6ba14d4743
  1. 9
      miniprogram/pages/my/my.js

9
miniprogram/pages/my/my.js

@ -132,9 +132,6 @@ Page({
_this.setData({
faceImg:imgUrl
})
}
}
})
wx.login({
success: (res) => {
let para = {}
@ -166,8 +163,9 @@ Page({
}
},
})
let temp = JSON.parse(wx.getStorageSync('userInfo') || {})
console.log('temp',temp);
}
}
})
}
}
})
@ -176,6 +174,7 @@ Page({
api.getUserInfo().then(res => {
let userInfoString = JSON.stringify(res.data);
wx.setStorageSync('userInfo', userInfoString);
this.getUserProfile()
}).catch(err => {
console.log(err)
})

Loading…
Cancel
Save