Commit 1de0a98e authored by linwenqing's avatar linwenqing

fix:学时证工作地显示我的信息里面的地址,不是接口返回的

parent 57059a2b
...@@ -85,8 +85,15 @@ export default { ...@@ -85,8 +85,15 @@ export default {
type: null, type: null,
certName: '', certName: '',
topImage: process.uniEnv.qn_base_url + 'xueshitoubu@2x.png', topImage: process.uniEnv.qn_base_url + 'xueshitoubu@2x.png',
workPlace: ''
} }
}, },
onLoad(){
this.$u.api.getUserInfo().then((res) => {
this.workPlace =
res && res.workUnit || null
})
},
onShow: function() { onShow: function() {
this.formatDataByType() this.formatDataByType()
}, },
...@@ -114,7 +121,7 @@ export default { ...@@ -114,7 +121,7 @@ export default {
return this.learnData.idCard || ' ' return this.learnData.idCard || ' '
}, },
company() { company() {
return this.learnData.company || ' ' return this.workPlace
}, },
subjectName() { subjectName() {
return this.learnData.subjectName || ' ' return this.learnData.subjectName || ' '
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment