加入点击发布 点赞 评论等打开弹窗

This commit is contained in:
DESKTOP-RQ919RC\Pc
2025-06-23 16:36:53 +08:00
parent 5b96c49b44
commit 67d4082297
85 changed files with 705 additions and 573 deletions

View File

@@ -699,6 +699,8 @@ try {
seo.value = data.seo;
} else {
await detailsHttp({ uniqid: id }).then((res) => {
console.log("res", res);
if (res.code == 200) {
let data = res.data;
info.value = data["info"];

View File

@@ -125,8 +125,17 @@ const handleScroll = () => {
if (scrollTop + clientHeight >= scrollHeight - 40) getList()
}
const userInfoWin = inject("userInfoWin");
let openAttest = inject("openAttest");
const realname = inject("realname");
// 处理点赞
const handleLike = (token, index) => {
if (realname.value == 0 && userInfoWin.value.uin > 0) {
openAttest();
return;
}
if (isNeedLogin.value) {
goLogin()
return
@@ -167,6 +176,8 @@ try {
if (process.server) {
await getListHttp({ page: 1, keyword: keyword.value }).then(res => {
let data = res.data
console.log("111", data);
// data.data.forEach((element, index) => {
// let uniqidEnd = element["uniqid"].charAt(element["uniqid"].length - 1)
// element["uniqidIndex"] = base62ToDecimal(uniqidEnd) % 6