加入点击发布 点赞 评论等打开弹窗
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;
|
||||
|
||||
@@ -116,7 +116,18 @@ const getList = () => {
|
||||
.finally(() => (loading = false))
|
||||
}
|
||||
|
||||
let user = inject("userInfo");
|
||||
let openAttest = inject("openAttest");
|
||||
const realname = inject("realname");
|
||||
|
||||
const handleLike = token => {
|
||||
console.log(realname.value == 0, user.value.uin > 0);
|
||||
|
||||
if (realname.value == 0 && user.value.uin > 0) {
|
||||
openAttest();
|
||||
return;
|
||||
}
|
||||
|
||||
if (isNeedLogin.value) {
|
||||
goLogin()
|
||||
return
|
||||
|
||||
@@ -29,18 +29,17 @@
|
||||
<el-autocomplete v-model="info.school" :fetch-suggestions="querySchoolSearch" clearable class="inline-input w-50" placeholder="输入关键词,选择院校" @select="handleSchoolSelect" :trigger-on-focus="false"></el-autocomplete>
|
||||
</div>
|
||||
</div>
|
||||
<div class="info-item flexacenter">
|
||||
<!-- <div class="info-item flexacenter">
|
||||
<div class="info-name">专业</div>
|
||||
<div class="flex1">
|
||||
<el-autocomplete v-model="info.profession" :fetch-suggestions="queryMajorSearch" clearable class="inline-input w-50" placeholder="输入关键词,选择专业" @select="handleMajorSelect" :trigger-on-focus="false"></el-autocomplete>
|
||||
</div>
|
||||
</div>
|
||||
</div> -->
|
||||
<div class="info-item flexacenter">
|
||||
<div class="info-name">项目</div>
|
||||
<div class="info-name">项目/专业</div>
|
||||
<div class="flex1">
|
||||
<el-autocomplete v-model="info.project" :fetch-suggestions="queryProjectSearch" clearable class="inline-input w-50" placeholder="输入关键词,选择项目" @select="handleProjectSelect" @input="handleProjectInput" :trigger-on-focus="false"></el-autocomplete>
|
||||
</div>
|
||||
<!-- <el-input class="flex1 input" placeholder="请输入" v-model="info.project"></el-input> -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -391,7 +390,7 @@ const abandonSaving = () => {
|
||||
|
||||
.info-box {
|
||||
// width: 452px;
|
||||
height: 158px;
|
||||
// height: 158px;
|
||||
background-color: rgba(255, 255, 255, 0);
|
||||
border: 1px solid rgba(215, 215, 215, 1);
|
||||
border-radius: 5px;
|
||||
|
||||
Reference in New Issue
Block a user