y595705120 преди 1 година
родител
ревизия
e6f091cb17
променени са 4 файла, в които са добавени 10 реда и са изтрити 11 реда
  1. 1 1
      src/assets/css/main.css
  2. 3 4
      src/containers/center/exam/index.css
  3. 4 4
      src/containers/center/exam/index.vue
  4. 2 2
      src/containers/center/play/index.vue

+ 1 - 1
src/assets/css/main.css

@@ -221,7 +221,7 @@ a, span {
 }
 
 .m-right-block {
-  width: 1009px;
+  width: 1024px;
   margin: 0 auto;
   min-height: 700px;
   background: #fff;

+ 3 - 4
src/containers/center/exam/index.css

@@ -9,7 +9,6 @@
   margin-top: 30px;
 }
 
-
 .answer-item {
   padding: 8px;
 }
@@ -99,11 +98,11 @@
   margin: 50px auto;
   font-size: 16px;
   font-weight: 900;
-  margin-top: 50px;
+  margin-top: 40px;
 }
 .select-item{
   padding: 0px !important;
   margin: 1px;
-  margin-top: 5px;
-  height: 36px;
+  margin-top: 2px;
+  height: 30px;
 }

+ 4 - 4
src/containers/center/exam/index.vue

@@ -69,7 +69,7 @@
               <div>
                 <h3 class="p10">单项选择题</h3>
                 <el-row :gutter="24" class="ml20">
-                  <el-col :span="4" v-for="(item,index) in info.answers" :key="index" class="select-item" v-if="item.type==2">
+                  <el-col :span="3" v-for="(item,index) in info.answers" :key="index" class="select-item" v-if="item.type==2">
                     <el-button :class="'b-grid '+getStyle(index)" @click="gotoQuestion(index)" >
                        {{index+1}}
                        <span class="red">
@@ -81,7 +81,7 @@
 
                <h3 class="p10">多选题</h3>
                 <el-row :gutter="24" class="ml20">
-                  <el-col :span="4" v-for="(item,index) in info.answers"   :key="index" class="select-item" v-if="item.type==3">
+                  <el-col :span="3" v-for="(item,index) in info.answers"   :key="index" class="select-item" v-if="item.type==3">
                     <el-button :class="'b-grid '+getStyle(index)" @click="gotoQuestion(index)" >
                        {{index+1}}
                        <span class="red">
@@ -93,7 +93,7 @@
 
                 <h3 class="p10">判断题</h3>
                 <el-row :gutter="24" class="ml20">
-                  <el-col :span="4" v-for="(item,index) in info.answers"  :key="index" class="select-item" v-if="item.type==1">
+                  <el-col :span="3" v-for="(item,index) in info.answers"  :key="index" class="select-item" v-if="item.type==1">
                     <el-button :class="'b-grid '+getStyle(index)" @click="gotoQuestion(index)" >
                        {{index+1}}
                        <span class="red">
@@ -212,7 +212,7 @@ export default {
         let {id} = item;
         httpServer("course.loadAnswer", {id} ).then(res => {
           if( res.code != 200) return;
-          Object.assign( item, res.data)
+          Object.assign( item, res.data, {id})
           this.doLoadQuestion( item )
         })
       }else{

+ 2 - 2
src/containers/center/play/index.vue

@@ -36,9 +36,9 @@
       <el-col :span="6">
         <div>
           <el-button type="primary" class="mt10" style="font-size: 14px;" @click="startExam" v-if="tpl.examGroupId>0">
-            参加考试
+            模拟练习
           </el-button>
-          <el-button type="primary" class="mt10" style="font-size: 14px;" @click="printCert">
+          <el-button type="warning" class="mt10" style="font-size: 14px;" @click="printCert">
             学时证明
           </el-button>
          </div>