From 08b58ad05e39dc1c1562b305f409c94086479e77 Mon Sep 17 00:00:00 2001 From: zhaofang <752743406@qq.com> Date: Mon, 24 Oct 2022 18:08:52 +0800 Subject: [PATCH] =?UTF-8?q?10.23=20=E3=80=8C=E6=88=91=E7=9A=84=E5=85=B3?= =?UTF-8?q?=E6=B3=A8=E3=80=8D=E7=94=A8=E6=88=B7=E8=A1=8C=E4=B8=BA=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=E9=80=BB=E8=BE=91=E6=B7=B7=E4=B9=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Portal/interactBar.vue | 35 ++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/src/components/Portal/interactBar.vue b/src/components/Portal/interactBar.vue index 474e3aa7..e75a9df9 100644 --- a/src/components/Portal/interactBar.vue +++ b/src/components/Portal/interactBar.vue @@ -393,12 +393,45 @@ export default { // } this.isPraise=true; this.$message({message:'点赞成功',type:'success'}) + let contentText = ''; + if(this.type==1){ + contentText='课程'; + // conType = this.data.type; + } + if(this.type==2){ + contentText='文章' + } + if(this.type==3){ + contentText='案例' + } + if(this.type==4){ + contentText='提问' + } + if(this.type==5){ + contentText='回答' + } + if(this.type==6){ + contentText='课程笔记' + } + if(this.type==60){ + contentText='课程笔记评论' + } + // 点赞type + if(this.type==10){ + contentText='课程评论' + } + if(this.type==20){ + contentText='文章评论' + } + if(this.type==30){ + contentText='案例评论' + } if(this.userInfo.aid!=this.data.sysCreateAid){ let event = { key: "Praise",//后台的事件key 发布文章且审核通过 title: "点赞",//事件的标题 parameters:"author:"+this.data.sysCreateAid,//用户自定义参数 name:value,name:value - content: "点赞"+postData.title,//事件的内容 + content: "点赞了"+contentText,//事件的内容 objId: this.data.id,//关联的id objType: this.type,//关联的类型 objInfo: this.data.title,