diff --git a/src/components/Portal/interactBar.vue b/src/components/Portal/interactBar.vue index f95be3bb..474e3aa7 100644 --- a/src/components/Portal/interactBar.vue +++ b/src/components/Portal/interactBar.vue @@ -348,11 +348,18 @@ export default { this.$store.dispatch("unicomPraises",false) } //自己给自己点赞不算 - if(this.userInfo.aid!=this.data.sysCreateAid){ + let authorId=this.data.sysCreateAid; + if(this.type==3){ //案例取作者id + authorId=this.data.authorId; + }else if(this.type==1){ //课程取老师的id + // 目前页面上没有点赞的地方,课程有多个老师,也要给每个老师加吗? + //console.log(this.data,'点赞中课程的传的数据') + } + if(this.userInfo.aid!=authorId){ let event = { key: "CancelPraise",// title: "取消点赞",//事件的标题 - parameters:"author:"+this.data.sysCreateAid,//用户自定义参数 name:value,name:value + parameters:"author:"+authorId,//用户自定义参数 name:value,name:value content: "取消点赞"+postData.title,//事件的内容 objId: this.data.id,//关联的id objType: this.type,//关联的类型 diff --git a/src/views/study/coursenew.vue b/src/views/study/coursenew.vue index 7968a9d9..81ae32ba 100644 --- a/src/views/study/coursenew.vue +++ b/src/views/study/coursenew.vue @@ -106,8 +106,8 @@