命令行提交3
This commit is contained in:
@@ -198,10 +198,10 @@ const goDetail = (id) => {
|
||||
});
|
||||
};
|
||||
const videoErrorCallback = (e) => {
|
||||
uni.showModal({
|
||||
content: e.target.errMsg,
|
||||
showCancel: false
|
||||
})
|
||||
// uni.showModal({
|
||||
// content: e.target.errMsg,
|
||||
// showCancel: false
|
||||
// })
|
||||
};
|
||||
const searchList = async () => {
|
||||
let searchForm = {
|
||||
|
||||
+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) => {
|
||||
|
||||
@@ -600,10 +600,10 @@ const changeDate=(e)=>{
|
||||
paging.value.reload();
|
||||
}
|
||||
const videoErrorCallback = (e) => {
|
||||
uni.showModal({
|
||||
content: e.target.errMsg,
|
||||
showCancel: false,
|
||||
});
|
||||
// uni.showModal({
|
||||
// content: e.target.errMsg,
|
||||
// showCancel: false,
|
||||
// });
|
||||
};
|
||||
const changeWord = (val) => {
|
||||
if (!val) return false;
|
||||
|
||||
Reference in New Issue
Block a user