修改跳转主页

This commit is contained in:
DESKTOP-RQ919RC\Pc
2025-11-19 16:26:33 +08:00
parent 7015a01902
commit 5ae2fdcc8f
38 changed files with 236 additions and 231 deletions

View File

@@ -52,12 +52,12 @@
</div>
</template>
<div class="avatar-box flexflex" v-if="info['uin'] || info['uid']">
<a class="avatar-item flexcenter" target="_blank" @click.prevent="sendMessage(info['uin'], info['uid'])">
<div class="avatar-box flexflex" v-if="authorInfo['uniqid']">
<a class="avatar-item flexcenter" target="_blank" @click.prevent="sendMessage(authorInfo['uniqid'])">
<img class="avatar-icon" src="@/assets/img/send-messages-icon.png" />
发送信息
</a>
<a class="avatar-item flexcenter" target="_blank" @click.prevent="TAHomePage(info['uin'], info['uid'])">
<a class="avatar-item flexcenter" target="_blank" @click.prevent="TAHomePage(authorInfo['uniqid'])">
<img class="avatar-icon" src="@/assets/img/homepage-icon.png" />
TA的主页
</a>
@@ -173,7 +173,8 @@
</div>
<template v-else>
<div class="respond-pop-title">
<span class="respond-pop-amount">{{ ripostecount.user }}</span>人回应
<span class="respond-pop-amount">{{ ripostecount.user }}</span
>人回应
<img class="respond-title-icon" @click="closePopList()" src="@/assets/img/cross-grey.png" />
</div>
<div class="respond-list">
@@ -473,6 +474,8 @@ provide("topicInfo", topicInfo);
provide("topicToken", topicToken);
let authorInfo = ref({});
const getTopicDetail = (uniqid) => {
topicDetailHttp({ uniqid }).then((res) => {
if (res.code != 200) {
@@ -482,6 +485,7 @@ const getTopicDetail = (uniqid) => {
let data = res.data;
topicToken.value = data.token;
console.log("topicDetail", data);
authorInfo.value = data.authorInfo;
const targetInfo = data.info;
if (!targetInfo.hidden) targetInfo.hidden = 0;
@@ -500,8 +504,7 @@ const getTopicDetail = (uniqid) => {
if (data.islogin) getTopicOperation();
getQrcode()
getQrcode();
});
};