This commit is contained in:
qumeng039@126.com 2025-07-23 16:10:36 +08:00
parent df1459aca1
commit 91c38e8b9d
4 changed files with 20 additions and 25 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

View File

@ -4,9 +4,8 @@ import {
getGroupUserListFromTriangle, getGroupUserListFromTriangle,
getGroupUserListFromSocial getGroupUserListFromSocial
} from "@/service/api/linkPrediction"; } from "@/service/api/linkPrediction";
import testAvatar from "@/assets/anchorAvatar/aichuidunhaitao-tingenqifu.png";
import test1Avatar from "@/assets/anchorAvatar/fei_die_gg.png"; import defaultAvatar from "@/assets/images/avatar/default.png";
import test2Avatar from "@/assets/anchorAvatar/qianjuzhangbenren.png";
import { ElMessage } from "element-plus"; import { ElMessage } from "element-plus";
export const useCharacterInteractionStore = defineStore("characterInteraction", { export const useCharacterInteractionStore = defineStore("characterInteraction", {
@ -266,9 +265,9 @@ export const useSocialGroupsStore = defineStore("socialGroups", {
{ {
id: 1, id: 1,
group: [ group: [
{ id: 1, name: "Polo Hun", avatar: test1Avatar, fancy: 634, post: 32 }, { id: 1, name: "Polo Hun", avatar: defaultAvatar, fancy: 634, post: 32 },
{ id: 2, name: "楊政子", avatar: test1Avatar, fancy: 5556, post: 23 }, { id: 2, name: "楊政子", avatar: defaultAvatar, fancy: 5556, post: 23 },
{ id: 3, name: "楊政子", avatar: test1Avatar, fancy: 5556, post: 23 } { id: 3, name: "楊政子", avatar: defaultAvatar, fancy: 5556, post: 23 }
], ],
number: "0.60" number: "0.60"
}, },
@ -278,21 +277,21 @@ export const useSocialGroupsStore = defineStore("socialGroups", {
{ {
id: 7, id: 7,
name: "一人一讚 馬總統感恩有您 永遠支...", name: "一人一讚 馬總統感恩有您 永遠支...",
avatar: test1Avatar, avatar: defaultAvatar,
fancy: 0, fancy: 0,
post: 0 post: 0
}, },
{ {
id: 8, id: 8,
name: "一人一讚 馬總統感恩有您 永遠支...", name: "一人一讚 馬總統感恩有您 永遠支...",
avatar: test1Avatar, avatar: defaultAvatar,
fancy: 564, fancy: 564,
post: 13 post: 13
}, },
{ {
id: 9, id: 9,
name: "一人一讚 馬總統感恩有您 永遠支...", name: "一人一讚 馬總統感恩有您 永遠支...",
avatar: test1Avatar, avatar: defaultAvatar,
fancy: 564, fancy: 564,
post: 13 post: 13
} }
@ -305,21 +304,21 @@ export const useSocialGroupsStore = defineStore("socialGroups", {
{ {
id: 10, id: 10,
name: "一人一讚 馬總統感恩有您 永遠支...", name: "一人一讚 馬總統感恩有您 永遠支...",
avatar: test1Avatar, avatar: defaultAvatar,
fancy: 0, fancy: 0,
post: 0 post: 0
}, },
{ {
id: 11, id: 11,
name: "一人一讚 馬總統感恩有您 永遠支...", name: "一人一讚 馬總統感恩有您 永遠支...",
avatar: test1Avatar, avatar: defaultAvatar,
fancy: 564, fancy: 564,
post: 13 post: 13
}, },
{ {
id: 12, id: 12,
name: "一人一讚 馬總統感恩有您 永遠支...", name: "一人一讚 馬總統感恩有您 永遠支...",
avatar: test1Avatar, avatar: defaultAvatar,
fancy: 564, fancy: 564,
post: 13 post: 13
} }
@ -573,8 +572,8 @@ export const useCharacterHiddenStore = defineStore("characterHidden", {
{ {
id: 1, id: 1,
group: [ group: [
{ id: 1, name: "Polo Hun", avatar: test2Avatar, fancy: 634, post: 32 }, { id: 1, name: "Polo Hun", avatar: defaultAvatar, fancy: 634, post: 32 },
{ id: 2, name: "楊政子", avatar: test2Avatar, fancy: 5556, post: 23 } { id: 2, name: "楊政子", avatar: defaultAvatar, fancy: 5556, post: 23 }
], ],
number: "0.36" number: "0.36"
}, },
@ -584,14 +583,14 @@ export const useCharacterHiddenStore = defineStore("characterHidden", {
{ {
id: 7, id: 7,
name: "一人一讚 馬總統感恩有您 永遠支...", name: "一人一讚 馬總統感恩有您 永遠支...",
avatar: test2Avatar, avatar: defaultAvatar,
fancy: 0, fancy: 0,
post: 0 post: 0
}, },
{ {
id: 8, id: 8,
name: "一人一讚 馬總統感恩有您 永遠支...", name: "一人一讚 馬總統感恩有您 永遠支...",
avatar: test2Avatar, avatar: defaultAvatar,
fancy: 564, fancy: 564,
post: 13 post: 13
} }
@ -604,14 +603,14 @@ export const useCharacterHiddenStore = defineStore("characterHidden", {
{ {
id: 9, id: 9,
name: "一人一讚 馬總統感恩有您 永遠支...", name: "一人一讚 馬總統感恩有您 永遠支...",
avatar: test2Avatar, avatar: defaultAvatar,
fancy: 0, fancy: 0,
post: 0 post: 0
}, },
{ {
id: 10, id: 10,
name: "一人一讚 馬總統感恩有您 永遠支...", name: "一人一讚 馬總統感恩有您 永遠支...",
avatar: test2Avatar, avatar: defaultAvatar,
fancy: 564, fancy: 564,
post: 13 post: 13
} }

View File

@ -96,10 +96,6 @@ const handleOpenPostDialog = (post) => {
currentPostPost.value = post; currentPostPost.value = post;
}; };
onMounted(() => {
interactionStore.initGroupList();
});
onMounted(() => { onMounted(() => {
interactionStore.initGroupList(); interactionStore.initGroupList();
}); });

View File

@ -8,7 +8,7 @@
@click="handleUserItem(index, group)" @click="handleUserItem(index, group)"
:class="{ active: curUserGroupIndex == index }" :class="{ active: curUserGroupIndex == index }"
> >
<div class="group-type" v-if="group.list.length > 2"> <div class="group-type" v-if="group.list.length > 2 && group.title != ' '">
<img <img
src="@/assets/images/linkPrediction/title/group-item-title.png" src="@/assets/images/linkPrediction/title/group-item-title.png"
class="group-type-back" class="group-type-back"
@ -16,7 +16,7 @@
<div class="group-type-content">{{ group.type }}</div> <div class="group-type-content">{{ group.type }}</div>
</div> </div>
<div class="user-list-item" v-for="child in group.list" :key="child.id"> <div class="user-list-item" v-for="child in group.list" :key="child.id">
<img :src="child.avatarPath" alt="" class="avatar" /> <img :src="defaultAvatar" alt="" class="avatar" />
<div class="user-info"> <div class="user-info">
<div class="username">{{ child.userName }}</div> <div class="username">{{ child.userName }}</div>
<div class="userState"> <div class="userState">
@ -39,8 +39,8 @@
<script setup> <script setup>
import { defineProps, defineEmits, ref } from "vue"; import { defineProps, defineEmits, ref } from "vue";
import defaultAvatar from "@/assets/images/avatar/default.png";
const curUserGroupIndex = ref(0); const curUserGroupIndex = ref(0);
const emit = defineEmits(["click:selectedGroup"]); const emit = defineEmits(["click:selectedGroup"]);
const props = defineProps({ const props = defineProps({
userList: { userList: {