From a7d803f63326f08736e66ddef677a79c53e8384f Mon Sep 17 00:00:00 2001 From: A1300399510 <1300399510@qq.com> Date: Tue, 4 Nov 2025 01:57:07 +0800 Subject: [PATCH] no message --- component/hot-search/hot-search.js | 2 +- component/hot-tag/hot-tag.js | 2 +- component/item-bottom/item-bottom.js | 5 ++-- component/item-head/item-head.js | 2 +- component/latest-list/latest-list.js | 4 +-- component/slideshow-box/slideshow-box.js | 2 +- css/edit.css | 12 +++++++- css/edit.less | 36 +++++++++++++++--------- 8 files changed, 43 insertions(+), 22 deletions(-) diff --git a/component/hot-search/hot-search.js b/component/hot-search/hot-search.js index 586c790..f12504f 100644 --- a/component/hot-search/hot-search.js +++ b/component/hot-search/hot-search.js @@ -12,7 +12,7 @@ export const hotSearch = defineComponent({ }); const init = () => { - ajaxget("/v2/api/forum/getHotSearchWords?limit=20").then((res) => { + ajaxGet("/v2/api/forum/getHotSearchWords?limit=20").then((res) => { const data = res.data; list.value = data || []; }); diff --git a/component/hot-tag/hot-tag.js b/component/hot-tag/hot-tag.js index e9136e2..d836ff8 100644 --- a/component/hot-tag/hot-tag.js +++ b/component/hot-tag/hot-tag.js @@ -12,7 +12,7 @@ export const hotTag = defineComponent({ }); const init = () => { - ajaxget("/v2/api/forum/getHotTags?limit=20").then((res) => { + ajaxGet("/v2/api/forum/getHotTags?limit=20").then((res) => { const data = res.data; list.value = data || []; }); diff --git a/component/item-bottom/item-bottom.js b/component/item-bottom/item-bottom.js index b212e8f..925a4be 100644 --- a/component/item-bottom/item-bottom.js +++ b/component/item-bottom/item-bottom.js @@ -100,12 +100,13 @@ export const itemBottom = defineComponent({ }; const copyLinkClick = () => { - copyForumUid(`http://14.22.79.19:9551/?tpl=forum/details&uniqid=${item.value.uniqid}`); + copyForumUid(`${location.origin}/details/${item.value.uniqid}`); }; + let QRcode = ref(""); const showQRcode = () => { if (QRcode.value) return - ajaxget(`/v2/api/forum/getQrcode?token=${item.value.token}`).then((res) => { + ajaxGet(`/v2/api/forum/getQrcode?token=${item.value.token}`).then((res) => { if (res.code != 200) return; const data = res.data || {}; QRcode.value = data.url || ""; diff --git a/component/item-head/item-head.js b/component/item-head/item-head.js index ceda266..e9dca42 100644 --- a/component/item-head/item-head.js +++ b/component/item-head/item-head.js @@ -90,7 +90,7 @@ export const itemHead = defineComponent({ }); }; - let cancelOperate = inject("cancelOperate"); + // let cancelOperate = inject("cancelOperate"); // 删除 const deleteItem = () => { diff --git a/component/latest-list/latest-list.js b/component/latest-list/latest-list.js index f88c82a..5df617e 100644 --- a/component/latest-list/latest-list.js +++ b/component/latest-list/latest-list.js @@ -41,7 +41,7 @@ export const latestList = defineComponent({ let latestList = ref([]); const getTopicLatest = () => { - ajaxget(`/v2/api/forum/getTopicLatest?type=thread`).then((res) => { + ajaxGet(`/v2/api/forum/getTopicLatest?type=thread`).then((res) => { const data = res.data; const list = data.thread || []; latestList.value = list; @@ -58,7 +58,7 @@ export const latestList = defineComponent({ let topList = ref([]); const topicHandpicked = () => { - ajaxget(`/v2/api/forum/topicLists?simple=1&best=1`).then((res) => { + ajaxGet(`/v2/api/forum/topicLists?simple=1&best=1`).then((res) => { const data = res.data; topList.value = data.data; nextTick(() => { diff --git a/component/slideshow-box/slideshow-box.js b/component/slideshow-box/slideshow-box.js index 4b45b68..427bd2d 100644 --- a/component/slideshow-box/slideshow-box.js +++ b/component/slideshow-box/slideshow-box.js @@ -21,7 +21,7 @@ export const slideshowBox = defineComponent({ let latestList = ref({}); const getTopicLatest = () => { - ajaxget(`/v2/api/forum/getTopicLatest?limit=4`).then((res) => { + ajaxGet(`/v2/api/forum/getTopicLatest?limit=4`).then((res) => { const data = res.data || []; (data.vote || []).forEach((item) => { if (!item.title) { diff --git a/css/edit.css b/css/edit.css index 1b5b2bc..9dc9790 100644 --- a/css/edit.css +++ b/css/edit.css @@ -50,7 +50,10 @@ border-radius: 10px; margin: 0 auto; } -#edit .edit-container .title-input { +#edit .edit-container .title-box { + position: relative; +} +#edit .edit-container .title-box .title-input { width: 100%; height: 100px; border: none; @@ -63,6 +66,13 @@ padding: 0 36px; border-bottom: 1px solid #ebebeb; } +#edit .edit-container .title-box .sum { + position: absolute; + bottom: 5px; + right: 5px; + color: #555; + font-size: 14px; +} #edit .edit-container .editor-toolbar { height: 36px; background-color: #fbfbfb; diff --git a/css/edit.less b/css/edit.less index b33bf7a..48c1e40 100644 --- a/css/edit.less +++ b/css/edit.less @@ -46,7 +46,6 @@ width: 32px; height: 32px; border-radius: 50%; - ; } } } @@ -58,18 +57,29 @@ border-radius: 10px; margin: 0 auto; - .title-input { - width: 100%; - height: 100px; - border: none; - outline: none; - border-radius: 10px 10px 0 0; - font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif; - font-weight: 650; - font-style: normal; - font-size: 24px; - padding: 0 36px; - border-bottom: 1px solid #ebebeb; + .title-box { + position: relative; + .title-input { + width: 100%; + height: 100px; + border: none; + outline: none; + border-radius: 10px 10px 0 0; + font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif; + font-weight: 650; + font-style: normal; + font-size: 24px; + padding: 0 36px; + border-bottom: 1px solid #ebebeb; + } + + .sum { + position: absolute; + bottom: 5px; + right: 5px; + color: #555; + font-size: 14px; + } } .editor-toolbar {