Merge branch 'master' of codeup.aliyun.com:6265f483e4166464dc2f9c14/boeu/portal

This commit is contained in:
dongruihua
2023-01-13 11:18:28 +08:00
2 changed files with 23 additions and 15 deletions

View File

@@ -166,7 +166,7 @@
if(this.pageId !== this.userInfo.aid) {
this.followHas();
}
this.Teacherprofile();
this.teacherProfile();
},
@@ -186,8 +186,14 @@
apiTeach.detailTeacher(this.pageId).then(res =>{
this.teachtext.workExperience = res.result.workExperience;
this.teachtext.courses = res.result.courses;
this.tearchUrl = this.fileBaseUrl + res.result.photo;
apiBoeTeahcer.simpleInfo(this.userInfo.sysId).then(sinfo=>{
if(res.result.photo){
this.tearchUrl = this.fileBaseUrl + res.result.photo;
}else{
this.tearchUrl ='';
}
//通过用户的sysId原系统中的kid去取用户
apiBoeTeahcer.simpleInfo(res.result.sysId).then(sinfo=>{
if(sinfo.status=='200'){
if(sinfo.result.courses){
this.teachtext.courses = sinfo.result.courses;
@@ -220,8 +226,8 @@
})
})
},
Teacherprofile(){
apiTeach.has(this.userInfo.aid).then(res =>{
teacherProfile(){ //检查是否是教师
apiTeach.has(this.pageId).then(res =>{
this.teaechswich = res.result.isTeacher;
})
},