Commit e8f92dc3 authored by anxixi's avatar anxixi

文章点赞

parent a11cd458
......@@ -277,7 +277,7 @@
this.getselectContentById(true);
}
if(params.addOrSubtractHot){
this.$refs.childintegral.getintegralCode('ITV005',row?row.id:params.contentId,row?4:3);
this.$refs.childintegral.getintegralContent('ITV005',row?row.id:params.contentId,row?4:3);
}
} else {
this.$message.error(response.msg);
......
......@@ -68,6 +68,21 @@
})
}
},
//文章积分签到
getintegralContent(datatype,id,state) {
api.integralCode(datatype).then((res) => {
if (res.code == 0) {
if(res.result!=0){
this.visible = true;
this.integral = res.result;
}
} else {
this.$message.error(res.msg);
}
}).catch((err) => {
this.$message.error(err);
})
},
//积分列表首次进入
getgiveEmpRandomIntegral(state){
api.giveEmpRandomIntegral({isFristGift:state}).then(response => {
......
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