diff --git a/src/api/student/index.js b/src/api/student/index.js new file mode 100644 index 0000000..5f551c4 --- /dev/null +++ b/src/api/student/index.js @@ -0,0 +1,9 @@ +import request from '@/utils/request'; + +export const getStudentList = async params => { + return await request({ + url: '/applet/xunjia/user/pageList', + method: 'GET', + params: params + }); +}; diff --git a/src/pages/student/list.vue b/src/pages/student/list.vue index e371aec..f656ecc 100644 --- a/src/pages/student/list.vue +++ b/src/pages/student/list.vue @@ -6,34 +6,30 @@ 学员列表管理 - - 添加 - + - 状态 + 姓名 - - {{ statusOptions[statusIndex] }} - + - 搜索 + 手机号 @@ -49,25 +45,19 @@ v-for="(student, index) in studentList" :key="index" class="student-item" - @click="goToStudentDetail(student.id)" + @click="goToStudentDetail(student.userId)" > - {{ getInitials(student.name) }} + {{ getInitials(student.userName) }} - {{ student.name }} + {{ student.userName }} {{ student.phone }} - {{ student.school }} - {{ student.status }} - - - - 编辑 - - - 删除 + + 上次登录:{{ formatDate(student.rencentlyLoginTime) }} + 注册时间:{{ formatDate(student.createTime) }} @@ -83,20 +73,20 @@ - 共 {{ totalStudents }} 条,当前第 {{ currentPage }} 页 + 共 {{ totalStudents }} 条,当前第 {{ pageNo }} 页 上一页 下一页 @@ -107,50 +97,17 @@ \ No newline at end of file diff --git a/src/pages/work/index.vue b/src/pages/work/index.vue index 391a38e..1d94795 100644 --- a/src/pages/work/index.vue +++ b/src/pages/work/index.vue @@ -119,16 +119,6 @@ - - - 📈 - - - 学情详情查看 - 查看学员学习数据、AI充值状态 - - - 📊 @@ -603,57 +593,6 @@ line-height: 1.4; } - /* 平板响应式 */ - @media screen and (min-width: 768px) { - .work-container { - max-width: 900px; - margin: 0 auto; - padding: 40rpx; - width: 100%; - } - - .section { - margin-bottom: 32rpx; - } - - .section-title { - font-size: 32rpx; - margin-bottom: 24rpx; - padding-left: 12rpx; - border-left: 8rpx solid #409eff; - } - - .feature-row { - flex-direction: row; - flex-wrap: wrap; - gap: 20rpx; - } - - .feature-card { - flex: 0 0 calc(50% - 10rpx); - max-width: calc(50% - 10rpx); - padding: 28rpx; - } - - .feature-icon { - width: 80rpx; - height: 80rpx; - margin-right: 20rpx; - } - - .icon-text { - font-size: 36rpx; - } - - .feature-title { - font-size: 28rpx; - } - - .feature-desc { - font-size: 22rpx; - } - } - /* 大屏设备响应式 */ @media screen and (min-width: 1024px) { .work-container {