加入点击发布 点赞 评论等打开弹窗
This commit is contained in:
@@ -162,11 +162,11 @@
|
||||
<a class="details-value flex1" target="_blank" :href="info['school']?.['url']">{{ info["school"]?.name }}</a>
|
||||
</div>
|
||||
<div class="details-list-item flexacenter" v-if="info['profession']">
|
||||
<div class="details-name">专业</div>
|
||||
<div class="details-name">{{ info["project"] ? "" : "项目/" }}专业</div>
|
||||
<div class="details-value flex1">{{ info["profession"] }}</div>
|
||||
</div>
|
||||
<div class="details-list-item flexacenter" v-if="info['project']">
|
||||
<div class="details-name">项目</div>
|
||||
<div class="details-name">项目{{ info["profession"] ? "" : "/专业" }}</div>
|
||||
<div class="details-value flex1">{{ info["project"] }}</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -700,6 +700,9 @@ let user = inject("userInfo");
|
||||
let isNeedLogin = inject("isNeedLogin");
|
||||
const goLogin = inject("goLogin");
|
||||
|
||||
let openAttest = inject("openAttest");
|
||||
const realname = inject("realname");
|
||||
|
||||
useHead({ script: [{ src: "https://app.gter.net/bottom?tpl=header&menukey=mj" }, { src: "https://app.gter.net/bottom?tpl=footer,popupnotification", body: true }] });
|
||||
|
||||
let contentRightRef = ref(null);
|
||||
@@ -1000,6 +1003,11 @@ const handleCommentsScroll = (e) => {
|
||||
|
||||
// 评论点赞
|
||||
const commentLike = (index, i) => {
|
||||
if (realname.value == 0 && user.value.uin > 0) {
|
||||
openAttest();
|
||||
return;
|
||||
}
|
||||
|
||||
if (isNeedLogin.value) {
|
||||
goLogin();
|
||||
return;
|
||||
@@ -1051,6 +1059,11 @@ const handleScroll = () => {
|
||||
|
||||
// 打开 回答-评论 的子评论
|
||||
const openAnswerCommentsChild = (index, i) => {
|
||||
if (realname.value == 0 && user.value.uin > 0) {
|
||||
openAttest();
|
||||
return;
|
||||
}
|
||||
|
||||
if (isNeedLogin.value) {
|
||||
goLogin();
|
||||
return;
|
||||
@@ -1063,6 +1076,10 @@ const openAnswerCommentsChild = (index, i) => {
|
||||
|
||||
// 关闭 回答-评论 的子评论
|
||||
const closeAnswerCommentsChild = () => {
|
||||
if (realname.value == 0 && user.value.uin > 0) {
|
||||
openAttest();
|
||||
return;
|
||||
}
|
||||
commentInput.value = "";
|
||||
commentList.value.forEach((ele) => {
|
||||
ele["childState"] = false;
|
||||
@@ -1082,6 +1099,10 @@ let commentInput = ref("");
|
||||
|
||||
// 提交回答-评论
|
||||
const submitAnswerComments = (content, index, i) => {
|
||||
if (realname.value == 0 && user.value.uin > 0) {
|
||||
openAttest();
|
||||
return;
|
||||
}
|
||||
if (isNeedLogin.value) {
|
||||
goLogin();
|
||||
return;
|
||||
@@ -1221,6 +1242,10 @@ let copyText = (text) => {
|
||||
|
||||
// 点击点赞
|
||||
const handleLike = () => {
|
||||
if (realname.value == 0 && user.value.uin > 0) {
|
||||
openAttest();
|
||||
return;
|
||||
}
|
||||
if (islike.value) {
|
||||
ElMessage.error("不可取消点赞");
|
||||
return;
|
||||
@@ -2153,6 +2178,7 @@ const selectEditEmoji = (key) => {
|
||||
};
|
||||
|
||||
const postEditComment = () => {
|
||||
|
||||
if (isNeedLogin.value) {
|
||||
goLogin();
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user