瀏覽代碼

图片删除样式修改

yuanyiming 1 年之前
父節點
當前提交
ac1de36af6

二進制
src/assets/images/eva/closecha.png


+ 19 - 9
src/views/eva/components/ImageComponent.vue

@@ -11,7 +11,7 @@
         <img :src="item" alt="" />
       </div>
       <div class="deleteImg" @click="deleteItem(item)">
-        <img src="../../../assets/images/eva/delpic.png" alt="" />
+        <img src="../../../assets/images/eva/closecha.png" alt="" />
       </div>
     </div>
     <!-- </div> -->
@@ -157,21 +157,24 @@ export default {
   width: 100%;
   display: flex;
   flex-wrap: wrap;
+  .imgItem:nth-child(4n) {
+    margin-right: 0;
+  }
   .imgItem {
     position: relative;
-    width: 74px;
+    width: 22%;
     height: 66px;
     display: flex;
     justify-content: center;
     align-items: center;
-    margin: 10px 0;
-    margin-right: 4px;
+    // margin: 2%;
+    margin-right: 3%;
+    margin-top: 4px;
 
     border: 1px solid rgba(217, 217, 217, 1);
 
     .itemImg {
       height: 100%;
-
       // height: 66px;
       z-index: 1;
       > img {
@@ -185,12 +188,19 @@ export default {
       width: 17px;
       height: 17px;
       position: absolute;
-      right: 3px;
-      top: 3px;
+      right: 0px;
+      top: 0px;
+      display: flex;
+      justify-content: center;
+      align-items: center;
+      // box-sizing: border-box;
+      padding: 1px;
+      border-end-start-radius: 4px;
+      background-color: rgba(0, 0, 0, 0.4);
       z-index: 9;
       > img {
-        width: 100%;
-        height: 100%;
+        width: 95%;
+        height: 95%;
       }
     }
   }

+ 11 - 10
src/views/eva/studentDetail.vue

@@ -612,16 +612,17 @@ export default {
     //   // this.getTermRecord()
     // },
   },
-  beforeRouteEnter(to, from, next) {
-    document.addEventListener(
-      'touchmove',
-      function(event) {
-        event.preventDefault()
-      },
-      false
-    )
-    next(vm => {})
-  },
+  // beforeRouteEnter(to, from, next) {
+  //   document.addEventListener(
+  //     'touchmove',
+  //     function(event) {
+  //       console.log('event', event)
+  //       event.preventDefault()
+  //     },
+  //     false
+  //   )
+  //   next(vm => {})
+  // },
   mounted() {},
   created() {
     this.stuId = localStorage.getItem('userId')

+ 2 - 1
src/views/eva/studentEvaluate.vue

@@ -450,6 +450,7 @@ export default {
     // 添加新纪录进行判断
     repetitionSave(e) {
       // let isOk = 0
+      // this.getPresentDate()
 
       if (this.selectWData.length === 0) return (this.wei = true)
 
@@ -895,7 +896,7 @@ export default {
   box-sizing: border-box;
   // position: relative;
   padding-bottom: 80px;
-  min-height: 130vh;
+  min-height: 120vh;
   background-image: linear-gradient(to bottom, #005ccd 1%, #005ccd 12%, #f6f5f8 35%, #f6f5f8 100%);
   .rl {
     position: absolute;