From 8ed3680e5d805ec80bf12018d4285d4c517cf28e Mon Sep 17 00:00:00 2001 From: chenghuan Date: Thu, 13 Nov 2025 14:54:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=EF=BC=9A=E8=AF=BE=E7=A8=8B?= =?UTF-8?q?=E9=A6=96=E9=A1=B5=E5=A2=9E=E5=8A=A0=E2=80=9D=E5=88=86=E7=B1=BB?= =?UTF-8?q?=E2=80=9C=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/modules/cousre_subject_classification.ts | 55 ++ manifest.json | 4 +- pages/book/index.vue | 8 +- pages/course/index.vue | 522 +++++++++++++++---- static/soul/cate_bg.png | Bin 0 -> 1479 bytes types/search.d.ts | 57 ++ 6 files changed, 529 insertions(+), 117 deletions(-) create mode 100644 api/modules/cousre_subject_classification.ts create mode 100644 static/soul/cate_bg.png create mode 100644 types/search.d.ts diff --git a/api/modules/cousre_subject_classification.ts b/api/modules/cousre_subject_classification.ts new file mode 100644 index 0000000..7a4f8cd --- /dev/null +++ b/api/modules/cousre_subject_classification.ts @@ -0,0 +1,55 @@ +// api/modules/course.ts +import { createRequestClient } from '../request' +import { SERVICE_MAP } from '../config' +import type { + ICourseMedicalTreeResponse, + IUserLateCourseListResponse, + IMarketCourseListResponse +} from '@/types/course' +import type { ISearchRequest, ISearchResponse } from '@/types/search' + +const client = createRequestClient({ baseURL: SERVICE_MAP.MAIN }) + +/** + * 课程相关API + */ +export const courseSubjectClassificationApi = { + /** + * 医学 + * 获取课程分类树 + * @returns 分类数据 + */ + getCourseMedicalTree() { + return client.request({ + url: 'medical/home/getCourseMedicalTree', + method: 'POST', + data: {} + }) + }, + + /** + * 心理学 + * 获取课程分类树 + * @returns 分类数据 + */ + getCourseSoulTree() { + return client.request({ + url: 'psyche/home/getPsycheLabels', + method: 'POST', + data: { id: 0 } + }) + }, + + /** + * 国学 + * 获取课程分类树 + * @returns 分类数据 + */ + getCourseSociologyTree() { + return client.request({ + url: 'sociology/home/getSociologyLabels', + method: 'POST', + data: { id: 0 } + }) + } +} diff --git a/manifest.json b/manifest.json index 2bb601b..111a643 100644 --- a/manifest.json +++ b/manifest.json @@ -31,10 +31,12 @@ "permissions" : [ "", "", + "", "", "", "", - "" + "", + "" ], "abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ], "minSdkVersion" : 23, diff --git a/pages/book/index.vue b/pages/book/index.vue index 6614d5a..584db7e 100644 --- a/pages/book/index.vue +++ b/pages/book/index.vue @@ -1,7 +1,7 @@