From 24ba0d069c8e8d72001d91eb9759bf166739b190 Mon Sep 17 00:00:00 2001 From: chenyuan Date: Mon, 3 Aug 2026 14:16:03 +0800 Subject: [PATCH] feat: show new training modules on student home --- src/views/student/index.vue | 956 ++++++------------ .../student-home-new-modules.static.test.cjs | 17 + 2 files changed, 324 insertions(+), 649 deletions(-) create mode 100644 tests/student-home-new-modules.static.test.cjs diff --git a/src/views/student/index.vue b/src/views/student/index.vue index 66f632a..ec9c353 100644 --- a/src/views/student/index.vue +++ b/src/views/student/index.vue @@ -1,692 +1,350 @@ - + + diff --git a/tests/student-home-new-modules.static.test.cjs b/tests/student-home-new-modules.static.test.cjs new file mode 100644 index 0000000..553c3c1 --- /dev/null +++ b/tests/student-home-new-modules.static.test.cjs @@ -0,0 +1,17 @@ +const assert = require('assert'); +const fs = require('fs'); +const path = require('path'); + +const root = path.resolve(__dirname, '..'); +const page = fs.readFileSync(path.join(root, 'src/views/student/index.vue'), 'utf8'); + +assert(/getCurrentExperimentReport/.test(page)); +assert(/participatingModules/.test(page)); +assert(/completedTaskCount/.test(page)); +assert(/totalTaskCount/.test(page)); +assert(/moduleName/.test(page)); +assert(!/getStuWeightScore\(/.test(page)); +assert(!/getRouters\(/.test(page)); +assert(!/市场需求挖掘|产品投放测试|供应渠道管理|产品评估与考核/.test(page)); + +console.log('student home new module static checks passed');