输出日志
This commit is contained in:
@@ -71,12 +71,13 @@ function getUser () {
|
|||||||
url: urlPrefix + '/user/get',
|
url: urlPrefix + '/user/get',
|
||||||
data: { uid: pubInfo.uid },
|
data: { uid: pubInfo.uid },
|
||||||
success (res) {
|
success (res) {
|
||||||
|
console.log(res);
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
$('.myInfo img').attr('src', res.data.avatar);
|
$('.myInfo img').attr('src', res.data.avatar);
|
||||||
$('.myInfo div p').text(res.data.nick);
|
$('.myInfo div p').text(res.data.nick);
|
||||||
$('.myInfo div b').text("ID:" + res.data.erbanNo);
|
$('.myInfo div b').text("ID:" + res.data.erbanNo);
|
||||||
} else if (res.code ? res.code == 1444 : JSON.parse(res).code == 401) {
|
} else if (res.code ? res.code == 1444 : JSON.parse(res).code == 401) {
|
||||||
window.location.href = './login.html'
|
// window.location.href = './login.html'
|
||||||
} else {
|
} else {
|
||||||
toastMsg(res.message)
|
toastMsg(res.message)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user