This commit is contained in:
zoujiandong 2025-07-16 14:30:03 +08:00
parent 96859c920f
commit 288772c534
5 changed files with 46 additions and 33 deletions

View File

@ -1,5 +1,9 @@
import App from './App' import App from './App'
import uviewPlus, { setConfig } from 'uview-plus' import uviewPlus, { setConfig } from 'uview-plus'
// #ifdef H5
import VConsole from 'vconsole';
const vConsole = new VConsole();
// #endif
// #ifndef VUE3 // #ifndef VUE3
import Vue from 'vue' import Vue from 'vue'
import './uni.promisify.adaptor' import './uni.promisify.adaptor'

View File

@ -11,6 +11,7 @@
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"dayjs": "^1.11.13", "dayjs": "^1.11.13",
"uview-plus": "^3.4.4" "uview-plus": "^3.4.4",
"vconsole": "^3.15.1"
} }
} }

View File

@ -795,6 +795,7 @@ const getArticleComment = (params) => {
...params, ...params,
}) })
.then((res) => { .then((res) => {
console.log(1)
paging.value.complete(res.data.data.data); paging.value.complete(res.data.data.data);
total.value = res.data.data.total; total.value = res.data.data.total;
setTimeout(() => { setTimeout(() => {
@ -1409,9 +1410,10 @@ const topArticleComment = (id) => {
icon: "none", icon: "none",
title: "置顶成功", title: "置顶成功",
}); });
});
showDeal.value = false; showDeal.value = false;
paging.value.refresh(); paging.value.refresh();
});
}; };
const topVideoComment = (id) => { const topVideoComment = (id) => {
api.topVideoComment(id).then((res) => { api.topVideoComment(id).then((res) => {
@ -1419,9 +1421,10 @@ const topVideoComment = (id) => {
icon: "none", icon: "none",
title: "置顶成功", title: "置顶成功",
}); });
});
showDeal.value = false; showDeal.value = false;
paging.value.refresh(); paging.value.refresh();
});
}; };
const topExchangeComment = (id) => { const topExchangeComment = (id) => {
api.topExchangeComment(id).then((res) => { api.topExchangeComment(id).then((res) => {
@ -1429,9 +1432,10 @@ const topExchangeComment = (id) => {
icon: "none", icon: "none",
title: "置顶成功", title: "置顶成功",
}); });
});
showDeal.value = false; showDeal.value = false;
paging.value.refresh(); paging.value.refresh();
});
}; };
const cancelTopArticleComment = (id) => { const cancelTopArticleComment = (id) => {
api.cancelTopArticleComment(id).then((res) => { api.cancelTopArticleComment(id).then((res) => {
@ -1439,9 +1443,10 @@ const cancelTopArticleComment = (id) => {
icon: "none", icon: "none",
title: "取消置顶成功", title: "取消置顶成功",
}); });
});
showDeal.value = false; showDeal.value = false;
paging.value.refresh(); paging.value.refresh();
});
}; };
const cancelTopVideoComment = (id) => { const cancelTopVideoComment = (id) => {
api.cancelTopArticleComment(id).then((res) => { api.cancelTopArticleComment(id).then((res) => {
@ -1449,9 +1454,10 @@ const cancelTopVideoComment = (id) => {
icon: "none", icon: "none",
title: "取消置顶成功", title: "取消置顶成功",
}); });
});
showDeal.value = false; showDeal.value = false;
paging.value.refresh(); paging.value.refresh();
});
}; };
const cancelTopExchangeComment = (id) => { const cancelTopExchangeComment = (id) => {
api.cancelTopExchangeComment(id).then((res) => { api.cancelTopExchangeComment(id).then((res) => {
@ -1459,9 +1465,10 @@ const cancelTopExchangeComment = (id) => {
icon: "none", icon: "none",
title: "取消置顶成功", title: "取消置顶成功",
}); });
});
showDeal.value = false; showDeal.value = false;
paging.value.refresh(); paging.value.refresh();
});
}; };
const delComment = () => { const delComment = () => {
showModal.value = true; showModal.value = true;

View File

@ -1 +1 @@
{"version":3,"file":"detail.js","sources":["../../software/HBuilderX.4.23.2024070804/HBuilderX/plugins/uniapp-cli-vite/uniPage:/cGFnZXMvZGV0YWlsL2RldGFpbC52dWU"],"sourcesContent":["import MiniProgramPage from 'D:/GitWorkPlace/caseDataBase/pages/detail/detail.vue'\nwx.createPage(MiniProgramPage)"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,GAAG,WAAW,eAAe;"}

View File

@ -258,6 +258,7 @@ const _sfc_main = {
...form, ...form,
...params ...params
}).then((res) => { }).then((res) => {
common_vendor.index.__f__("log", "at pages/detail/detail.vue:798", 1);
paging.value.complete(res.data.data.data); paging.value.complete(res.data.data.data);
total.value = res.data.data.total; total.value = res.data.data.total;
setTimeout(() => { setTimeout(() => {
@ -326,18 +327,18 @@ const _sfc_main = {
}; };
const close = () => { const close = () => {
showCommentDialog.value = false; showCommentDialog.value = false;
common_vendor.index.__f__("log", "at pages/detail/detail.vue:873", "close"); common_vendor.index.__f__("log", "at pages/detail/detail.vue:874", "close");
}; };
const openDeal = () => { const openDeal = () => {
showDeal.value = true; showDeal.value = true;
common_vendor.index.__f__("log", "at pages/detail/detail.vue:878", "open"); common_vendor.index.__f__("log", "at pages/detail/detail.vue:879", "open");
}; };
const closeDeal = () => { const closeDeal = () => {
showDeal.value = false; showDeal.value = false;
}; };
const openMore = () => { const openMore = () => {
showMore.value = true; showMore.value = true;
common_vendor.index.__f__("log", "at pages/detail/detail.vue:886", "open"); common_vendor.index.__f__("log", "at pages/detail/detail.vue:887", "open");
}; };
const closeMore = () => { const closeMore = () => {
showMore.value = false; showMore.value = false;
@ -375,12 +376,12 @@ const _sfc_main = {
success(res) { success(res) {
if (res.statusCode === 204) { if (res.statusCode === 204) {
let url = host + "/" + dir + filename + imgType; let url = host + "/" + dir + filename + imgType;
common_vendor.index.__f__("log", "at pages/detail/detail.vue:1237", url); common_vendor.index.__f__("log", "at pages/detail/detail.vue:1238", url);
imgList.value = [url]; imgList.value = [url];
} }
}, },
fail: (err) => { fail: (err) => {
common_vendor.index.__f__("log", "at pages/detail/detail.vue:1242", err); common_vendor.index.__f__("log", "at pages/detail/detail.vue:1243", err);
} }
}); });
}); });
@ -399,8 +400,8 @@ const _sfc_main = {
return "unknown"; return "unknown";
}; };
const afterRead = (file, lists, name) => { const afterRead = (file, lists, name) => {
common_vendor.index.__f__("log", "at pages/detail/detail.vue:1261", lists); common_vendor.index.__f__("log", "at pages/detail/detail.vue:1262", lists);
common_vendor.index.__f__("log", "at pages/detail/detail.vue:1262", name); common_vendor.index.__f__("log", "at pages/detail/detail.vue:1263", name);
handleUpload(file); handleUpload(file);
}; };
const delImg = (index) => { const delImg = (index) => {
@ -542,9 +543,9 @@ const _sfc_main = {
icon: "none", icon: "none",
title: "置顶成功" title: "置顶成功"
}); });
});
showDeal.value = false; showDeal.value = false;
paging.value.refresh(); paging.value.refresh();
});
}; };
const topVideoComment = (id2) => { const topVideoComment = (id2) => {
api_api.api.topVideoComment(id2).then((res) => { api_api.api.topVideoComment(id2).then((res) => {
@ -552,9 +553,9 @@ const _sfc_main = {
icon: "none", icon: "none",
title: "置顶成功" title: "置顶成功"
}); });
});
showDeal.value = false; showDeal.value = false;
paging.value.refresh(); paging.value.refresh();
});
}; };
const topExchangeComment = (id2) => { const topExchangeComment = (id2) => {
api_api.api.topExchangeComment(id2).then((res) => { api_api.api.topExchangeComment(id2).then((res) => {
@ -562,9 +563,9 @@ const _sfc_main = {
icon: "none", icon: "none",
title: "置顶成功" title: "置顶成功"
}); });
});
showDeal.value = false; showDeal.value = false;
paging.value.refresh(); paging.value.refresh();
});
}; };
const cancelTopArticleComment = (id2) => { const cancelTopArticleComment = (id2) => {
api_api.api.cancelTopArticleComment(id2).then((res) => { api_api.api.cancelTopArticleComment(id2).then((res) => {
@ -572,9 +573,9 @@ const _sfc_main = {
icon: "none", icon: "none",
title: "取消置顶成功" title: "取消置顶成功"
}); });
});
showDeal.value = false; showDeal.value = false;
paging.value.refresh(); paging.value.refresh();
});
}; };
const cancelTopVideoComment = (id2) => { const cancelTopVideoComment = (id2) => {
api_api.api.cancelTopArticleComment(id2).then((res) => { api_api.api.cancelTopArticleComment(id2).then((res) => {
@ -582,9 +583,9 @@ const _sfc_main = {
icon: "none", icon: "none",
title: "取消置顶成功" title: "取消置顶成功"
}); });
});
showDeal.value = false; showDeal.value = false;
paging.value.refresh(); paging.value.refresh();
});
}; };
const cancelTopExchangeComment = (id2) => { const cancelTopExchangeComment = (id2) => {
api_api.api.cancelTopExchangeComment(id2).then((res) => { api_api.api.cancelTopExchangeComment(id2).then((res) => {
@ -592,9 +593,9 @@ const _sfc_main = {
icon: "none", icon: "none",
title: "取消置顶成功" title: "取消置顶成功"
}); });
});
showDeal.value = false; showDeal.value = false;
paging.value.refresh(); paging.value.refresh();
});
}; };
const delComment = () => { const delComment = () => {
showModal.value = true; showModal.value = true;