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