From 79fcae4b39e30bad22e6293e3766113044a801e6 Mon Sep 17 00:00:00 2001 From: liutong <836164388@qq.com> Date: Tue, 8 Apr 2025 16:31:17 +0800 Subject: [PATCH] =?UTF-8?q?feat(course):=20=E6=95=99=E7=BB=83=E8=AF=BE?= =?UTF-8?q?=E7=A8=8B=E5=88=97=E8=A1=A8=E5=A2=9E=E5=8A=A0=E6=97=A5=E5=8E=86?= =?UTF-8?q?=E6=89=93=E7=82=B9=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 common.js 中添加 getMonthDate 方法,用于获取课表日历打点信息 - 在课程列表页面中集成该方法,实现日历打点数据的动态加载- 替换原有的静态打点数据,改为根据当前月份动态获取打点信息 --- api/common.js | 9 ++++++++ pages/coach/course/list.vue | 45 +++++++++++++++++++++++++++---------- 2 files changed, 42 insertions(+), 12 deletions(-) diff --git a/api/common.js b/api/common.js index 9448300..52f9cc2 100644 --- a/api/common.js +++ b/api/common.js @@ -41,6 +41,15 @@ export default { }) }, + //获取课表日历打点信息 + getMonthDate(data) { + let url = `/member/get_month_date` + return http.get(url,data).then(res => { + return res; + }) + }, + + } \ No newline at end of file diff --git a/pages/coach/course/list.vue b/pages/coach/course/list.vue index c70e2d3..3e90bce 100644 --- a/pages/coach/course/list.vue +++ b/pages/coach/course/list.vue @@ -211,6 +211,7 @@