浏览代码

fix 图片过大的问题

Michael Wang 6 年之前
父节点
当前提交
7cd5adcc4f
共有 2 个文件被更改,包括 21 次插入5 次删除
  1. 9 1
      src/features/OnlineExam/Examing/ExamingEnd.vue
  2. 12 4
      src/features/OnlineExam/OnlineExamOverview.vue

+ 9 - 1
src/features/OnlineExam/Examing/ExamingEnd.vue

@@ -1,6 +1,6 @@
 <template>
 
-  <div class="container" v-if="afterExamRemark !== null">
+  <div class="container" id="exam-end" v-if="afterExamRemark !== null">
     <div class="instructions">
       <h1 class="">考试已结束</h1>
       <div><img class="user-avatar" :src="user.photoPath" alt="无底照" /></div>
@@ -150,3 +150,11 @@ export default {
   text-align: left;
 } */
 </style>
+
+
+<style>
+#exam-end img {
+  max-width: 100%;
+  height: auto !important;
+}
+</style>

+ 12 - 4
src/features/OnlineExam/OnlineExamOverview.vue

@@ -1,6 +1,6 @@
 <template>
 
-  <div class="container" v-if="startInfo && paperStruct">
+  <div class="container" id="exam-overview" v-if="startInfo && paperStruct">
     <div class="instructions">
       <h1 class="">考试说明</h1>
       <div class="" style="text-align: left;  padding-bottom: 20px">
@@ -56,9 +56,9 @@ export default {
     this.intervalId = setInterval(() => {
       this.remainTime -= 1;
       this.isForceRead = TOTAL_READ_TIME - this.remainTime < FORCE_READ_TIME;
-      if (this.remainTime === 0) {
-        this.goToPaper();
-      }
+      // if (this.remainTime === 0) {
+      //   this.goToPaper();
+      // }
     }, 1000);
 
     const exam = await this.$http.get(
@@ -160,3 +160,11 @@ export default {
   float: right;
 }
 </style>
+
+<style>
+#exam-overview img {
+  max-width: 100%;
+  height: auto !important;
+}
+</style>
+