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

This commit is contained in:
DESKTOP-RQ919RC\Pc
2025-06-23 16:36:43 +08:00
parent 0c3eeec6ea
commit b5342122db
14 changed files with 139 additions and 63 deletions

View File

@@ -537,9 +537,16 @@ const handleInputPaste = (event, index, ii) => {
}
};
let openAttest = inject("openAttest");
const realname = inject("realname");
// 提交回答-评论
const submitAnswerComments = (index, i) => {
if (realname.value == 0 && user.value.uin > 0) {
openAttest();
return;
}
if (isNeedLogin.value) {
goLogin();
return;
@@ -641,6 +648,13 @@ const submitAnswerComments = (index, i) => {
// 回答-评论 点赞
const operateAnswerCommentsLike = (token, index, i) => {
console.log(realname.value == 0, user);
if (realname.value == 0 && user.value.uin > 0) {
openAttest();
return;
}
if (isNeedLogin.value) {
goLogin();
return;
@@ -667,7 +681,11 @@ const operateAnswerCommentsLike = (token, index, i) => {
// 打开 回答-评论 的子评论
const openAnswerCommentsChild = (index, i) => {
// console.log("isNeedLogin", isNeedLogin)
if (realname.value == 0 && user.value.uin > 0) {
openAttest();
return;
}
if (isNeedLogin.value) {
goLogin();
return;