From d7d1e48426b2b79502c84a7c6ba334df5ab81688 Mon Sep 17 00:00:00 2001 From: daihh Date: Sat, 29 Oct 2022 11:42:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/exam/exam.vue | 10 +++--- pages/exam/qrcode.vue | 75 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 81 insertions(+), 4 deletions(-) create mode 100644 pages/exam/qrcode.vue diff --git a/pages/exam/exam.vue b/pages/exam/exam.vue index 3cd30eb..66891c8 100644 --- a/pages/exam/exam.vue +++ b/pages/exam/exam.vue @@ -454,11 +454,13 @@ }, // 提交考卷 submit: function() { - if(!this.aloneExamAnswerId){ - this.$refs.messager.show({message:'请先答题再提交',type:'error'}); - return; - } + // if(!this.aloneExamAnswerId){ + // this.$refs.messager.show({message:'请先答题再提交',type:'error'}); + // return; + // } let that = this; + //检查答案,是否有,如果没有就不能提交 + //试卷内容,不传试题,只是传id索引及目录 that.submitButton = true; let data = {}; data.id = this.aloneExamAnswerId; diff --git a/pages/exam/qrcode.vue b/pages/exam/qrcode.vue new file mode 100644 index 0000000..77f60e6 --- /dev/null +++ b/pages/exam/qrcode.vue @@ -0,0 +1,75 @@ + + + + +