diff --git a/src/components/HomePage/homePage.vue b/src/components/HomePage/homePage.vue index e9b7966d..f1179f6b 100644 --- a/src/components/HomePage/homePage.vue +++ b/src/components/HomePage/homePage.vue @@ -166,7 +166,7 @@ if(this.pageId !== this.userInfo.aid) { this.followHas(); } - this.Teacherprofile(); + this.teacherProfile(); }, @@ -191,7 +191,7 @@ }else{ this.tearchUrl =''; } - + //通过用户的sysId(原系统中的kid)去取用户 apiBoeTeahcer.simpleInfo(res.result.sysId).then(sinfo=>{ if(sinfo.status=='200'){ @@ -226,8 +226,8 @@ }) }) }, - Teacherprofile(){ - apiTeach.has(this.userInfo.aid).then(res =>{ + teacherProfile(){ //检查是否是教师 + apiTeach.has(this.pageId).then(res =>{ this.teaechswich = res.result.isTeacher; }) },