no message

This commit is contained in:
A1300399510
2025-11-04 01:57:07 +08:00
parent 671732d277
commit a7d803f633
8 changed files with 43 additions and 22 deletions

View File

@@ -12,7 +12,7 @@ export const hotSearch = defineComponent({
}); });
const init = () => { const init = () => {
ajaxget("/v2/api/forum/getHotSearchWords?limit=20").then((res) => { ajaxGet("/v2/api/forum/getHotSearchWords?limit=20").then((res) => {
const data = res.data; const data = res.data;
list.value = data || []; list.value = data || [];
}); });

View File

@@ -12,7 +12,7 @@ export const hotTag = defineComponent({
}); });
const init = () => { const init = () => {
ajaxget("/v2/api/forum/getHotTags?limit=20").then((res) => { ajaxGet("/v2/api/forum/getHotTags?limit=20").then((res) => {
const data = res.data; const data = res.data;
list.value = data || []; list.value = data || [];
}); });

View File

@@ -100,12 +100,13 @@ export const itemBottom = defineComponent({
}; };
const copyLinkClick = () => { 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(""); let QRcode = ref("");
const showQRcode = () => { const showQRcode = () => {
if (QRcode.value) return 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; if (res.code != 200) return;
const data = res.data || {}; const data = res.data || {};
QRcode.value = data.url || ""; QRcode.value = data.url || "";

View File

@@ -90,7 +90,7 @@ export const itemHead = defineComponent({
}); });
}; };
let cancelOperate = inject("cancelOperate"); // let cancelOperate = inject("cancelOperate");
// 删除 // 删除
const deleteItem = () => { const deleteItem = () => {

View File

@@ -41,7 +41,7 @@ export const latestList = defineComponent({
let latestList = ref([]); let latestList = ref([]);
const getTopicLatest = () => { 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 data = res.data;
const list = data.thread || []; const list = data.thread || [];
latestList.value = list; latestList.value = list;
@@ -58,7 +58,7 @@ export const latestList = defineComponent({
let topList = ref([]); let topList = ref([]);
const topicHandpicked = () => { 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; const data = res.data;
topList.value = data.data; topList.value = data.data;
nextTick(() => { nextTick(() => {

View File

@@ -21,7 +21,7 @@ export const slideshowBox = defineComponent({
let latestList = ref({}); let latestList = ref({});
const getTopicLatest = () => { const getTopicLatest = () => {
ajaxget(`/v2/api/forum/getTopicLatest?limit=4`).then((res) => { ajaxGet(`/v2/api/forum/getTopicLatest?limit=4`).then((res) => {
const data = res.data || []; const data = res.data || [];
(data.vote || []).forEach((item) => { (data.vote || []).forEach((item) => {
if (!item.title) { if (!item.title) {

View File

@@ -50,7 +50,10 @@
border-radius: 10px; border-radius: 10px;
margin: 0 auto; margin: 0 auto;
} }
#edit .edit-container .title-input { #edit .edit-container .title-box {
position: relative;
}
#edit .edit-container .title-box .title-input {
width: 100%; width: 100%;
height: 100px; height: 100px;
border: none; border: none;
@@ -63,6 +66,13 @@
padding: 0 36px; padding: 0 36px;
border-bottom: 1px solid #ebebeb; 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 { #edit .edit-container .editor-toolbar {
height: 36px; height: 36px;
background-color: #fbfbfb; background-color: #fbfbfb;

View File

@@ -46,7 +46,6 @@
width: 32px; width: 32px;
height: 32px; height: 32px;
border-radius: 50%; border-radius: 50%;
;
} }
} }
} }
@@ -58,18 +57,29 @@
border-radius: 10px; border-radius: 10px;
margin: 0 auto; margin: 0 auto;
.title-input { .title-box {
width: 100%; position: relative;
height: 100px; .title-input {
border: none; width: 100%;
outline: none; height: 100px;
border-radius: 10px 10px 0 0; border: none;
font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif; outline: none;
font-weight: 650; border-radius: 10px 10px 0 0;
font-style: normal; font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif;
font-size: 24px; font-weight: 650;
padding: 0 36px; font-style: normal;
border-bottom: 1px solid #ebebeb; 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 { .editor-toolbar {