diff --git a/niucloud/app/api/controller/upload/Upload.php b/niucloud/app/api/controller/upload/Upload.php index 69a433a6..64a3dfdf 100644 --- a/niucloud/app/api/controller/upload/Upload.php +++ b/niucloud/app/api/controller/upload/Upload.php @@ -91,4 +91,28 @@ class Upload extends BaseApiController $base64_service = new Base64Service(); return success($base64_service->image($data['content'])); } + + /** + * 头像上传(无token验证) + * @return Response + */ + public function avatar(Request $request){ + $extraData = $request->all(); + + $data = $this->request->params([ + ['file', 'file'], + ]); + $upload_service = new UploadService(); + + $res = $upload_service->avatar($data['file'],$extraData); + + $res['ext'] = ''; // 初始化文件扩展名 + $res['name'] = ''; // 初始化文件名称 + if (isset($res['url'])) { + $res['ext'] = pathinfo($res['url'], PATHINFO_EXTENSION); + $res['name'] = basename($res['url']); + } + + return success($res); + } } diff --git a/niucloud/app/api/route/file.php b/niucloud/app/api/route/file.php index 0b382cd8..64b01813 100644 --- a/niucloud/app/api/route/file.php +++ b/niucloud/app/api/route/file.php @@ -39,6 +39,8 @@ Route::group('file', function() { //base64图片 Route::post('image/base64', 'upload.Upload/imageBase64'); + //头像上传(无token验证) + Route::post('avatar', 'upload.Upload/avatar'); })->middleware(ApiChannel::class) ->middleware(ApiLog::class); diff --git a/niucloud/app/service/api/upload/UploadService.php b/niucloud/app/service/api/upload/UploadService.php index b666bf47..ddec552f 100644 --- a/niucloud/app/service/api/upload/UploadService.php +++ b/niucloud/app/service/api/upload/UploadService.php @@ -41,6 +41,19 @@ class UploadService extends BaseApiService return $core_upload_service->image($file, $dir, $this->cate_id); } + /** + * 头像上传(使用腾讯云存储) + * @param $file + * @return array + * @throws Exception + */ + public function avatar($file,array $extraData = []) + { + $dir = $this->root_path . '/' . 'avatar' . '/' . date('Ym') . '/' . date('d');//打印结果 例如=file/avatar/202505/29 + $core_upload_service = new CoreUploadService(); + return $core_upload_service->image($file, $dir, $this->cate_id); + } + /** * 附件库上传视频 * @param $file diff --git a/niucloud/core/upload/Tencent.php b/niucloud/core/upload/Tencent.php index a5b03ceb..f2cfc03a 100644 --- a/niucloud/core/upload/Tencent.php +++ b/niucloud/core/upload/Tencent.php @@ -61,14 +61,27 @@ class Tencent extends BaseUpload $this->validate(); $bucket = $this->config['bucket']; try { + // 临时关闭PHP警告,避免deprecated警告被当作异常 + $old_error_reporting = error_reporting(E_ERROR | E_PARSE); + $result = $this->client()->putObject(array( 'Bucket' => $bucket, //存储桶名称,由BucketName-Appid 组成,可以在COS控制台查看 https://console.tencentcloud.com/cos5/bucket 'Key' => $this->getFullPath($dir), 'Body' => fopen($this->getRealPath(), 'rb'), )); + + // 恢复错误报告级别 + error_reporting($old_error_reporting); + // 请求成功 return true; } catch ( Exception $e ) { + // 恢复错误报告级别 + error_reporting($old_error_reporting); + + // 输出详细错误信息用于调试 + error_log("Tencent COS Upload Error: " . $e->getMessage()); + error_log("Tencent COS Config: " . json_encode($this->config)); throw new UploadFileException($e->getMessage()); } } diff --git a/uniapp/pages.json b/uniapp/pages.json index cb51c551..8233762f 100644 --- a/uniapp/pages.json +++ b/uniapp/pages.json @@ -18,24 +18,6 @@ "navigationBarTextStyle": "white" } }, - { - "path": "pages/student/timetable/index", - "style": { - "navigationBarTitleText": "课表", - "navigationStyle": "custom", - "navigationBarBackgroundColor": "#292929", - "navigationBarTextStyle": "white" - } - }, - { - "path": "pages/student/my/my", - "style": { - "navigationBarTitleText": "我的", - "navigationStyle": "custom", - "navigationBarBackgroundColor": "#29d3b4", - "navigationBarTextStyle": "white" - } - }, { "path": "pages/student/my/my_coach", "style": { @@ -45,16 +27,6 @@ "navigationBarTextStyle": "white" } }, - { - "path": "pages/demo/mock-demo", - "style": { - "navigationBarTitleText": "Mock数据演示", - "navigationStyle": "default", - "navigationBarBackgroundColor": "#1890ff", - "navigationBarTextStyle": "white" - } - }, - { "path": "pages/student/login/forgot", "style": { @@ -64,15 +36,6 @@ "navigationBarTextStyle": "black" } }, - { - "path": "pages/student/index/work_details", - "style": { - "navigationBarTitleText": "作业详情", - "navigationStyle": "default", - "navigationBarBackgroundColor": "#fff", - "navigationBarTextStyle": "black" - } - }, { "path": "pages/student/index/physical_examination", "style": { @@ -91,15 +54,6 @@ "navigationBarTextStyle": "white" } }, - { - "path": "pages/student/timetable/list", - "style": { - "navigationBarTitleText": "场馆", - "navigationStyle": "default", - "navigationBarBackgroundColor": "#292929", - "navigationBarTextStyle": "black" - } - }, { "path": "pages/student/my/set_up", "style": { @@ -145,36 +99,6 @@ "navigationBarTextStyle": "white" } }, - { - "path": "pages/student/index/job_list", - "style": { - "navigationBarTitleText": "作业列表", - "navigationStyle": "default", - "navigationBarBackgroundColor": "#29d3b4", - "navigationBarTextStyle": "white" - } - }, - - - { - "path": "pages/market/home/index", - "style": { - "navigationStyle": "default", - "navigationBarBackgroundColor": "#29d3b4", - "navigationBarTextStyle": "white" - } - }, - { - "path": "pages/market/course/course_detail", - "style": { - "navigationBarTitleText": "课程详情", - "navigationStyle": "default", - "navigationBarBackgroundColor": "#fff", - "navigationBarTextStyle": "black" - } - }, - - { "path": "pages/common/privacy_agreement", "style": { @@ -229,15 +153,6 @@ "navigationBarTextStyle": "white" } }, - { - "path": "pages/common/contract_list", - "style": { - "navigationBarTitleText": "订单列表", - "navigationStyle": "default", - "navigationBarBackgroundColor": "#292929", - "navigationBarTextStyle": "white" - } - }, { "path": "pages/common/my_attendance", "style": { @@ -293,86 +208,6 @@ "navigationBarTextStyle": "white" } }, - { - "path": "pages/coach/job/add", - "style": { - "navigationBarTitleText": "发布作业", - "navigationStyle": "default", - "navigationBarBackgroundColor": "#292929", - "navigationBarTextStyle": "white" - } - }, - { - "path": "pages/coach/job/list", - "style": { - "navigationBarTitleText": "全部作业", - "navigationStyle": "default", - "navigationBarBackgroundColor": "#292929", - "navigationBarTextStyle": "white" - } - }, - { - "path": "pages/coach/course/list", - "style": { - "navigationBarTitleText": "课表", - "navigationBarBackgroundColor": "#29d3b4", - "navigationBarTextStyle": "white" - } - }, - { - "path": "pages/coach/course/info_list", - "style": { - "navigationBarTitleText": "课时详情", - "navigationStyle": "default", - "navigationBarBackgroundColor": "#292929", - "navigationBarTextStyle": "white" - } - }, - { - "path": "pages/coach/course/info", - "style": { - "navigationBarTitleText": "课时详情", - "navigationStyle": "default", - "navigationBarBackgroundColor": "#292929", - "navigationBarTextStyle": "white" - } - }, - { - "path": "pages/coach/class/list", - "style": { - "navigationBarTitleText": "班级", - "navigationStyle": "custom", - "navigationBarBackgroundColor": "#292929", - "navigationBarTextStyle": "white" - } - }, - { - "path": "pages/coach/class/info", - "style": { - "navigationBarTitleText": "班级详情", - "navigationStyle": "default", - "navigationBarBackgroundColor": "#292929", - "navigationBarTextStyle": "white" - } - }, - { - "path": "pages/coach/student/info", - "style": { - "navigationBarTitleText": "学员详情", - "navigationStyle": "default", - "navigationBarBackgroundColor": "#29d3b4", - "navigationBarTextStyle": "white" - } - }, - { - "path": "pages/coach/student/work_details", - "style": { - "navigationBarTitleText": "作业任务", - "navigationStyle": "default", - "navigationBarBackgroundColor": "#29d3b4", - "navigationBarTextStyle": "white" - } - }, { "path": "pages/coach/student/physical_examination", "style": { @@ -390,31 +225,6 @@ "navigationBarTextStyle": "white" } }, - { - "path": "pages/coach/student/student_detail", - "style": { - "navigationBarTitleText": "学员详情", - "navigationBarBackgroundColor": "#29d3b4", - "navigationBarTextStyle": "white" - } - }, - { - "path": "pages/coach/my/index", - "style": { - "navigationBarTitleText": "我的", - "navigationBarBackgroundColor": "#29d3b4", - "navigationBarTextStyle": "white" - } - }, - { - "path": "pages/coach/my/arrival_statistics", - "style": { - "navigationBarTitleText": "到课统计", - "navigationStyle": "default", - "navigationBarBackgroundColor": "#29d3b4", - "navigationBarTextStyle": "white" - } - }, { "path": "pages/coach/my/due_soon", "style": { @@ -468,15 +278,6 @@ "navigationBarTextStyle": "white" } }, - { - "path": "pages/coach/my/teaching_management_info", - "style": { - "navigationBarTitleText": "文章详情", - "navigationStyle": "default", - "navigationBarBackgroundColor": "#fff", - "navigationBarTextStyle": "white" - } - }, { "path": "pages/coach/my/gotake_exam", "style": { @@ -531,15 +332,6 @@ "navigationBarTextStyle": "black" } }, - { - "path": "pages/market/clue/order_list", - "style": { - "navigationBarTitleText": "订单列表", - "navigationStyle": "default", - "navigationBarBackgroundColor": "#29d3b4", - "navigationBarTextStyle": "black" - } - }, { "path": "pages/market/clue/index", "style": { @@ -552,7 +344,7 @@ { "path": "pages/market/index/index", "style": { - "navigationBarTitleText": "首页" + "navigationBarTitleText": "销售数据" } }, { @@ -627,24 +419,6 @@ "navigationBarTextStyle": "white" } }, - { - "path": "pages/market/my/firm_info", - "style": { - "navigationBarTitleText": "企业信息", - "navigationStyle": "default", - "navigationBarBackgroundColor": "#292929", - "navigationBarTextStyle": "white" - } - }, - { - "path": "pages/market/data/index", - "style": { - "navigationBarTitleText": "数据", - "navigationStyle": "custom", - "navigationBarBackgroundColor": "#fff", - "navigationBarTextStyle": "black" - } - }, { "path": "pages/market/clue/class_arrangement", "style": { @@ -695,23 +469,6 @@ "navigationBarTextStyle": "white" } }, - { - "path": "pages/coach/my/service_detail", - "style": { - "navigationBarTitleText": "服务详情", - "navigationBarBackgroundColor": "#29d3b4", - "navigationBarTextStyle": "white", - "enablePullDownRefresh": true - } - }, - { - "path": "pages/coach/my/service_list", - "style": { - "navigationBarTitleText": "服务列表", - "navigationBarBackgroundColor": "#29d3b4", - "navigationBarTextStyle": "white" - } - }, { "path": "pages/coach/schedule/schedule_table", "style": { @@ -745,14 +502,6 @@ "navigationBarTextStyle": "white" } }, - { - "path": "pages/academic/home/index", - "style": { - "navigationBarTitleText": "教务首页", - "navigationBarBackgroundColor": "#007ACC", - "navigationBarTextStyle": "white" - } - }, { "path": "pages/market/clue/clue_table", "style": { diff --git a/uniapp/pages/academic/home/index.vue b/uniapp/pages/academic/home/index.vue deleted file mode 100644 index 5bae2baa..00000000 --- a/uniapp/pages/academic/home/index.vue +++ /dev/null @@ -1,263 +0,0 @@ - - - - - - - - 教务待办 - - - - - - - - 任务:{{ v.title }} - 创建时间:{{ v.create_time }} - 截止时间:{{ v.deadline }} - - - - 优先级:{{ v.priority_text }} - - 查看 - - - - - 待处理 - - 处理中 - - 已完成 - - - - - - 暂无待办事项 - - - - - - - - 数据统计 - - - - - - - {{ infoData.student_count || 0 }} - 学员总数 - - - {{ infoData.course_count || 0 }} - 课程总数 - - - {{ infoData.teacher_count || 0 }} - 教师总数 - - - {{ infoData.class_count || 0 }} - 班级总数 - - - - - - - - - - \ No newline at end of file diff --git a/uniapp/pages/coach/class/info.vue b/uniapp/pages/coach/class/info.vue deleted file mode 100644 index 245ff5db..00000000 --- a/uniapp/pages/coach/class/info.vue +++ /dev/null @@ -1,638 +0,0 @@ - - - - - - - - - - - - - {{classInfo.head_coach_name}} - - - - 班级:{{classInfo.class_name}} - - - - 校区:{{classInfo.campus_name}} - - - - - - 人数:{{classInfo.classPersonnelRel.length}}人 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 班级成员 - - - 课程计划 - - - - - - - - - - - - - 即将到期 - - - - {{ v.student.name }} - 课程截止时间:{{ $util.formatToDateTime(v.end_date, 'Y-m-d') }} - - - - - {{ v.studentCoursesInfo.use_gift_hours + v.studentCoursesInfo.use_gift_hours }} - - 已上课时 - - - - {{ (v.studentCoursesInfo.total_hours + v.studentCoursesInfo.gift_hours) - (v.studentCoursesInfo.use_gift_hours + v.studentCoursesInfo.use_gift_hours) }} - - 剩余课时 - - - - - - - - - - - - - 课程:{{v.course.course_name}} - - - 时间:{{v.course_date}} - - - 地点:{{v.campus_name}} - - - - - 应到学员({{v.student.length}}) - - 查看 - - - - - 已签到学生({{v.student_courses.length}}/{{v.student.length}}) - - 查看 - - - - - - - - - - - - - - 未开始 - - - 上课中 - - - 已结束 - - - - - - - - - - - - - - \ No newline at end of file diff --git a/uniapp/pages/coach/class/list.vue b/uniapp/pages/coach/class/list.vue deleted file mode 100644 index 6ac9e2a0..00000000 --- a/uniapp/pages/coach/class/list.vue +++ /dev/null @@ -1,299 +0,0 @@ - - - - - - 班级 - - - - - - - - - - - - - - - - - {{v.class_name}} - - - {{v.end_count}}人即将到期 - - - - - - - {{v.students_count}} - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/uniapp/pages/coach/course/info.vue b/uniapp/pages/coach/course/info.vue deleted file mode 100644 index 4efe2bc2..00000000 --- a/uniapp/pages/coach/course/info.vue +++ /dev/null @@ -1,234 +0,0 @@ - - - - - - 青少儿篮球课 - - - 课程名称 - 青少年篮球课 - - - - 班级 - 班级名称 - - - - 上课时间 - 2020.03.25 15:30-17:00 - - - - 上课地址 - xxxx体育馆302室 - - - - 课程名称 - 青少年篮球课 - - - - 教练 - 包子皮 - - - - 教练号码 - 18888888888 - - - - 扣除课时 - 2个课时 - - - - 已上 - - - - - - - - - - \ No newline at end of file diff --git a/uniapp/pages/coach/course/info_list.vue b/uniapp/pages/coach/course/info_list.vue deleted file mode 100644 index 8b9d3bde..00000000 --- a/uniapp/pages/coach/course/info_list.vue +++ /dev/null @@ -1,793 +0,0 @@ - - - - - - 日期:{{courseInfo.course_date}} - 时间:{{courseInfo.time_slot}} - 地点:{{courseInfo.venue.venue_name}} - 课程:{{courseInfo.course.course_name}} - 教练:{{courseInfo.coach.name}} - 人数:{{courseInfo.venue.capacity}} - - 添加学员 - - 上课中 - - 已结束 - - 未开始 - - - - - 学员情况 - 作业情况 - - - - - - 暂无数据 - - - - - - {{v.name}} - 来源:{{v.source}} - 一访情况:{{v['school_six_speed'].first_visit_time}} - 一访时间:{{v['school_six_speed'].first_visit_status}} - - 课程截止时间:{{v.end_date}} - - - - - 请假 - 签到 - 已签到 - - - - - - - - - - - - 待批改({{courseInfo.groupedByStatus1.length}}) - - - - - - - - {{v.student.name}} - - 提交时间 - {{v.created_at}} - - - - - - - - - - - - - - - 未提交({{courseInfo.groupedByStatus2.length}}) - - - - - - - - {{v.student.name}} - - 提交时间 - - - - - - - - - - - - - - - - 已提交({{courseInfo.groupedByStatus3.length}}) - - - - - - - - {{v.student.name}} - - 提交时间 - {{v.created_at}} - - - - - - - - - - - - - - - - - {{item.text}} - - 年龄: {{item.age || '未知'}} - 来源: {{item.source || '未知'}} - 渠道: {{item.source_channel || '未知'}} - - - - - 暂无可添加的学员 - - - - - - - - {{ tipContent }} - - - - - - - - \ No newline at end of file diff --git a/uniapp/pages/coach/course/list.vue b/uniapp/pages/coach/course/list.vue deleted file mode 100644 index 31752bc1..00000000 --- a/uniapp/pages/coach/course/list.vue +++ /dev/null @@ -1,648 +0,0 @@ - - - - - - - - {{v.weekday}} - {{today == v.date ? '今':v.dayOfMonth}} - - - - 查看更多 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 时间:{{v.course_date}} - 课室:{{v.venue.venue_name}} - 课程:{{v.course.course_name}} - 人数:{{v.venue.capacity}} - - - - - - - - - - - 已签到学生 ({{v.student.length }}/{{v.venue.capacity}}) - - - - - - - - - 详情 - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/uniapp/pages/coach/job/add.vue b/uniapp/pages/coach/job/add.vue deleted file mode 100644 index 6fa5823f..00000000 --- a/uniapp/pages/coach/job/add.vue +++ /dev/null @@ -1,407 +0,0 @@ - - - - - - - - - - - - 班级作业 - - - - - - 学员作业 - - - - - - - - - - - - - - - - 图片作业 - - - - - - 视频作业 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 提交 - - - - - - - - - - - - - \ No newline at end of file diff --git a/uniapp/pages/coach/job/list.vue b/uniapp/pages/coach/job/list.vue deleted file mode 100644 index 4e55da69..00000000 --- a/uniapp/pages/coach/job/list.vue +++ /dev/null @@ -1,836 +0,0 @@ - - - - - - - - - - 班级:{{v.class_name}} - 时间:{{v.create_time}} - 课程:{{v.course_name}} - - - - 未提交 - 已提交 - 待批改 - 已批改 - - - - - - - - - 发布作业 - - - - - - - - - 发布作业 - - - 班级 - - - - {{ selectedClassName }} - 请选择班级 - - - - - - 课程 - - - - {{ selectedCourseName }} - 请选择课程 - - - - - - 学生 - - - {{ selectedStudentName }} - 请选择学生 - - - - - 作业描述 - - - - - - - - - - - - - - - - - 取消 - 提交 - - - - - - - - - \ No newline at end of file diff --git a/uniapp/pages/coach/my/arrival_statistics.vue b/uniapp/pages/coach/my/arrival_statistics.vue deleted file mode 100644 index f39f1b7a..00000000 --- a/uniapp/pages/coach/my/arrival_statistics.vue +++ /dev/null @@ -1,276 +0,0 @@ - - - - - - - - - - - - {{v.has_sign_count}} - / - {{v.students_count}} - - - 到课率:{{v.attendance_rate}}% - - - - 班级:{{v.classes_name}} - 时间:{{v.date_time}} {{v.time_slot ? v.time_slot.replace(",", " - ") : ""}} - 课室:{{v.address}} - - 课程:{{v.courses_name}} - - - - 未开始 - - 上课中 - 已结束 - - - - - - - - - - - \ No newline at end of file diff --git a/uniapp/pages/coach/my/index.vue b/uniapp/pages/coach/my/index.vue deleted file mode 100644 index 87ca1351..00000000 --- a/uniapp/pages/coach/my/index.vue +++ /dev/null @@ -1,431 +0,0 @@ - - - - - - - - - - {{memberInfo.name}} - - - - - - - - - - - - - - - - - - {{statisticsInfo.courseNum}} - 总授课数/节 - - - {{statisticsInfo.classNum}} - 总授班级/个 - - - {{statisticsInfo.studentNum}} - 总负责学员/名 - - - - - - - - - - - - - - - - 即将到期 - - - - - 授课统计 - - - - - - 我的考勤 - - - - - - 我的消息 - - - - - 教研管理 - - - - - 服务详情 - - - - - 课程安排 - - - - - 我的合同 - - - - - - - - - 设置 - - - - - - - - - - - - - \ No newline at end of file diff --git a/uniapp/pages/coach/my/my_attendance.vue b/uniapp/pages/coach/my/my_attendance.vue deleted file mode 100644 index b8925934..00000000 --- a/uniapp/pages/coach/my/my_attendance.vue +++ /dev/null @@ -1,497 +0,0 @@ - - - - - - - - - - - - - - - - 篮球课 - 考勤正常 - 2025-01-01 00:00:00 - 2025-01-01 00:00:00 - - - - - - - - - 篮球课 - 考勤正常 - 2025-01-01 00:00:00 - 2025-01-01 00:00:00 - - - - - - - - - 篮球课 - 考勤正常 - 2025-01-01 00:00:00 - 2025-01-01 00:00:00 - - - - - 普通考勤 - 请假 - 2025-01-01 00:00:00 - 2505-01-01 00:00:00 - - - - - - - - 普通考勤 - 迟到 - 2025-01-01 00:00:00 - 2025-01-01 00:00:00 - - - - - - - - - 普通考勤 - 早退 - 2025-01-01 00:00:00 - 2025-01-01 00:00:00 - - - - - - - - - 普通记录 - 本周考勤情况:周一到周五均按时打卡,未请假,综合表现良好。 - - - - - - - - - - - - - - - - 篮球课 - 考勤正常 - 2025-01-01 00:00:00 - 2025-01-01 00:00:00 - - - - - - - - - 篮球课 - 考勤正常 - 2025-01-01 00:00:00 - 2025-01-01 00:00:00 - - - - - - - - - 篮球课 - 考勤正常 - 2025-01-01 00:00:00 - 2025-01-01 00:00:00 - - - - - 普通考勤 - 请假 - 2025-01-01 00:00:00 - 2505-01-01 00:00:00 - - - - - - - - 普通考勤 - 迟到 - 2025-01-01 00:00:00 - 2025-01-01 00:00:00 - - - - - - - - - 普通考勤 - 早退 - 2025-01-01 00:00:00 - 2025-01-01 00:00:00 - - - - - - - - - 普通记录 - 本周考勤情况:周一到周五均按时打卡,未请假,综合表现良好。 - - - - - - - - - - - - - - - - 篮球课 - 考勤正常 - 2025-01-01 00:00:00 - 2025-01-01 00:00:00 - - - - - - - - - 篮球课 - 考勤正常 - 2025-01-01 00:00:00 - 2025-01-01 00:00:00 - - - - - - - - - 篮球课 - 考勤正常 - 2025-01-01 00:00:00 - 2025-01-01 00:00:00 - - - - - 普通考勤 - 请假 - 2025-01-01 00:00:00 - 2505-01-01 00:00:00 - - - - - - - - 普通考勤 - 迟到 - 2025-01-01 00:00:00 - 2025-01-01 00:00:00 - - - - - - - - - 普通考勤 - 早退 - 2025-01-01 00:00:00 - 2025-01-01 00:00:00 - - - - - - - - - 普通记录 - 本周考勤情况:周一到周五均按时打卡,未请假,综合表现良好。 - - - - - - - - - 请假 - - - - - - - - - \ No newline at end of file diff --git a/uniapp/pages/coach/my/service_detail.vue b/uniapp/pages/coach/my/service_detail.vue deleted file mode 100644 index 1a7a40c7..00000000 --- a/uniapp/pages/coach/my/service_detail.vue +++ /dev/null @@ -1,870 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - {{ service.service_name }} - - {{ service.status === 1 ? '已完成' : (service.status === 0 ? '待处理' : '未知状态') }} - - - - - - - 服务类型: - {{ service.service_type }} - - - 服务描述: - {{ service.description }} - - - 服务结果: - - - - 点击编辑服务结果 - - - 家长反馈: - {{ service.feedback }} - - - 家长评分: - {{ service.score }}分 - - - 创建时间: - {{ formatDate(service.created_at) }} - - - - - - - - 编辑服务结果 - - - - - - - - - - - - - - 📝 - 暂无服务记录 - - - - - - - - - - - - - 编辑服务结果 - - - - - - - 服务结果: - - - - - - B - - - I - - - • - - - 1. - - - - - - - - - - {{ editForm.service_remark.length }}/1000 - - - - 支持基础格式:粗体、斜体、列表等 - - - - - 取消 - - {{ saving ? '保存中...' : '保存' }} - - - - - - - - - - \ No newline at end of file diff --git a/uniapp/pages/coach/my/service_list.vue b/uniapp/pages/coach/my/service_list.vue deleted file mode 100644 index 2eb2f362..00000000 --- a/uniapp/pages/coach/my/service_list.vue +++ /dev/null @@ -1,565 +0,0 @@ - - - - - - - - - - 筛选 - - - - - - - - {{ service.name }} - - {{ service.status }} - - - - - - - 类型: - {{ service.type }} - - - 时长: - {{ service.duration }} - - - - {{ service.description }} - - - - {{ service.startTime }} - {{ service.endTime }} - - - 查看详情 - > - - - - - - - - - {{ searchText ? '未找到相关服务' : '暂无服务记录' }} - - - - - - - 筛选条件 - ✕ - - - - - 服务状态 - - - 全部 - - - 正常 - - - 即将到期 - - - 已过期 - - - - - - - 重置 - 确定 - - - - - - - - - \ No newline at end of file diff --git a/uniapp/pages/coach/my/teaching_management_info.vue b/uniapp/pages/coach/my/teaching_management_info.vue deleted file mode 100644 index f087daef..00000000 --- a/uniapp/pages/coach/my/teaching_management_info.vue +++ /dev/null @@ -1,168 +0,0 @@ - - - - {{arrayInfo.title}} - - - {{arrayInfo.update_time}} - - - - - - - - - - - - - 素材文件 - - - - - - - - - - \ No newline at end of file diff --git a/uniapp/pages/coach/schedule/schedule_detail.vue b/uniapp/pages/coach/schedule/schedule_detail.vue deleted file mode 100644 index b3d6158c..00000000 --- a/uniapp/pages/coach/schedule/schedule_detail.vue +++ /dev/null @@ -1,481 +0,0 @@ - - - - - - 加载中... - - - - - {{ errorMessage }} - - 重试 - - - - - - - - {{ scheduleDetail.title || '暂无课程名称' }} - {{ statusText }} - - {{ scheduleDetail.course_date || '' }} {{ scheduleDetail.time_slot || '' }} - - - - - - 授课教师: - {{ scheduleDetail.coach?.name || '未设置' }} - - - 教室: - {{ scheduleDetail.venue?.venue_name || '未设置' }} - - - 当前人数: - {{ studentCount }}/{{ scheduleDetail.venue?.capacity || 0 }} - - - 课程内容: - {{ scheduleDetail.content || '未设置上课内容' }} - - - 备注: - {{ scheduleDetail.remark }} - - - - - - - 学员列表 - - - - - - - - {{ student.name }} - - {{ student.status === 'signed' ? '已签到' : '未签到' }} - - - - - - 暂无学员参与此课程 - - - - - - - 调课 - - - 点名 - - - - - - - - - - - - \ No newline at end of file diff --git a/uniapp/pages/coach/student/info.vue b/uniapp/pages/coach/student/info.vue deleted file mode 100644 index 90e8fc43..00000000 --- a/uniapp/pages/coach/student/info.vue +++ /dev/null @@ -1,599 +0,0 @@ - - - - - - - - - - - - {{ studentsInfo.name }} - - {{ studentsInfo.customerResources.age }}岁 - - - - 电话:{{ studentsInfo.customerResources.phone_number }} - - - - - - - - - 出勤记录 - 体侧报告 - - - - - - - - {{ v.courses_name }} - 上课时间:{{ v.submit_time }} - - - 作业未提交 - 待批改 - 作业已完成 - - - - - - - - - - - - 综合评分:{{ v.calculateChildHealthScore }} - - - 测试时间:{{ $util.formatToDateTime(v.created_at, 'Y-m-d') }} - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/uniapp/pages/coach/student/student_detail.vue b/uniapp/pages/coach/student/student_detail.vue deleted file mode 100644 index d4b86b2e..00000000 --- a/uniapp/pages/coach/student/student_detail.vue +++ /dev/null @@ -1,499 +0,0 @@ - - - - - - - - - - {{studentInfo.name}} - ID: {{studentInfo.id}} - - - - - 基本信息 - - - 所属校区 - {{studentInfo.campus}} - - - 联系电话 - {{studentInfo.phone}} - - - 年龄 - {{studentInfo.age}}岁 - - - 入学时间 - {{studentInfo.enrollmentDate}} - - - - - - 课程信息 - - - 剩余课程 - {{studentInfo.remainingCourses}}节 - - - 课程到期时间 - {{studentInfo.expiryDate}} - - - 已消课程 - {{studentInfo.completedCourses}}节 - - - 报名课程 - {{studentInfo.courseName}} - - - - - - 最近上课记录 - - - {{item.date}} - - {{item.courseName}} - {{item.timeSlot}} - - - - - 暂无上课记录 - - - - - 联系学员 - 查看课表 - - - - - 加载中... - - - - - - - \ No newline at end of file diff --git a/uniapp/pages/coach/student/work_details.vue b/uniapp/pages/coach/student/work_details.vue deleted file mode 100644 index 690aa614..00000000 --- a/uniapp/pages/coach/student/work_details.vue +++ /dev/null @@ -1,130 +0,0 @@ - - - - - - - - - - - - - - - - - {{infoData.coach_name}} - - - - - - - - diff --git a/uniapp/pages/common/contract_list.vue b/uniapp/pages/common/contract_list.vue deleted file mode 100644 index 6f8c7620..00000000 --- a/uniapp/pages/common/contract_list.vue +++ /dev/null @@ -1,765 +0,0 @@ - - - - - - - - - 订单状态:{{v.order_status == 'pending' ? '待支付':'已支付' }} - - - - - 客户姓名: - {{ v.resource_id_name || ''}} - - - - 付款类型: - - {{ v.payment_type === 'cash' ? '现金支付' : v.payment_type === 'scan_code' ? '扫码支付' : '订阅支付' }} - - - - - 订单金额: - ¥{{ v.order_amount || ''}} - - - - 课程: - {{ v.course_id_name || ''}} - - - - 班级: - {{ v.class_id_name }} - - - - 人员: - {{ v.staff_id_name || ''}} - - - - 支付时间: - {{ v.payment_time || '' }} - - - - - - - - - - - - - - 创建订单 - - - - - - - - - - - - - - - {{ (formData.payment_type) ? formData.payment_type_name : '点击选择' }} - - - - - - - - - - - {{ (formData.course_id) ? formData.course_id_name : '点击选择' }} - - - - - - - - - - - {{ (formData.class_id) ? formData.class_id_name : '点击选择' }} - - - - - - - - - - - - - - - 取消 - 确定 - - - - - - - - - - - - - \ No newline at end of file diff --git a/uniapp/pages/common/personnel/add_personnel.vue b/uniapp/pages/common/personnel/add_personnel.vue index 88bafa8a..b75955a8 100644 --- a/uniapp/pages/common/personnel/add_personnel.vue +++ b/uniapp/pages/common/personnel/add_personnel.vue @@ -390,12 +390,9 @@ export default { uni.showLoading({ title: '上传中...' }) uni.uploadFile({ - url: this.$baseUrl + '/uploadImage', + url: this.$baseUrl + '/file/avatar', filePath: filePath, name: 'file', - header: { - 'Authorization': uni.getStorageSync('token') - }, success: (res) => { const data = JSON.parse(res.data) if (data.code === 1) { @@ -405,7 +402,8 @@ export default { uni.showToast({ title: data.msg || '上传失败', icon: 'none' }) } }, - fail: () => { + fail: (error) => { + console.error('头像上传失败:', error) uni.showToast({ title: '上传失败', icon: 'none' }) }, complete: () => { diff --git a/uniapp/pages/demo/dict_optimization.vue b/uniapp/pages/demo/dict_optimization.vue deleted file mode 100644 index e7723979..00000000 --- a/uniapp/pages/demo/dict_optimization.vue +++ /dev/null @@ -1,542 +0,0 @@ - - - - 字典获取优化演示 - 对比原方式和批量获取的性能差异 - - - - - 性能对比 - - - - - 原方式(单个获取) - - {{ oldTesting ? '测试中...' : '开始测试' }} - - - - 耗时: {{ oldResult.time }}ms - 请求次数: {{ oldResult.requests }}次 - 获取数据: {{ oldResult.count }}个字典 - - - - - - - 新方式(批量获取) - - {{ newTesting ? '测试中...' : '开始测试' }} - - - - 耗时: {{ newResult.time }}ms - 请求次数: {{ newResult.requests }}次 - 获取数据: {{ newResult.count }}个字典 - - 性能提升: {{ newResult.improvement }} - - - - - - - - 缓存机制演示 - - - 测试缓存效果 - 清除缓存 - - - - 第一次获取: {{ cacheResult.firstTime }}ms - 缓存获取: {{ cacheResult.cacheTime }}ms - 性能提升: {{ cacheResult.improvement }} - - - - - - 字典数据展示 - - - - {{ getDictDisplayName(key) }} - - - - - - - {{ item.name || item.text || '-' }} - {{ item.value || '-' }} - - - - 暂无数据 - - - - - - - 使用说明 - - 1. 使用 dictUtil.getBatchDict() 批量获取字典 - 2. 支持自动缓存,30分钟有效期 - 3. 支持业务场景批量获取 - 4. 向后兼容原有 util.getDict() 方法 - - - - - - - - \ No newline at end of file diff --git a/uniapp/pages/demo/mock-demo.vue b/uniapp/pages/demo/mock-demo.vue deleted file mode 100644 index 6f85594c..00000000 --- a/uniapp/pages/demo/mock-demo.vue +++ /dev/null @@ -1,352 +0,0 @@ - - - - Mock数据演示 - - 当前环境: {{ envInfo.env }} - - Mock状态: {{ envInfo.mockEnabled ? '已开启' : '已关闭' }} - - - - - - - - 用户信息 - - - - {{ userInfo.username }} - {{ userInfo.phone }} - {{ userInfo.email }} - - - - 加载中... - - - - - - 今日课程 - - - {{ item.start_time }} - {{ item.end_time }} - - {{ item.course_name }} - {{ item.teacher_name }} - {{ item.classroom }} - - - {{ getStatusText(item.status) }} - - - - - - - - 刷新数据 - - {{ envInfo.mockEnabled ? '关闭Mock' : '开启Mock' }} - - - - - - - - - \ No newline at end of file diff --git a/uniapp/pages/market/clue/class_arrangement_detail_bak.vue b/uniapp/pages/market/clue/class_arrangement_detail_bak.vue deleted file mode 100644 index 6a23b2a7..00000000 --- a/uniapp/pages/market/clue/class_arrangement_detail_bak.vue +++ /dev/null @@ -1,633 +0,0 @@ - - - - - - - - 课程安排详情 - - - - - 课程安排详情 - 日期:2025-07-24 08:30-09:30 - - - - - 正式学员 - - - - 待续费 - 未 - - 张小明同学的名字很长需要省略 - 年龄:8岁 - 课程状态:正式课 - 课程安排:固定课 - 剩余课时:12节 - 到期时间:2025-12-31 - - - - - - - - - - 空位 - 点击添加学员 - - - - - - - - 等待位 - - - - - - - 等待位 - 点击添加学员 - - - - - - - - - - 添加学员 - - - - - - 客户选择 - - - 手机号检索 - - - 姓名检索 - - - - - - - - - {{ student.name.charAt(0) }} - - {{ student.name }} - {{ student.phone }} - - - - - - - - - - - 课程安排 - - - - 临时课 - - - - 固定课 - - - - - - - 备注 - - - - - - - - - - - - - - \ No newline at end of file diff --git a/uniapp/pages/market/clue/clue_info.less b/uniapp/pages/market/clue/clue_info.less index 4ea4dbff..18342cfd 100644 --- a/uniapp/pages/market/clue/clue_info.less +++ b/uniapp/pages/market/clue/clue_info.less @@ -2361,4 +2361,153 @@ color: #999; font-size: 28rpx; } +} + +// 二维码支付弹窗样式 +.qrcode-payment-modal { + width: 600rpx; + background: #fff; + border-radius: 20rpx; + overflow: hidden; + + .modal-header { + display: flex; + align-items: center; + justify-content: space-between; + padding: 40rpx 40rpx 20rpx; + border-bottom: 1px solid #f0f0f0; + + .modal-title { + font-size: 36rpx; + font-weight: 600; + color: #333; + } + + .close-btn { + width: 60rpx; + height: 60rpx; + display: flex; + align-items: center; + justify-content: center; + border-radius: 50%; + background: #f5f5f5; + color: #666; + font-size: 32rpx; + transition: all 0.3s ease; + + &:active { + background: #e5e5e5; + transform: scale(0.95); + } + } + } + + .order-info { + padding: 30rpx 40rpx; + + .info-row { + display: flex; + align-items: center; + margin-bottom: 20rpx; + + &:last-child { + margin-bottom: 0; + } + + .label { + font-size: 28rpx; + color: #666; + margin-right: 20rpx; + } + + .value { + font-size: 28rpx; + color: #333; + flex: 1; + } + + .amount { + font-size: 32rpx; + color: #ff4757; + font-weight: 600; + flex: 1; + } + } + } + + .qrcode-container { + display: flex; + flex-direction: column; + align-items: center; + padding: 40rpx; + background: #fafafa; + + .qrcode-image { + width: 300rpx; + height: 300rpx; + border: 1px solid #e5e5e5; + border-radius: 12rpx; + background: #fff; + margin-bottom: 20rpx; + } + + .qrcode-placeholder { + width: 300rpx; + height: 300rpx; + display: flex; + align-items: center; + justify-content: center; + border: 1px dashed #ccc; + border-radius: 12rpx; + background: #fff; + color: #999; + font-size: 24rpx; + margin-bottom: 20rpx; + } + + .qrcode-tip { + font-size: 24rpx; + color: #666; + text-align: center; + line-height: 1.4; + } + } + + .modal-buttons { + display: flex; + padding: 30rpx 40rpx 40rpx; + gap: 20rpx; + + .btn { + flex: 1; + height: 80rpx; + display: flex; + align-items: center; + justify-content: center; + border-radius: 40rpx; + font-size: 28rpx; + font-weight: 500; + transition: all 0.3s ease; + + &.secondary { + background: #f5f5f5; + color: #666; + + &:active { + background: #e5e5e5; + transform: scale(0.98); + } + } + + &.primary { + background: #29d3b4; + color: #fff; + + &:active { + background: #1ea08e; + transform: scale(0.98); + } + } + } + } } \ No newline at end of file diff --git a/uniapp/pages/market/clue/clue_info.vue b/uniapp/pages/market/clue/clue_info.vue index 0f0043c8..0bb89b26 100644 --- a/uniapp/pages/market/clue/clue_info.vue +++ b/uniapp/pages/market/clue/clue_info.vue @@ -223,6 +223,49 @@ @confirm="handleOrderFormConfirm" /> + + + + + + + 扫码支付 + + ✕ + + + + + + + 订单号: + {{ qrCodePaymentData.order.order_no }} + + + 支付金额: + ¥{{ qrCodePaymentData.order.total_amount }} + + + + + + + 二维码加载中... + 请使用微信扫码完成支付 + + + + + 取消支付 + 已完成支付 + + + @@ -289,6 +332,10 @@ export default { // 订单表单弹窗 showOrderForm: false, + // 二维码支付弹窗 + showQRCodeModal: false, + qrCodePaymentData: null, + // 编辑相关 remark_content: '', currentRecord: null, @@ -1063,8 +1110,76 @@ export default { }, // 扫码支付 - showQRCodePayment(order) { -console.log('扫码支付:', order) + async showQRCodePayment(order) { + console.log('扫码支付:', order) + + try { + uni.showLoading({ title: '生成支付二维码...' }) + + // 调用接口获取支付二维码 + const res = await apiRoute.getOrderPayQrcode({ + order_id: order._raw?.id || order.id + }) + + uni.hideLoading() + + if (res.code === 1 && res.data) { + // 显示二维码支付弹窗 + this.openQRCodeModal({ + order: order, + qrcode: res.data.code_url, + qrcodeImage: res.data.qrcode_url + }) + } else { + uni.showToast({ + title: res.msg || '获取支付二维码失败', + icon: 'none' + }) + } + } catch (error) { + uni.hideLoading() + console.error('获取支付二维码失败:', error) + uni.showToast({ + title: '获取支付二维码失败', + icon: 'none' + }) + } + }, + + // 打开二维码支付弹窗 + openQRCodeModal(paymentData) { + this.qrCodePaymentData = paymentData + this.showQRCodeModal = true + }, + + // 关闭二维码支付弹窗 + closeQRCodeModal() { + this.showQRCodeModal = false + this.qrCodePaymentData = null + }, + + // 确认二维码支付完成 + async confirmQRCodePayment() { + if (!this.qrCodePaymentData?.order) return + + const order = this.qrCodePaymentData.order + + uni.showModal({ + title: '支付确认', + content: '请确认是否已完成扫码支付?', + success: async (res) => { + if (res.confirm) { + try { + // 更新订单状态为已支付 + await this.updateOrderStatus(order, 'paid', `QR${Date.now()}`) + this.closeQRCodeModal() + } catch (error) { + console.error('支付确认失败:', error) + uni.showToast({ title: '支付确认失败', icon: 'none' }) + } + } + } + }) }, // 订阅支付 diff --git a/uniapp/pages/market/clue/clue_info_refactored.vue b/uniapp/pages/market/clue/clue_info_refactored.vue deleted file mode 100644 index c3ab18ed..00000000 --- a/uniapp/pages/market/clue/clue_info_refactored.vue +++ /dev/null @@ -1,549 +0,0 @@ - - - - - - - - - - - - - - {{ $util.safeGet(clientInfo, 'customerResource.name', '未知客户') }} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 客户和学生信息 - - + - 添加学生 - - - - - - - - - - - - - - - - - 课程信息内容... - - - - - - - - - - - - - - - - - - - - - 学习计划内容... - - - - - - - - \ No newline at end of file diff --git a/uniapp/pages/market/clue/new_task.vue b/uniapp/pages/market/clue/new_task.vue deleted file mode 100644 index 86181d3d..00000000 --- a/uniapp/pages/market/clue/new_task.vue +++ /dev/null @@ -1,425 +0,0 @@ - - - 跟进任务 - - - - - - - 点击选择 - - - {{ str_entry_type }} - - - - - - - - 点击选择 - - - {{ str_follow_staff_id }} - - - - - - - - 点击选择 - - - {{ formData.reminder_time }} - - - - - - - - - - - - - - 保存 - - - - - - - - - - - - - - \ No newline at end of file diff --git a/uniapp/pages/market/clue/order_list.vue b/uniapp/pages/market/clue/order_list.vue deleted file mode 100644 index 2ff1ef79..00000000 --- a/uniapp/pages/market/clue/order_list.vue +++ /dev/null @@ -1,1149 +0,0 @@ - - - - - - - - - 订单状态:{{ v.order_status == 'pending' ? '待支付' : '已支付' }} - - - - - 客户姓名: - {{ v.resource_id_name || '' }} - - - - 付款类型: - - {{ v.payment_type === 'cash' ? '现金支付' : v.payment_type === 'scan_code' ? '扫码支付' : '订阅支付' }} - - - - - 订单金额: - ¥{{ v.order_amount || '' }} - - - - 课程: - {{ v.course_id_name || '' }} - - - - 班级: - {{ v.class_id_name }} - - - - 人员: - {{ v.staff_id_name || '' }} - - - - 支付时间: - {{ v.payment_time || '' }} - - - - - - - 合同签订 - - - - 发票下载 - - - - - - - - 创建订单 - - - - - - 创建订单 - - - - - - - - - - - - - - - {{ (formData.payment_type) ? formData.payment_type_name : '点击选择' }} - - - - - - - - - - - {{ (formData.course_id) ? formData.course_id_name : '点击选择' }} - - - - - - - - - - - {{ (formData.class_id) ? formData.class_id_name : '点击选择' }} - - - - - - - - - - - - - 新报名 - - - - - - 续费 - - - - - - - - - - - - - - - - 取消 - - 确定 - - - - - - - - - - - - 支付二维码 - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/uniapp/pages/market/clue/writing_followUp.vue b/uniapp/pages/market/clue/writing_followUp.vue deleted file mode 100644 index b95c4b8c..00000000 --- a/uniapp/pages/market/clue/writing_followUp.vue +++ /dev/null @@ -1,1014 +0,0 @@ - - - - - - - - - - 点击选择 - - - {{str_sales_id}} - - - - - - - - 点击选择 - - - {{ str_staff_id }} - - - - - - - - 点击选择 - - - {{ formData.follow_up_time }} - - - - - - - - - - - - - - 点击选择 - - - {{ str_purchasing_power }} - - - - - - - 点击选择 - - - {{ str_cognitive_concept }} - - - - - - - 点击选择 - - - {{ formData.schooltime }} - - - - - - - - - - - - - - - - - - - - - - 点击选择 - - - {{ str_emotional_intensity }} - - - - - - 初步意向度 - - - - - 点击选择 - - - {{ str_initial_customer_intent }} - - - - - - - - 点击选择 - - - {{ str_initial_relationship_intent }} - - - - - - - - - - - - - - - - - 跟进任务 - - - - - - - - - - 点击选择 - - - {{ str_entry_type }} - - - - - - - - 点击选择 - - - {{ str_follow_staff_id }} - - - - - - - - 点击选择 - - - {{ formData.reminder_time }} - - - - - - - - - - - - - - - - - - 保存 - - - - - - - - - - - - - - \ No newline at end of file diff --git a/uniapp/pages/market/course/course_detail.vue b/uniapp/pages/market/course/course_detail.vue deleted file mode 100644 index a7dab243..00000000 --- a/uniapp/pages/market/course/course_detail.vue +++ /dev/null @@ -1,514 +0,0 @@ - - - - - - {{ courseInfo.course_name || '课程详情' }} - - {{ getStatusText(courseInfo.status) }} - - - - - - 总课时 - {{ courseInfo.total_hours || 0 }} - - - 赠送课时 - {{ courseInfo.gift_hours || 0 }} - - - 已用课时 - {{ (courseInfo.use_total_hours || 0) + (courseInfo.use_gift_hours || 0) }} - - - 剩余课时 - {{ getRemainingHours() }} - - - - - 开始日期:{{ courseInfo.start_date || '--' }} - 结束日期:{{ courseInfo.end_date || '--' }} - - - - - - 课程安排 - ({{ scheduleList.length }}) - - - - - - {{ formatDate(item.course_date) }} - {{ item.time_slot }} - - - - - - {{ getScheduleTypeText(item.schedule_type) }} - - - {{ getCourseTypeText(item.course_type) }} - - - - - - {{ getScheduleStatusText(item.status) }} - - - - - - > - - - - - - - 使用记录 - ({{ usageList.length }}) - - - - - - {{ formatDate(item.usage_date) }} - {{ item.time_slot || '--' }} - - - - 消耗课时:{{ item.hours_used || 0 }} - {{ item.usage_type || '正常上课' }} - - - - 已确认 - - - - - - - 暂无课程安排和使用记录 - - - - - - - \ No newline at end of file diff --git a/uniapp/pages/market/data/index.vue b/uniapp/pages/market/data/index.vue deleted file mode 100644 index f118eb47..00000000 --- a/uniapp/pages/market/data/index.vue +++ /dev/null @@ -1,836 +0,0 @@ - - - - - - 数据 - - - - - - 业绩统计 - - - - - - - - 本周已分配 - - {{infoData.num_1}}人 - - 本周未分配 - - {{infoData.num_2}}人 - - - - - - - 已分配 - - - - 未分配 - - - - - - - 新客签到 - - - - - - - - 0 - 50人 - 100人 - - - - - - - 统计分析 - 统计排名 - - - - - - - - - - - 已分配({{infoData.num_1_rate}}%) - - - {{infoData.num_1}}人 - - - - - - 未分配({{infoData.num_2_rate}}%) - - - {{infoData.num_2}}人 - - - - - - 本周拉新({{infoData.num_3_rate}}%) - - - {{infoData.total_1}}人 - - - - - - - - - {{k+1}} {{v.name}} - {{v.goal}}人 - - - - - - - - - - - - 业绩统计 - - - - - - - - 已成交 - - {{infoData.num_1}}人 - - 未成交 - - {{infoData.num_2}}人 - - - - - - - 已成交 - - - - 未成交 - - - - - - - - - - 统计分析 - 统计排名 - - - - - - - - - - - 已成交({{infoData.num_1_rate}}%) - - - {{infoData.num_1}}人 - - - - - - 未成交({{infoData.num_2_rate}}%) - - - {{infoData.num_2}}人 - - - - - - 本周分配({{infoData.num_3_rate}}%) - - - {{infoData.total_1}}人 - - - - - - - - - {{k+1}} {{v.name}} - {{v.goal}}人 - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/uniapp/pages/market/home/index.vue b/uniapp/pages/market/home/index.vue deleted file mode 100644 index 3be0424e..00000000 --- a/uniapp/pages/market/home/index.vue +++ /dev/null @@ -1,390 +0,0 @@ - - - - - - - - - - - - 本月业绩 - - - - - - - - - 资源总数 - - {{infoData.month.new_total}}人 - - - - - - - - 已分配 - - {{infoData.month.new_total}}人 - - - - - - - - 昨日新增 - - {{infoData.month.yesterday_new}}人 - - - - - - - - 今日新增 - - {{infoData.month.today_new}}人 - - - - - {{infoData.date_range}} - - - - - - - - {{ infoData.month.yesterday_new_rate }}% - - - 昨日 - - - - - - - - {{ infoData.month.assigned_sales_rate }}% - - - 分配 - - - - - - - - {{ infoData.month.today_new_rate }}% - - - 今日 - - - - - - - - - - - - - - - - 个人业绩 - - - - - - - - - - - 今日新增资源 - - {{infoData.last_month.xzzy}}人 - - - - - - - - 今日业绩收入 - - {{infoData.last_month.yjsr}}元 - - - - - - - - - - 历史关单数量 - - {{infoData.last_month.gdsl}}人 - - - - - - - - 其他奖励 - - {{infoData.last_month.qtjl}}元 - - - - - - - - - - - 本月提成 - - {{infoData.last_month.bytc}}元 - - - - - - - - - - - - - - \ No newline at end of file diff --git a/uniapp/pages/market/index/index.vue b/uniapp/pages/market/index/index.vue index 85108fde..dd368cc8 100644 --- a/uniapp/pages/market/index/index.vue +++ b/uniapp/pages/market/index/index.vue @@ -111,19 +111,13 @@ - - - - diff --git a/uniapp/pages/parent/contracts/contract-detail.vue b/uniapp/pages/parent/contracts/contract-detail.vue deleted file mode 100644 index 3b445110..00000000 --- a/uniapp/pages/parent/contracts/contract-detail.vue +++ /dev/null @@ -1,177 +0,0 @@ - - - - - - - {{ contractInfo.title }} - - {{ contractInfo.status_text }} - - - - - - 合同金额 - ¥{{ contractInfo.amount }} - - - 签订日期 - {{ contractInfo.sign_date }} - - - 有效期 - {{ contractInfo.valid_date }} - - - - - - - - 暂无合同信息 - - - - - 加载中... - - - - - - - \ No newline at end of file diff --git a/uniapp/pages/parent/courses/course-detail.vue b/uniapp/pages/parent/courses/course-detail.vue deleted file mode 100644 index 9545e57c..00000000 --- a/uniapp/pages/parent/courses/course-detail.vue +++ /dev/null @@ -1,187 +0,0 @@ - - - - - - - {{ courseInfo.course_name }} - - {{ courseInfo.status === 'active' ? '进行中' : '已结束' }} - - - - - - 授课教师 - {{ courseInfo.teacher_name }} - - - 上课校区 - {{ courseInfo.campus_name }} - - - 上课时间 - {{ courseInfo.schedule_time }} - - - 课程进度 - {{ courseInfo.progress }} - - - 下节课时间 - {{ courseInfo.next_class }} - - - - - - - - 暂无课程信息 - - - - - 加载中... - - - - - - - \ No newline at end of file diff --git a/uniapp/pages/parent/materials/material-detail.vue b/uniapp/pages/parent/materials/material-detail.vue deleted file mode 100644 index f85b09e0..00000000 --- a/uniapp/pages/parent/materials/material-detail.vue +++ /dev/null @@ -1,181 +0,0 @@ - - - - - - - {{ materialInfo.title }} - {{ materialInfo.type }} - - - - - 发布时间 - {{ materialInfo.created_at }} - - - 资料类型 - {{ materialInfo.type }} - - - - - 资料内容 - {{ materialInfo.content }} - - - - - - - 暂无资料信息 - - - - - 加载中... - - - - - - - \ No newline at end of file diff --git a/uniapp/pages/parent/messages/message-detail.vue b/uniapp/pages/parent/messages/message-detail.vue deleted file mode 100644 index 4e093ff3..00000000 --- a/uniapp/pages/parent/messages/message-detail.vue +++ /dev/null @@ -1,174 +0,0 @@ - - - - - - - {{ messageInfo.title }} - {{ messageInfo.created_at }} - - - - - 发送者 - {{ messageInfo.sender }} - - - - - 消息内容 - {{ messageInfo.content }} - - - - - - - 暂无消息信息 - - - - - 加载中... - - - - - - - \ No newline at end of file diff --git a/uniapp/pages/parent/orders/order-detail.vue b/uniapp/pages/parent/orders/order-detail.vue deleted file mode 100644 index 95283255..00000000 --- a/uniapp/pages/parent/orders/order-detail.vue +++ /dev/null @@ -1,182 +0,0 @@ - - - - - - - 订单号:{{ orderInfo.order_no }} - - {{ orderInfo.status_text }} - - - - - - 课程名称 - {{ orderInfo.course_name }} - - - 订单金额 - ¥{{ orderInfo.amount }} - - - 下单时间 - {{ orderInfo.created_at }} - - - 支付时间 - {{ orderInfo.pay_time }} - - - - - - - - 暂无订单信息 - - - - - 加载中... - - - - - - - \ No newline at end of file diff --git a/uniapp/pages/parent/services/service-detail.vue b/uniapp/pages/parent/services/service-detail.vue deleted file mode 100644 index 1ac6537e..00000000 --- a/uniapp/pages/parent/services/service-detail.vue +++ /dev/null @@ -1,159 +0,0 @@ - - - - - - - {{ serviceInfo.title }} - - {{ serviceInfo.status_text }} - - - - - - 服务时间 - {{ serviceInfo.service_time }} - - - 服务内容 - {{ serviceInfo.content }} - - - - - - - - 暂无服务信息 - - - - - 加载中... - - - - - - - \ No newline at end of file diff --git a/uniapp/pages/student/index/index.vue b/uniapp/pages/student/index/index.vue index 026c9b5c..6c50f806 100644 --- a/uniapp/pages/student/index/index.vue +++ b/uniapp/pages/student/index/index.vue @@ -161,7 +161,6 @@ - diff --git a/uniapp/pages/student/index/job_list.vue b/uniapp/pages/student/index/job_list.vue deleted file mode 100644 index 9c4ff5b9..00000000 --- a/uniapp/pages/student/index/job_list.vue +++ /dev/null @@ -1,272 +0,0 @@ - - - - 课后作业 - - - - - - - - - {{v.content_text}} - - - - - 时间:{{v.created_at}} - - - - - - - - - - - - - {{v.type == 1 ? '班级作业' : '个人作业'}} - - - - - - - - - - - - diff --git a/uniapp/pages/student/index/work_details.vue b/uniapp/pages/student/index/work_details.vue deleted file mode 100644 index 8d4d32e0..00000000 --- a/uniapp/pages/student/index/work_details.vue +++ /dev/null @@ -1,114 +0,0 @@ - - - - - - - - - - - - - - - {{infoData .student.name}} - - - 状态:{{ infoData.status == 1 ? '待批改' : infoData.status == 2 ? '未提交' : infoData.status == 3 ? '已提交' :''}} - - - - - - - diff --git a/uniapp/pages/student/my/my.vue b/uniapp/pages/student/my/my.vue deleted file mode 100644 index eab026c2..00000000 --- a/uniapp/pages/student/my/my.vue +++ /dev/null @@ -1,379 +0,0 @@ - - - - - 我的 - - - - - - - - {{member_info.name}} - - - - - - - - - - - - - - {{member_info.classes_count}} - 我的课程 - - - {{member_info.sign_count}} - 已上课时 - - - {{member_info.stay_sign_count}} - 待上课时 - - - - - - - - - - - - - - - 课时消耗 - - - - - 我的订单 - - - - - 我的课表 - - - - - - - 我的教练 - - - - - 作业管理 - - - - - 意见反馈 - - - - - 我的消息 - - - - - - - - - - - - - \ No newline at end of file diff --git a/uniapp/pages/student/timetable/index.vue b/uniapp/pages/student/timetable/index.vue deleted file mode 100644 index 5cc8b6bb..00000000 --- a/uniapp/pages/student/timetable/index.vue +++ /dev/null @@ -1,607 +0,0 @@ - - - - - - 课表 - - - - - - - {{v.week}} - - {{today == v.date ? '今':v.today}} - - - - - - 查看更多 - - - - - - {{venuesInfo.venue_name}} - - - 更多场馆 - - - - - - - - - - 教练:{{v.courseScheduleHasOne.coach.name}} - 课程:{{v.courseScheduleHasOne.course.course_name}} - 时间:{{v.course_date}} - 课室:{{v.courseScheduleHasOne.campus_name}} {{v.courseScheduleHasOne.venue.venue_name}} - - - - - {{ v.status == 0 ? '待上课' : v.status == 1 ? '已上课' : '请假' }} - - - - - - - - - - - - - - - - 详情 - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/uniapp/pages/student/timetable/list.vue b/uniapp/pages/student/timetable/list.vue deleted file mode 100644 index 5fed8d89..00000000 --- a/uniapp/pages/student/timetable/list.vue +++ /dev/null @@ -1,254 +0,0 @@ - - - - - - 暂无更多数据 - - - {{v.campus.campus_name}} - {{v.campus.campus_address}} {{v.venue_name}} - - - - 当前场馆 - - - - - - - - - - - \ No newline at end of file
日期:2025-07-24 08:30-09:30