Просмотр исходного кода

Merge branch 'master' of https://git.cocorobo.cn/CocoRoboLabs/ssti-CollegeManage

yuanyiming 2 лет назад
Родитель
Сommit
1ffe7a11f3
2 измененных файлов с 3 добавлено и 2 удалено
  1. 1 1
      src/App.vue
  2. 2 1
      src/views/resultShow/resultShowDetail.vue

+ 1 - 1
src/App.vue

@@ -1,5 +1,5 @@
 <template>
-  <div ref="app" class="page core_dialogue">
+  <div class="page core_dialogue">
       <el-header v-if="$route.meta.isAuth">
         <img src="./assets/img/sclogo4.png" alt="">
         <!-- <img src="@/assets/img/szjsxy.png" alt=""> -->

+ 2 - 1
src/views/resultShow/resultShowDetail.vue

@@ -547,9 +547,10 @@
                 console.log()
                 let scrollTop = e.target.scrollTop;
                 if(scrollTop>=200){
-                    // document.querySelector(".core_dialogue").querySelector('.el-header').style.display='display:fi'
+                    document.querySelector(".core_dialogue").querySelector('.el-header').style='position:fixed;z-index:10;width:100%'
                     Nav.style = `width:100%;padding:0 20%;box-sizing: border-box;border-radius:0;display:flex;justify-content: space-around;position: fixed;top:calc(70px - 20px);z-index:99;align-items: center;box-shadow: 0 0 5px gray;`
                 }else if(scrollTop<=100){
+                    document.querySelector(".core_dialogue").querySelector('.el-header').style=''
                     Nav.style = ``
                 }
             });