Commit 0dba07f2 authored by zhangyanni's avatar zhangyanni

提交

parent a5f11654
......@@ -108,10 +108,11 @@
replyBy:this.isDeepReply?this.replyCreatedBy:undefined,
projectIds:data.projectIds.join(",")
};
let topicIdVal = data.topicId?data.topicId:null;
api.publishTopicDiscussAxios(params).then((res)=>{
if(res.code==0){
if(res.msgCode==0||res.msgCode==null){
this.$emit("showCommentVisible",res.result);
this.$emit("showCommentVisible",res.result,topicIdVal);
this.isEmpty = true;
}else{
this.$toast({
......
......@@ -490,9 +490,9 @@
},
//隐藏评论
showCommentVisible(data) {
showCommentVisible(data,topicId) {
this.commentVisible = false;
this.isHasGiveIntegralTopic("ITV001",5,data.id);
this.isHasGiveIntegralTopic("ITV001",5,data.id,topicId);
},
//用户是否在评论
......@@ -550,7 +550,7 @@
},
//是否弹积分
isHasGiveIntegralTopic(data,flag,id){
isHasGiveIntegralTopic(data,flag,id,topicId){
//ITV005点赞 //ITV001参与讨论 //ITV004分享
var that = this,params={
integralCode: data,
......@@ -563,6 +563,11 @@
if(res.result>0){
this.integral = res.result;
this.getIntegralVisible = true;
if(topicId){
setTimeout(function(){
that.$router.push({path:"/topicDetails",query:{id:topicId}})
},500)
}
}
}else{
this.$toast(res.msg);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment