From 47929c9d3735be4584bfb2a0198f611ca977cd78 Mon Sep 17 00:00:00 2001
From: Xwen <929716663@qq.com>
Date: Tue, 26 Dec 2023 23:18:27 +0800
Subject: [PATCH] =?UTF-8?q?feat:=E9=A6=96=E9=A1=B5=E6=8E=A5=E5=85=A5?=
=?UTF-8?q?=E4=B8=BB=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Yi.Bbs.Vue3/src/views/home/Index.vue | 18 ++++++++++++++++--
1 file changed, 16 insertions(+), 2 deletions(-)
diff --git a/Yi.Bbs.Vue3/src/views/home/Index.vue b/Yi.Bbs.Vue3/src/views/home/Index.vue
index 4284b6e9..cfbe3b8c 100644
--- a/Yi.Bbs.Vue3/src/views/home/Index.vue
+++ b/Yi.Bbs.Vue3/src/views/home/Index.vue
@@ -30,9 +30,16 @@
+
+
+
+
+
+
+
+
-
@@ -143,7 +150,6 @@ import DisscussCard from "@/components/DisscussCard.vue";
import InfoCard from "@/components/InfoCard.vue";
import PlateCard from "@/components/PlateCard.vue";
import ScrollbarInfo from "@/components/ScrollbarInfo.vue";
-import AvatarInfo from "@/components/AvatarInfo.vue";
import BottomInfo from "@/components/BottomInfo.vue";
import VisitsLineChart from "./components/VisitsLineChart/index.vue";
import { access } from "@/apis/accessApi.js";
@@ -156,6 +162,7 @@ import {
getRecommendedFriend,
getRankingPoints,
} from "@/apis/analyseApi.js";
+import { getList as getAllDiscussList } from "@/apis/discussApi.js";
import PointsRanking from "./components/PointsRanking/index.vue";
import RecommendFriend from "./components/RecommendFriend/index.vue";
import ThemeData from "./components/RecommendTheme/index.vue";
@@ -168,6 +175,7 @@ const weekList = ref([]);
const pointList = ref([]);
const friendList = ref([]);
const themeList = ref([]);
+const allDiscussList = ref([]);
const items = [{ user: "用户1" }, { user: "用户2" }, { user: "用户3" }];
//主题查询参数
@@ -194,6 +202,12 @@ onMounted(async () => {
friendList.value = friendData;
const { data: themeData } = await getRecommendedTopic();
themeList.value = themeData;
+ const { data: allDiscussData } = await getAllDiscussList({
+ Type: 0,
+ skipCount: 1,
+ maxResultCount: 5,
+ });
+ allDiscussList.value = allDiscussData.items;
});
const weekXAxis = ["周一", "周二", "周三", "周四", "周五", "周六", "周日"];