加入点击发布 点赞 评论等打开弹窗
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user