mirror of
https://gitee.com/elegant_wings/dbd-meeting-wx-small.git
synced 2025-06-21 11:59:37 +08:00
描述:登录页面优化
This commit is contained in:
parent
b637200487
commit
cc5bc281d0
@ -278,4 +278,20 @@ App({
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
|
selfShowMsg(content, url) {
|
||||||
|
wx.showModal({
|
||||||
|
title: '提示',
|
||||||
|
content: content,
|
||||||
|
confirmText: '确认',
|
||||||
|
showCancel: false,
|
||||||
|
success: res => {
|
||||||
|
if (url) {
|
||||||
|
wx.navigateTo({
|
||||||
|
url
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
})
|
})
|
@ -185,6 +185,7 @@ Page({
|
|||||||
if (userId) {
|
if (userId) {
|
||||||
getUserInfoRq(userId).then(res => {
|
getUserInfoRq(userId).then(res => {
|
||||||
console.log('getUserInfoRq', res);
|
console.log('getUserInfoRq', res);
|
||||||
|
if (res.code == 0) {
|
||||||
let userDetail = res.data;
|
let userDetail = res.data;
|
||||||
// 存储用户信息
|
// 存储用户信息
|
||||||
wx.setStorageSync('openid', userDetail.openid)
|
wx.setStorageSync('openid', userDetail.openid)
|
||||||
@ -195,12 +196,13 @@ Page({
|
|||||||
})
|
})
|
||||||
// 登录用户是否选择园区
|
// 登录用户是否选择园区
|
||||||
_this.userIsPark()
|
_this.userIsPark()
|
||||||
|
} else {
|
||||||
|
app.selfShowMsg(res.msg, '/pages/login/login')
|
||||||
|
}
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
app.getlogin()
|
app.selfShowMsg('请登录账号', '/pages/login/login')
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
// 登录用户是否选择园区
|
// 登录用户是否选择园区
|
||||||
|
Loading…
x
Reference in New Issue
Block a user