From 22c3a2bb4a18eda3dce5c5a784e49eee397e5556 Mon Sep 17 00:00:00 2001 From: ywyonui Date: Fri, 13 Jun 2025 15:52:25 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E8=B0=83=E6=95=B4=E9=A6=96=E9=A1=B5?= =?UTF-8?q?=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config.ts | 4 ++-- src/pages/base/home/index.vue | 26 +++++++++++++--------- src/pages/system/launchPage/launchPage.vue | 4 ++++ 3 files changed, 22 insertions(+), 12 deletions(-) diff --git a/src/config.ts b/src/config.ts index d6af5b8..57b6eb9 100644 --- a/src/config.ts +++ b/src/config.ts @@ -1,5 +1,5 @@ -// const ip: string = "119.29.194.155:8893"; -const ip: string = "yufangzc.com"; +const ip: string = "192.168.239.1:8897"; +// const ip: string = "yufangzc.com"; const fwqip: string = "yufangzc.com"; //打包服务器接口代理标识 const SERVERAGENT: string = "/jzd-api"; diff --git a/src/pages/base/home/index.vue b/src/pages/base/home/index.vue index 2d4364e..d4039e4 100644 --- a/src/pages/base/home/index.vue +++ b/src/pages/base/home/index.vue @@ -16,7 +16,7 @@ - + 切换 @@ -140,12 +140,23 @@ const menuItems = ref([ path: "/pages/base/class-schedule/index", }, { - title: "在线请假", - icon: "/static/base/home/draft-line.png", - path: "/pages/base/leave-request/index", + title: "成绩查询", + icon: "/static/base/home/file-search-line.png", + path: "/pages/base/grades/index", }, + // { + // title: "在线请假", + // icon: "/static/base/home/draft-line.png", + // path: "/pages/base/leave-request/index", + // }, + // TODO:需求待协商硬件对接 + // { + // title: "进出校园", + // icon: "/static/base/home/file-transfer-line.png", + // path: "/pages/base/campus-access/index", + // }, { - title: "进出校园", + title: "家校沟通", icon: "/static/base/home/file-transfer-line.png", path: "/pages/base/campus-access/index", }, @@ -159,11 +170,6 @@ const menuItems = ref([ icon: "/static/base/home/contacts-book-3-line.png", path: "/pages/base/club/index", }, - { - title: "成绩查询", - icon: "/static/base/home/file-search-line.png", - path: "/pages/base/grades/index", - }, ]); // 通知公告数据 diff --git a/src/pages/system/launchPage/launchPage.vue b/src/pages/system/launchPage/launchPage.vue index 9d94c98..8f03146 100644 --- a/src/pages/system/launchPage/launchPage.vue +++ b/src/pages/system/launchPage/launchPage.vue @@ -50,6 +50,10 @@ onLoad(async (data: any) => { } }) .catch((err) => {}); + } else { + uni.switchTab({ + url: "/pages/base/message/index", + }); } }); From 05a03e5b2e7a4f5bed0b9f6c25df9a8b40148164 Mon Sep 17 00:00:00 2001 From: ywyonui Date: Sat, 14 Jun 2025 22:28:04 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=AF=BE=E8=A1=A8?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/base/server.ts | 16 + src/pages.json | 9 +- src/pages/base/class-schedule/data.config.ts | 33 + src/pages/base/class-schedule/index.vue | 445 +++-------- .../base/grades/{index.vue => detail.vue} | 0 src/pages/base/grades/list.vue | 724 ++++++++++++++++++ src/pages/base/home/index.vue | 52 +- src/pages/system/launchPage/launchPage.vue | 1 + src/store/modules/user.ts | 14 + 9 files changed, 909 insertions(+), 385 deletions(-) create mode 100644 src/pages/base/class-schedule/data.config.ts rename src/pages/base/grades/{index.vue => detail.vue} (100%) create mode 100644 src/pages/base/grades/list.vue diff --git a/src/api/base/server.ts b/src/api/base/server.ts index bb21b53..de9479d 100644 --- a/src/api/base/server.ts +++ b/src/api/base/server.ts @@ -28,3 +28,19 @@ export const xkxkbmInfoApi = async (params: any) => { export const xkqddeleteApi = async (params: any) => { return await post("/api/xkqd/delete?ids=" + params.ids); }; + +/** + * 当前学期排课公共配置(排课设置、排课周次、排课时间) + */ +export const dqpkApi = async () => { + return await get("/mobile/jz/pkkb/dqpk" ); +}; + +/** + * 单日的排课课表 + */ +export const drpkkbApi = async (params: any) => { + return await get("/mobile/jz/pkkb/drpkkb", params); +}; + + diff --git a/src/pages.json b/src/pages.json index f314304..9c7f094 100644 --- a/src/pages.json +++ b/src/pages.json @@ -127,7 +127,14 @@ } }, { - "path": "pages/base/grades/index", + "path": "pages/base/grades/list", + "style": { + "navigationBarTitleText": "考试列表", + "enablePullDownRefresh": false + } + }, + { + "path": "pages/base/grades/detail", "style": { "navigationBarTitleText": "成绩查询", "enablePullDownRefresh": false diff --git a/src/pages/base/class-schedule/data.config.ts b/src/pages/base/class-schedule/data.config.ts new file mode 100644 index 0000000..4495813 --- /dev/null +++ b/src/pages/base/class-schedule/data.config.ts @@ -0,0 +1,33 @@ +/** + * 单日信息 + */ +export interface DrVo { + zj: number; // 周几(数字表示) + zjmc: string; // 周几名称(中文显示) + rq: Date; // 日期对象 + rqmc: string; // 日期显示名称(HH:mm格式) +} + +/** + * 周次信息 + */ +export interface ZcVo { + djz: number; // 第几周 + mc: string; // 显示名称(如:2025年 第18周(05-01至05-07)) + ksrq: string; // 开始日期(MM-DD格式) + jsrq: string; // 结束日期(MM-DD格式) + drList: DrVo[]; // 这周的单日信息列表 +} + + +/** + * 单日时间信息 + */ +export interface SjVo { + djj: number; // 全局第几节 + pksjId: string; // 排课时间 + mc: string; // 显示名称(如 "早1", "上2") + kssj: string; // 开始时间(HH:mm格式) + jssj: string; // 结束时间(HH:mm格式) + // pkkbList: Pkkb[]; // 排课课表列表 +} \ No newline at end of file diff --git a/src/pages/base/class-schedule/index.vue b/src/pages/base/class-schedule/index.vue index cbecc72..73fd0e4 100644 --- a/src/pages/base/class-schedule/index.vue +++ b/src/pages/base/class-schedule/index.vue @@ -1,42 +1,42 @@