1
This commit is contained in:
		
							parent
							
								
									df1459aca1
								
							
						
					
					
						commit
						91c38e8b9d
					
				
							
								
								
									
										
											BIN
										
									
								
								src/assets/images/avatar/default.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								src/assets/images/avatar/default.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| 
		 After Width: | Height: | Size: 4.9 KiB  | 
| 
						 | 
				
			
			@ -4,9 +4,8 @@ import {
 | 
			
		|||
  getGroupUserListFromTriangle,
 | 
			
		||||
  getGroupUserListFromSocial
 | 
			
		||||
} from "@/service/api/linkPrediction";
 | 
			
		||||
import testAvatar from "@/assets/anchorAvatar/aichuidunhaitao-tingenqifu.png";
 | 
			
		||||
import test1Avatar from "@/assets/anchorAvatar/fei_die_gg.png";
 | 
			
		||||
import test2Avatar from "@/assets/anchorAvatar/qianjuzhangbenren.png";
 | 
			
		||||
 | 
			
		||||
import defaultAvatar from "@/assets/images/avatar/default.png";
 | 
			
		||||
import { ElMessage } from "element-plus";
 | 
			
		||||
 | 
			
		||||
export const useCharacterInteractionStore = defineStore("characterInteraction", {
 | 
			
		||||
| 
						 | 
				
			
			@ -266,9 +265,9 @@ export const useSocialGroupsStore = defineStore("socialGroups", {
 | 
			
		|||
      {
 | 
			
		||||
        id: 1,
 | 
			
		||||
        group: [
 | 
			
		||||
          { id: 1, name: "Polo Hun", avatar: test1Avatar, fancy: 634, post: 32 },
 | 
			
		||||
          { id: 2, name: "楊政子", avatar: test1Avatar, fancy: 5556, post: 23 },
 | 
			
		||||
          { id: 3, name: "楊政子", avatar: test1Avatar, fancy: 5556, post: 23 }
 | 
			
		||||
          { id: 1, name: "Polo Hun", avatar: defaultAvatar, fancy: 634, post: 32 },
 | 
			
		||||
          { id: 2, name: "楊政子", avatar: defaultAvatar, fancy: 5556, post: 23 },
 | 
			
		||||
          { id: 3, name: "楊政子", avatar: defaultAvatar, fancy: 5556, post: 23 }
 | 
			
		||||
        ],
 | 
			
		||||
        number: "0.60"
 | 
			
		||||
      },
 | 
			
		||||
| 
						 | 
				
			
			@ -278,21 +277,21 @@ export const useSocialGroupsStore = defineStore("socialGroups", {
 | 
			
		|||
          {
 | 
			
		||||
            id: 7,
 | 
			
		||||
            name: "一人一讚 馬總統感恩有您 永遠支...",
 | 
			
		||||
            avatar: test1Avatar,
 | 
			
		||||
            avatar: defaultAvatar,
 | 
			
		||||
            fancy: 0,
 | 
			
		||||
            post: 0
 | 
			
		||||
          },
 | 
			
		||||
          {
 | 
			
		||||
            id: 8,
 | 
			
		||||
            name: "一人一讚 馬總統感恩有您 永遠支...",
 | 
			
		||||
            avatar: test1Avatar,
 | 
			
		||||
            avatar: defaultAvatar,
 | 
			
		||||
            fancy: 564,
 | 
			
		||||
            post: 13
 | 
			
		||||
          },
 | 
			
		||||
          {
 | 
			
		||||
            id: 9,
 | 
			
		||||
            name: "一人一讚 馬總統感恩有您 永遠支...",
 | 
			
		||||
            avatar: test1Avatar,
 | 
			
		||||
            avatar: defaultAvatar,
 | 
			
		||||
            fancy: 564,
 | 
			
		||||
            post: 13
 | 
			
		||||
          }
 | 
			
		||||
| 
						 | 
				
			
			@ -305,21 +304,21 @@ export const useSocialGroupsStore = defineStore("socialGroups", {
 | 
			
		|||
          {
 | 
			
		||||
            id: 10,
 | 
			
		||||
            name: "一人一讚 馬總統感恩有您 永遠支...",
 | 
			
		||||
            avatar: test1Avatar,
 | 
			
		||||
            avatar: defaultAvatar,
 | 
			
		||||
            fancy: 0,
 | 
			
		||||
            post: 0
 | 
			
		||||
          },
 | 
			
		||||
          {
 | 
			
		||||
            id: 11,
 | 
			
		||||
            name: "一人一讚 馬總統感恩有您 永遠支...",
 | 
			
		||||
            avatar: test1Avatar,
 | 
			
		||||
            avatar: defaultAvatar,
 | 
			
		||||
            fancy: 564,
 | 
			
		||||
            post: 13
 | 
			
		||||
          },
 | 
			
		||||
          {
 | 
			
		||||
            id: 12,
 | 
			
		||||
            name: "一人一讚 馬總統感恩有您 永遠支...",
 | 
			
		||||
            avatar: test1Avatar,
 | 
			
		||||
            avatar: defaultAvatar,
 | 
			
		||||
            fancy: 564,
 | 
			
		||||
            post: 13
 | 
			
		||||
          }
 | 
			
		||||
| 
						 | 
				
			
			@ -573,8 +572,8 @@ export const useCharacterHiddenStore = defineStore("characterHidden", {
 | 
			
		|||
      {
 | 
			
		||||
        id: 1,
 | 
			
		||||
        group: [
 | 
			
		||||
          { id: 1, name: "Polo Hun", avatar: test2Avatar, fancy: 634, post: 32 },
 | 
			
		||||
          { id: 2, name: "楊政子", avatar: test2Avatar, fancy: 5556, post: 23 }
 | 
			
		||||
          { id: 1, name: "Polo Hun", avatar: defaultAvatar, fancy: 634, post: 32 },
 | 
			
		||||
          { id: 2, name: "楊政子", avatar: defaultAvatar, fancy: 5556, post: 23 }
 | 
			
		||||
        ],
 | 
			
		||||
        number: "0.36"
 | 
			
		||||
      },
 | 
			
		||||
| 
						 | 
				
			
			@ -584,14 +583,14 @@ export const useCharacterHiddenStore = defineStore("characterHidden", {
 | 
			
		|||
          {
 | 
			
		||||
            id: 7,
 | 
			
		||||
            name: "一人一讚 馬總統感恩有您 永遠支...",
 | 
			
		||||
            avatar: test2Avatar,
 | 
			
		||||
            avatar: defaultAvatar,
 | 
			
		||||
            fancy: 0,
 | 
			
		||||
            post: 0
 | 
			
		||||
          },
 | 
			
		||||
          {
 | 
			
		||||
            id: 8,
 | 
			
		||||
            name: "一人一讚 馬總統感恩有您 永遠支...",
 | 
			
		||||
            avatar: test2Avatar,
 | 
			
		||||
            avatar: defaultAvatar,
 | 
			
		||||
            fancy: 564,
 | 
			
		||||
            post: 13
 | 
			
		||||
          }
 | 
			
		||||
| 
						 | 
				
			
			@ -604,14 +603,14 @@ export const useCharacterHiddenStore = defineStore("characterHidden", {
 | 
			
		|||
          {
 | 
			
		||||
            id: 9,
 | 
			
		||||
            name: "一人一讚 馬總統感恩有您 永遠支...",
 | 
			
		||||
            avatar: test2Avatar,
 | 
			
		||||
            avatar: defaultAvatar,
 | 
			
		||||
            fancy: 0,
 | 
			
		||||
            post: 0
 | 
			
		||||
          },
 | 
			
		||||
          {
 | 
			
		||||
            id: 10,
 | 
			
		||||
            name: "一人一讚 馬總統感恩有您 永遠支...",
 | 
			
		||||
            avatar: test2Avatar,
 | 
			
		||||
            avatar: defaultAvatar,
 | 
			
		||||
            fancy: 564,
 | 
			
		||||
            post: 13
 | 
			
		||||
          }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -96,10 +96,6 @@ const handleOpenPostDialog = (post) => {
 | 
			
		|||
  currentPostPost.value = post;
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
onMounted(() => {
 | 
			
		||||
  interactionStore.initGroupList();
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
onMounted(() => {
 | 
			
		||||
  interactionStore.initGroupList();
 | 
			
		||||
});
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -8,7 +8,7 @@
 | 
			
		|||
          @click="handleUserItem(index, group)"
 | 
			
		||||
          :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
 | 
			
		||||
              src="@/assets/images/linkPrediction/title/group-item-title.png"
 | 
			
		||||
              class="group-type-back"
 | 
			
		||||
| 
						 | 
				
			
			@ -16,7 +16,7 @@
 | 
			
		|||
            <div class="group-type-content">{{ group.type }}</div>
 | 
			
		||||
          </div>
 | 
			
		||||
          <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="username">{{ child.userName }}</div>
 | 
			
		||||
              <div class="userState">
 | 
			
		||||
| 
						 | 
				
			
			@ -39,8 +39,8 @@
 | 
			
		|||
 | 
			
		||||
<script setup>
 | 
			
		||||
import { defineProps, defineEmits, ref } from "vue";
 | 
			
		||||
import defaultAvatar from "@/assets/images/avatar/default.png";
 | 
			
		||||
const curUserGroupIndex = ref(0);
 | 
			
		||||
 | 
			
		||||
const emit = defineEmits(["click:selectedGroup"]);
 | 
			
		||||
const props = defineProps({
 | 
			
		||||
  userList: {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user