linwu 13 saat önce
ebeveyn
işleme
c5c2e68567

+ 5 - 0
app/home/controller/AiExam.php

@@ -49,4 +49,9 @@ class Aiexam extends HomeBaseController
             ajax_return(1, '文件不存在');
         }
     }
+
+    public function examSuccess()
+    {
+        return view();
+    }
 }

+ 17 - 0
app/home/view/ai_exam/exam_success.html

@@ -0,0 +1,17 @@
+{extend name="public/base_el"/}
+{block name="css"}
+{/block}
+{block name="body"}
+<div style="margin:100px auto; width:1200px;text-align: center;">
+    <h1>交卷成功</h1>
+</div>
+{/block}
+{block name="script"}
+<script>
+    function v_setup() {
+        let base = {};
+
+        return base;
+    }
+</script>
+{/block}

+ 11 - 8
app/home/view/ai_exam/index.html

@@ -3,10 +3,10 @@
 <style>
     .box {margin:0 auto; width:1200px;}
     .title {margin-top:50px;}
-    .title p{margin:10px auto;padding:0 20px;text-align: center;font-size:22px;font-weight: 700;}
+    .title p{margin:10px auto;padding:0 20px;text-align: center;font-size:24px;font-weight: 700;}
     .font-bold {font-weight: bold;}
     .exam-title {font-family: "黑体";}
-    .content,.exam-title {text-indent: 2em;line-height: 28px;font-size:16px;font-family: "仿宋_GB2312";}
+    .content,.exam-title {text-indent: 2em;line-height: 28px;font-size:18px;font-family: "仿宋_GB2312";}
 </style>
 {/block}
 {block name="body"}
@@ -34,7 +34,7 @@
         <span class="font-bold">3.命名要求:</span>
         <span>作品完成后,将宣传作品文件命名为“单位+选手姓名+作品”,将创作思路PPT文件命名为“单位+选手姓名+思路PPT”命名完成后,上传至考试指定页面,并点击“交卷”按钮完成提交。</span>
     </div>
-    <div style="margin-top:50px;text-align: center;">
+    <div style="margin-top:50px;">
         <el-upload
                 v-model:file-list="fileList"
                 class="upload-demo"
@@ -42,9 +42,12 @@
                 :before-remove="removeFile"
                 multiple
         >
-            <el-button type="primary">点击上传文件</el-button>
+            <el-button type="success">点击上传文件</el-button>
         </el-upload>
     </div>
+    <div style="margin-top:50px;text-align: center;">
+        <el-button type="primary" @click="toSuccess">交卷</el-button>
+    </div>
 </div>
 {/block}
 {block name="script"}
@@ -52,10 +55,6 @@
     function v_setup() {
         let base = {};
 
-        base.toStart = () => {
-            location.href = "{:url('officer/answer')}"
-        }
-
         base.fileList = Vue.ref([]);
         base.removeFile = (res) => {
             postJson("{:url('ai_exam/deleteFile')}",{name:res.name}).then(()=>{
@@ -63,6 +62,10 @@
             });
         }
 
+        base.toSuccess = () => {
+            location.href = "{:url('examSuccess')}";
+        }
+
         return base;
     }
 </script>