From 01eb263ecc9822869888d52d3b33bf23a0f75bf5 Mon Sep 17 00:00:00 2001
From: liutong <836164388@qq.com>
Date: Wed, 4 Jun 2025 16:22:54 +0800
Subject: [PATCH] =?UTF-8?q?feat(student):=20=E5=AD=A6=E7=94=9F=E8=AF=A6?=
=?UTF-8?q?=E6=83=85=E9=A1=B5=E9=9D=A2=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- 添加学生详情接口 xy_memberInfo
- 优化学生信息展示逻辑
- 修复学生信息获取失败的异常处理
-调整页面初始化流程,确保信息加载顺序正确
---
api/apiRoute.js | 8 ++++++++
pages/student/index/index.vue | 34 +++++++++++++++++++++-------------
2 files changed, 29 insertions(+), 13 deletions(-)
diff --git a/api/apiRoute.js b/api/apiRoute.js
index 3f5642e..5fe2aa9 100644
--- a/api/apiRoute.js
+++ b/api/apiRoute.js
@@ -403,6 +403,14 @@ export default {
return res;
})
},
+ //学生详情
+ xy_memberInfo(data = {}) {
+ let url = '/customerResourcesAuth/info'
+ return http.get(url, data).then(res => {
+ return res;
+ })
+ },
+
diff --git a/pages/student/index/index.vue b/pages/student/index/index.vue
index 9b435a2..da57296 100644
--- a/pages/student/index/index.vue
+++ b/pages/student/index/index.vue
@@ -6,7 +6,7 @@
-
+
{{member_info.name}}
@@ -123,6 +123,8 @@