fix: 修复用户主页跳转链接和投币组件z-index问题

refactor: 重构用户主页跳转逻辑使用uniqid替代uin/uid
style: 为列表加载框添加底部边距
fix: 调整投币组件z-index为10004避免被遮挡
refactor: 更新最新列表API接口地址
fix: 为搜索输入框添加maxlength限制
This commit is contained in:
DESKTOP-RQ919RC\Pc
2025-11-14 19:43:23 +08:00
parent ef98b2d1c4
commit 13c3c8026b
9 changed files with 16 additions and 38 deletions

View File

@@ -53,15 +53,14 @@ export const latestList = defineComponent({
let topList = ref([]);
const topicHandpicked = () => {
ajaxGet(`/v2/api/forum/topicLists?simple=1&best=1&limit=15`).then((res) => {
ajaxGet(`/v2/api/forum/getHomebestRecommend?limit=15&type=thread`).then((res) => {
const data = res.data;
topList.value = data.data;
console.log('data', data);
topList.value = data;
nextTick(() => {
count += 1;
examineCount();
if (props.boxtype == "essence") {
tabPostsItem("essence");
}
if (props.boxtype == "essence") tabPostsItem("essence");
});
});
};
@@ -78,30 +77,6 @@ export const latestList = defineComponent({
boxbox.classList.add(`box-${key}`);
boxbox.classList.remove(`box-${postsTab.value}`);
// let index = tabPostsArr.indexOf(key);
// 修改 tab 状态的
// if (postsTab.value) {
// let oldNode = boxbox.querySelector(`.slideshow-box .tab-item.${postsTab.value}`);
// oldNode.classList.toggle("pitch");
// boxbox.classList.remove(`box-${postsTab.value}`);
// }
// let targetTabNode = boxbox.querySelector(`.slideshow-box .tab-item.${key}`);
// targetTabNode.classList.toggle("pitch");
// // 修改全局背景状态的
// let targetContentNode = boxbox.querySelector(`.slideshow-content .${key}-side-box`);
// let targetContentHeight = targetContentNode.offsetHeight;
// boxbox.style.height = targetContentHeight + 66 + "px";
// let slideshowContent = boxbox.querySelector(".slideshow-content");
// slideshowContent.scrollTo({
// left: 290 * index,
// behavior: "smooth",
// });
postsTab.value = key;
};