mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-22 03:36:44 +08:00
【new】 完成人力发展-个人中心模块接口对接
This commit is contained in:
@@ -25,10 +25,18 @@ export default {
|
||||
methods: {
|
||||
async getInfo() {
|
||||
// 获取代理人信息
|
||||
const res = await getAgentInfo({})
|
||||
console.log(res)
|
||||
if (res.result == 0) {
|
||||
this.userInfo = res
|
||||
let userInfo = localStorage.getItem('userInfo')
|
||||
if (userInfo) {
|
||||
this.userInfo = JSON.parse(userInfo)
|
||||
} else {
|
||||
const res = await getAgentInfo({})
|
||||
if (res.result == 0) {
|
||||
this.userInfo = res
|
||||
localStorage.setItem('agentCode', res.jobNo)
|
||||
localStorage.setItem('userInfo', JSON.stringify(res))
|
||||
} else {
|
||||
this.$toast(res.resultMessage)
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user