From dd6ee001f1490d753a91e8fd58d57385496ca1a7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=89=AB=E5=9C=B0=E5=83=A7?= <357099073@qq.com>
Date: Thu, 25 Dec 2025 22:21:12 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=A8=8B=E5=BA=8F=E7=95=8C?=
=?UTF-8?q?=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
frontend/components.d.ts | 1 +
frontend/src/api/article.ts | 13 +
frontend/src/api/downloadGames.ts | 8 -
frontend/src/api/downloadPrograms.ts | 8 -
frontend/src/api/officeResources.ts | 8 -
frontend/src/api/resource.ts | 13 +
frontend/src/api/siteInformation.ts | 1 +
frontend/src/api/technicalArticles.ts | 1 +
frontend/src/router/index.ts | 11 +-
.../src/views/components/detail_article.vue | 353 +++++++++++++++
.../src/views/components/detail_resource.vue | 420 +++++++++++++++++
frontend/src/views/downloadGames/index.vue | 12 +-
.../src/views/downloadPrograms/detail.vue | 428 ------------------
frontend/src/views/downloadPrograms/index.vue | 14 +-
frontend/src/views/officeResources/index.vue | 8 +-
frontend/src/views/siteInformation/index.vue | 2 +-
.../src/views/technicalArticles/index.vue | 2 +-
17 files changed, 838 insertions(+), 465 deletions(-)
create mode 100644 frontend/src/api/article.ts
create mode 100644 frontend/src/api/resource.ts
create mode 100644 frontend/src/views/components/detail_article.vue
create mode 100644 frontend/src/views/components/detail_resource.vue
delete mode 100644 frontend/src/views/downloadPrograms/detail.vue
diff --git a/frontend/components.d.ts b/frontend/components.d.ts
index b81887b..f3d4178 100644
--- a/frontend/components.d.ts
+++ b/frontend/components.d.ts
@@ -23,6 +23,7 @@ declare module 'vue' {
ElIcon: typeof import('element-plus/es')['ElIcon']
ElInput: typeof import('element-plus/es')['ElInput']
ElPagination: typeof import('element-plus/es')['ElPagination']
+ ElTag: typeof import('element-plus/es')['ElTag']
HelloWorld: typeof import('./src/components/HelloWorld.vue')['default']
RouterLink: typeof import('vue-router')['RouterLink']
RouterView: typeof import('vue-router')['RouterView']
diff --git a/frontend/src/api/article.ts b/frontend/src/api/article.ts
new file mode 100644
index 0000000..ef031c9
--- /dev/null
+++ b/frontend/src/api/article.ts
@@ -0,0 +1,13 @@
+//进行接口API的统一管理
+import { request } from "./axios";
+
+export class article {
+ /**
+ * @description 获取article文章详情
+ * @param {string} id - 内容ID
+ * @return {Promise} 返回请求结果
+ */
+ static async getArticleDetail(id: string) {
+ return request("/index/articles/getArticleDetail", { id }, "get");
+ }
+}
diff --git a/frontend/src/api/downloadGames.ts b/frontend/src/api/downloadGames.ts
index c6450fa..4619990 100644
--- a/frontend/src/api/downloadGames.ts
+++ b/frontend/src/api/downloadGames.ts
@@ -28,12 +28,4 @@ export class downloadGames {
return request("/index/program/getDownloadGamesSimpleLists", { cateid }, "get");
}
- /**
- * @description 获取downloadGames文章详情
- * @param {string} id - 内容ID
- * @return {Promise} 返回请求结果
- */
- static async getDownloadGamesDetail(id: string) {
- return request("/index/program/getDownloadGamesDetail", { id }, "get");
- }
}
\ No newline at end of file
diff --git a/frontend/src/api/downloadPrograms.ts b/frontend/src/api/downloadPrograms.ts
index 91e7f55..9f273cd 100644
--- a/frontend/src/api/downloadPrograms.ts
+++ b/frontend/src/api/downloadPrograms.ts
@@ -36,12 +36,4 @@ export class downloadPrograms {
);
}
- /**
- * @description 获取downloadPrograms文章详情
- * @param {string} id - 内容ID
- * @return {Promise} 返回请求结果
- */
- static async getDownloadProgramsDetail(id: string) {
- return request("/index/program/getDownloadProgramsDetail", { id }, "get");
- }
}
diff --git a/frontend/src/api/officeResources.ts b/frontend/src/api/officeResources.ts
index cbed7ce..85f57ee 100644
--- a/frontend/src/api/officeResources.ts
+++ b/frontend/src/api/officeResources.ts
@@ -32,12 +32,4 @@ export class officeResources {
);
}
- /**
- * @description 获取officeResources文章详情
- * @param {string} id - 内容ID
- * @return {Promise} 返回请求结果
- */
- static async getOfficeResourcesDetail(id: string) {
- return request("/index/program/getOfficeResourcesDetail", { id }, "get");
- }
}
diff --git a/frontend/src/api/resource.ts b/frontend/src/api/resource.ts
new file mode 100644
index 0000000..2f368a7
--- /dev/null
+++ b/frontend/src/api/resource.ts
@@ -0,0 +1,13 @@
+//进行接口API的统一管理
+import { request } from "./axios";
+
+export class resource {
+ /**
+ * @description 获取resource文章详情
+ * @param {string} id - 内容ID
+ * @return {Promise} 返回请求结果
+ */
+ static async getResourceDetail(id: string) {
+ return request("/index/resources/getResourceDetail", { id }, "get");
+ }
+}
diff --git a/frontend/src/api/siteInformation.ts b/frontend/src/api/siteInformation.ts
index 140e2da..c36e035 100644
--- a/frontend/src/api/siteInformation.ts
+++ b/frontend/src/api/siteInformation.ts
@@ -18,4 +18,5 @@ export class siteInformation {
static async getSiteInformationLists(cateid: string) {
return request("/index/articles/getSiteInformationLists", { cateid }, "get");
}
+
}
\ No newline at end of file
diff --git a/frontend/src/api/technicalArticles.ts b/frontend/src/api/technicalArticles.ts
index ed06283..b3ec160 100644
--- a/frontend/src/api/technicalArticles.ts
+++ b/frontend/src/api/technicalArticles.ts
@@ -22,4 +22,5 @@ export class technicalArticles {
"get"
);
}
+
}
diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.ts
index cf238a9..6548475 100644
--- a/frontend/src/router/index.ts
+++ b/frontend/src/router/index.ts
@@ -33,9 +33,14 @@ const router = createRouter({
component: () => import("@/views/downloadPrograms/index.vue"),
},
{
- path: "/downloadPrograms/:id",
- name: "downloadProgramsDetail",
- component: () => import("@/views/downloadPrograms/detail.vue"),
+ path: "/article",
+ name: "articleDetail",
+ component: () => import("@/views/components/detail_article.vue"),
+ },
+ {
+ path: "/resource",
+ name: "resourceDetail",
+ component: () => import("@/views/components/detail_resource.vue"),
},
{
path: "/downloadGames",
diff --git a/frontend/src/views/components/detail_article.vue b/frontend/src/views/components/detail_article.vue
new file mode 100644
index 0000000..849bb3b
--- /dev/null
+++ b/frontend/src/views/components/detail_article.vue
@@ -0,0 +1,353 @@
+
+
+
+ {{ article.title }}
+
+
+
+
发现优质程序与工具
+发现优质游戏资源
发现优质程序与工具
+发现优质程序资源