我的笔记,对齐问题

This commit is contained in:
daihh
2022-10-31 15:20:39 +08:00
parent 72c747b236
commit f14d269fac
2 changed files with 29 additions and 1 deletions

View File

@@ -792,6 +792,19 @@
this.$message.info('已取消点赞'); this.$message.info('已取消点赞');
this.isPraise = false; this.isPraise = false;
this.courseInfo.praises--; 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 { } else {
this.$message.error('取消点赞失败,请稍后再试'); this.$message.error('取消点赞失败,请稍后再试');
} }
@@ -803,6 +816,19 @@
this.$message.success('点赞成功'); this.$message.success('点赞成功');
this.isPraise = true; this.isPraise = true;
this.courseInfo.praises++; 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 { } else {
this.$message.error('点赞失败,请稍后再试'); this.$message.error('点赞失败,请稍后再试');
} }

View File

@@ -79,7 +79,9 @@
<div class="all-footer"> <div class="all-footer">
<div> <div>
<div class="textbut-box"> <div class="textbut-box">
<interactBar v-if="item.type == 1" nodeWidth="60px" :readonly="true" :type="6" :data="item" :shares="false" :comments="false" :answers="true" :clickAnswer="true" :views="false"></interactBar> <div style="padding-top: 8px;">
<interactBar v-if="item.type == 1" nodeWidth="60px" :readonly="true" :type="6" :data="item" :shares="false" :comments="false" :answers="true" :clickAnswer="true" :views="false"></interactBar>
</div>
<el-button @click="deleteNote(item)" style=" margin-right: 10px;" class="textbut" type="text"><svg-icon icon-class="notedel" ></svg-icon>删除</el-button> <el-button @click="deleteNote(item)" style=" margin-right: 10px;" class="textbut" type="text"><svg-icon icon-class="notedel" ></svg-icon>删除</el-button>
<el-button @click="edit(item)" class="textbut" type="text"><svg-icon icon-class="noteedit" ></svg-icon> 编辑</el-button> <el-button @click="edit(item)" class="textbut" type="text"><svg-icon icon-class="noteedit" ></svg-icon> 编辑</el-button>
</div> </div>