From a7a0a0ca4bb594b0cbcb595807c1e451f46c086e Mon Sep 17 00:00:00 2001 From: huliyong <2783385703@qq.com> Date: Wed, 21 May 2025 20:25:04 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E8=80=83=E6=A0=B8?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E6=9F=A5=E7=9C=8B=E5=8A=9F=E8=83=BD=E5=B9=B6?= =?UTF-8?q?=E6=9B=B4=E6=96=B0API=E4=BB=A3=E7=90=86=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增 `ExamInfo.vue` 组件,用于查看伴宠师的考核信息 - 在 `openindex.vue` 中添加考核信息查看按钮及相关逻辑 - 优化 `AppletQuestion/index.vue` 中的题目类型配置,支持填空题和选择题的答案设置 --- CatmDogd-Mall-Front-test/.env.development | 1 + .../src/views/model/AppletQuestion/index.vue | 697 +++++++-------- .../AppletUsersTeacher/components/ExamInfo.vue | 275 ++++++ .../views/model/AppletUsersTeacher/openindex.vue | 931 +++++++++++---------- 4 files changed, 1118 insertions(+), 786 deletions(-) create mode 100644 CatmDogd-Mall-Front-test/src/views/model/AppletUsersTeacher/components/ExamInfo.vue diff --git a/CatmDogd-Mall-Front-test/.env.development b/CatmDogd-Mall-Front-test/.env.development index f0a70a0..0dcde19 100644 --- a/CatmDogd-Mall-Front-test/.env.development +++ b/CatmDogd-Mall-Front-test/.env.development @@ -6,6 +6,7 @@ VUE_APP_TITLE = 下单伴宠师综合管理平台 # 若依管理系统/开发环境 https://pet-admin.hhlm1688.com/api # VUE_APP_BASE_API = 'https://api.catmdogd.com' +# VUE_APP_BASE_API = 'http://h5.xzaiyp.top' VUE_APP_BASE_API = 'http://localhost:8002' # 路由懒加载 diff --git a/CatmDogd-Mall-Front-test/src/views/model/AppletQuestion/index.vue b/CatmDogd-Mall-Front-test/src/views/model/AppletQuestion/index.vue index 9d10bfa..766a1dc 100644 --- a/CatmDogd-Mall-Front-test/src/views/model/AppletQuestion/index.vue +++ b/CatmDogd-Mall-Front-test/src/views/model/AppletQuestion/index.vue @@ -1,358 +1,403 @@ - - - - - - - - - - - - - - 搜索 - 重置 - - + + + + + + + + + + + + + + 搜索 + 重置 + + - - - 新增 - - - 修改 - - - 删除 - - - - - - - - - - - - - - + + + 新增 + + + 修改 + + + 删除 + + + + + + + + + + + + + + - - - - - - - - - - - - + + + + + + + + + + + + - - 设置答案 + + - 修改 - 删除 - - - + 修改 + 删除 + + + - + - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + 选项设置 + + + + + + + + + + 删除 + + + + + 添加选项 + + + + + + + + + + + + diff --git a/CatmDogd-Mall-Front-test/src/views/model/AppletUsersTeacher/components/ExamInfo.vue b/CatmDogd-Mall-Front-test/src/views/model/AppletUsersTeacher/components/ExamInfo.vue new file mode 100644 index 0000000..69ad200 --- /dev/null +++ b/CatmDogd-Mall-Front-test/src/views/model/AppletUsersTeacher/components/ExamInfo.vue @@ -0,0 +1,275 @@ + + + + + + + + + + {{ index + 1 }}. + [{{ question.type === '培训' ? '填空题' : '选择题' }}] + {{ question.title }} + + + + + + 答案: + {{ question.userAppletAnswerTrain.answer }} + 最少字数要求:{{ question.numberWords }} + + + + + + + + {{ String.fromCharCode(64 + option.orderNo) }}. + {{ option.title }} + 正确答案 + + {{ option.isTrue ? '已选择' : '错误选择' }} + + + + + + {{ isAnswerCorrect(question) ? '回答正确' : '回答错误' }} + + + + + + + + + + + + + \ No newline at end of file diff --git a/CatmDogd-Mall-Front-test/src/views/model/AppletUsersTeacher/openindex.vue b/CatmDogd-Mall-Front-test/src/views/model/AppletUsersTeacher/openindex.vue index feab10a..6c0d14f 100644 --- a/CatmDogd-Mall-Front-test/src/views/model/AppletUsersTeacher/openindex.vue +++ b/CatmDogd-Mall-Front-test/src/views/model/AppletUsersTeacher/openindex.vue @@ -1,475 +1,486 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 搜索 - 重置 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 审核认证 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 搜索 + 重置 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 是 + 否 + + + + + {{ { + '3': '猫', + '4': '狗', + '5': '异宠' + }[item] }} + + + + + + + + + + + + + + + + + + + + 审核认证 + + 考核信息 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 是 + 否 + + + {{ { + '3': '猫', + '4': '狗', + '5': '异宠' + }[item] }} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +