命令行提交3
This commit is contained in:
+71
-21
@@ -1524,35 +1524,85 @@ const toggleCollect = throttle(() => {
|
||||
|
||||
const addArticleComment = (id, data) => {
|
||||
api.addArticleComment(id, data).then((res) => {
|
||||
uni.showToast({
|
||||
icon: "none",
|
||||
title: "评论成功",
|
||||
});
|
||||
clearComment();
|
||||
showCommentDialog.value = false;
|
||||
paging.value.refresh();
|
||||
if(res.data.data.status==1){
|
||||
uni.showToast({
|
||||
icon: "none",
|
||||
title: "评论成功",
|
||||
});
|
||||
clearComment();
|
||||
showCommentDialog.value = false;
|
||||
paging.value.refresh();
|
||||
}else if(res.data.data.status==2){
|
||||
uni.showToast({
|
||||
icon: "none",
|
||||
title: "评论成功,积分+5",
|
||||
});
|
||||
clearComment();
|
||||
showCommentDialog.value = false;
|
||||
paging.value.refresh();
|
||||
}else if(res.data.data.status==0){
|
||||
uni.showToast({
|
||||
icon: "none",
|
||||
title: "评论失败",
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
};
|
||||
const addVideoComment = (id, data) => {
|
||||
api.addVideoComment(id, data).then((res) => {
|
||||
uni.showToast({
|
||||
icon: "none",
|
||||
title: "评论成功",
|
||||
});
|
||||
clearComment();
|
||||
showCommentDialog.value = false;
|
||||
paging.value.refresh();
|
||||
if(res.data.data.status==1){
|
||||
uni.showToast({
|
||||
icon: "none",
|
||||
title: "评论成功",
|
||||
});
|
||||
clearComment();
|
||||
showCommentDialog.value = false;
|
||||
paging.value.refresh();
|
||||
}else if(res.data.data.status==2){
|
||||
uni.showToast({
|
||||
icon: "none",
|
||||
title: "评论成功,积分+5",
|
||||
});
|
||||
clearComment();
|
||||
showCommentDialog.value = false;
|
||||
paging.value.refresh();
|
||||
}else if(res.data.data.status==0){
|
||||
uni.showToast({
|
||||
icon: "none",
|
||||
title: "评论失败",
|
||||
});
|
||||
|
||||
}
|
||||
});
|
||||
};
|
||||
const addExchangeComment = (id, data) => {
|
||||
api.addExchangeComment(id, data).then((res) => {
|
||||
uni.showToast({
|
||||
icon: "none",
|
||||
title: "评论成功",
|
||||
});
|
||||
clearComment();
|
||||
showCommentDialog.value = false;
|
||||
paging.value.refresh();
|
||||
if(res.data.data.status==1){
|
||||
uni.showToast({
|
||||
icon: "none",
|
||||
title: "评论成功",
|
||||
});
|
||||
clearComment();
|
||||
showCommentDialog.value = false;
|
||||
paging.value.refresh();
|
||||
}else if(res.data.data.status==2){
|
||||
uni.showToast({
|
||||
icon: "none",
|
||||
title: "评论成功,积分+5",
|
||||
});
|
||||
clearComment();
|
||||
showCommentDialog.value = false;
|
||||
paging.value.refresh();
|
||||
}else if(res.data.data.status==0){
|
||||
uni.showToast({
|
||||
icon: "none",
|
||||
title: "评论失败",
|
||||
});
|
||||
|
||||
}
|
||||
});
|
||||
};
|
||||
const delArticleComment = (id) => {
|
||||
|
||||
Reference in New Issue
Block a user