From 5f59d3d8d4aa06d736643d2dd4e4fb2dcd35aca8 Mon Sep 17 00:00:00 2001 From: ywyonui Date: Tue, 1 Jul 2025 16:17:13 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E8=B0=83=E6=95=B4=E6=94=AF=E4=BB=98?= =?UTF-8?q?=202=E3=80=81=E8=B0=83=E6=95=B4Websocket=E7=9B=91=E5=90=AC?= =?UTF-8?q?=E6=94=AF=E4=BB=98=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/base/server.ts | 7 + src/pages.json | 10 ++ src/pages/base/course-selection/pay-wait.vue | 42 ++++++ src/pages/base/course-selection/payment.vue | 90 +++++++----- src/pages/base/grades/detail.vue | 13 +- src/store/modules/user.ts | 2 +- src/utils/webSocket/webSocket.ts | 138 ++++++++++--------- 7 files changed, 204 insertions(+), 98 deletions(-) create mode 100644 src/pages/base/course-selection/pay-wait.vue diff --git a/src/api/base/server.ts b/src/api/base/server.ts index a2e35fa..7e0931b 100644 --- a/src/api/base/server.ts +++ b/src/api/base/server.ts @@ -101,6 +101,13 @@ export const jzXkFqJfjApi = async (params: any) => { return await post("/mobile/jz/xk/fqjf", params); }; +/** + * 家长取消选课,不支付 + */ +export const jzXkCancelApi = async (params: any) => { + return await post("/mobile/jz/xk/cancel", params); +}; + /** * 家长退课 */ diff --git a/src/pages.json b/src/pages.json index ebb77f1..b941d7e 100644 --- a/src/pages.json +++ b/src/pages.json @@ -183,6 +183,16 @@ "enablePullDownRefresh": false } }, + { + "path": "pages/base/course-selection/pay-wait", + "style": { + "navigationBarTitleText": "", + "enablePullDownRefresh": false, + "navigationBarBackgroundColor": "#ffffff", + "navigationBarTextStyle": "black", + "backgroundColor": "#ffffff" + } + }, { "path": "pages/base/course-selection/payment-success", "style": { diff --git a/src/pages/base/course-selection/pay-wait.vue b/src/pages/base/course-selection/pay-wait.vue new file mode 100644 index 0000000..bac6517 --- /dev/null +++ b/src/pages/base/course-selection/pay-wait.vue @@ -0,0 +1,42 @@ + + + + + diff --git a/src/pages/base/course-selection/payment.vue b/src/pages/base/course-selection/payment.vue index edf2da3..dcb5b7c 100644 --- a/src/pages/base/course-selection/payment.vue +++ b/src/pages/base/course-selection/payment.vue @@ -19,39 +19,36 @@ - + - {{ student.xm }} + {{ curXs.xm }} {{ student.njmc }}{{ student.bjmc }}{{ curXs.njmc }}{{ curXs.bjmc }} - + 课程信息 - {{ course.kcmc }} - 开课老师:{{ course.jsName }} - 上课地点:{{ course.kcdd }} + {{ xkqd.kcmc }} + 开课老师:{{ xkqd.jsxm }} + 上课地点:{{ xkqd.kcdd }} 金额:¥{{ course.kcje }}金额:¥{{ xkqd.kcje }} @@ -61,7 +58,7 @@ 总金额: - ¥{{ course.kcje }} + ¥{{ totalJe }} @@ -73,25 +70,36 @@