mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-10 19:36:43 +08:00
我的笔记,对齐问题
This commit is contained in:
@@ -792,6 +792,19 @@
|
||||
this.$message.info('已取消点赞');
|
||||
this.isPraise = false;
|
||||
this.courseInfo.praises--;
|
||||
let event = {
|
||||
key: "CancelPraise",//点赞
|
||||
title: "取消点赞",//事件的标题
|
||||
parameters:"author:"+this.courseInfo.sysCreateAid,//用户自定义参数 name:value,name:value
|
||||
content: "取消点赞课程",//事件的内容
|
||||
objId: this.courseId,//关联的id
|
||||
objType: "1",//关联的类型
|
||||
objInfo: this.courseInfo.name,
|
||||
aid: this.userInfo.aid, //当前登录人的id
|
||||
aname: this.userInfo.name,//当前人的姓名
|
||||
status: 1 //状态,直接写1
|
||||
}
|
||||
this.$store.dispatch("userTrigger", event);
|
||||
} else {
|
||||
this.$message.error('取消点赞失败,请稍后再试');
|
||||
}
|
||||
@@ -803,6 +816,19 @@
|
||||
this.$message.success('点赞成功');
|
||||
this.isPraise = true;
|
||||
this.courseInfo.praises++;
|
||||
let event = {
|
||||
key: "Praise",//点赞
|
||||
title: "点赞",//事件的标题
|
||||
parameters:"author:"+this.courseInfo.sysCreateAid,//用户自定义参数 name:value,name:value
|
||||
content: "点赞了课程",//事件的内容
|
||||
objId: this.courseId,//关联的id
|
||||
objType: "1",//关联的类型
|
||||
objInfo: this.courseInfo.name,
|
||||
aid: this.userInfo.aid, //当前登录人的id
|
||||
aname: this.userInfo.name,//当前人的姓名
|
||||
status: 1 //状态,直接写1
|
||||
}
|
||||
this.$store.dispatch("userTrigger", event);
|
||||
} else {
|
||||
this.$message.error('点赞失败,请稍后再试');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user