jichoi / lms_front star
이은진 이은진 08-16
240816 이은진, 정다정 대시보드 수정 완료
@d629a371e60dbde59da6afe0cb8bd1e151241111
 
client/resources/img/fireworks.gif (Binary) (added)
+++ client/resources/img/fireworks.gif
Binary file is not shown
client/views/pages/main/Chapter/Chapter2_8.vue
--- client/views/pages/main/Chapter/Chapter2_8.vue
+++ client/views/pages/main/Chapter/Chapter2_8.vue
@@ -83,7 +83,7 @@
   },
   methods: {
     complete() {
-      this.$router.push({ name: 'Dashboard', query: { value: 3 } });
+      this.$router.push({ name: 'Dashboard', query: { value: 11 } });
     },
     goToPage(page) {
       this.$router.push({ name: page });
client/views/pages/main/Dashboard.vue
--- client/views/pages/main/Dashboard.vue
+++ client/views/pages/main/Dashboard.vue
@@ -131,6 +131,17 @@
                         <p class="long">최종 평가</p>
                     </div>
 
+
+
+                </div>
+                <div class="race-btn">
+                    <div class="rabbit-running" style="
+    display: flex;
+"><img class="rabbit-end" src="../../../resources/img/img138_72s.png" alt=""
+                            :style="{ display: rabbitEnd ? 'block' : 'none' }">
+                        <img class="fireworks-end" src="../../../resources/img/fireworks.gif" alt=""
+                            :style="{ display: rabbitEnd ? 'block' : 'none' }">
+                    </div>
                 </div>
 
                 <button class="login-btn mt50" type="submit" style="width: 100%;" @click="finishSchedule"><img
@@ -375,6 +386,7 @@
             state: '',
             rabbitPos: [1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
             rabbitCompl: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
+            rabbitEnd: false,
         }
     },
     methods: {
@@ -389,8 +401,14 @@
 
                 this.rabbitPos[parseInt(this.$route.query.value, 10) + 1] = true
                 for (var i = 0; i < this.$route.query.value; i++) {
-
                     this.rabbitCompl[i + 1] = true
+                }
+
+                if (this.$route.query.value === '11') {
+                    this.rabbitEnd = true;
+                    setTimeout(() => {
+                        this.searchOpen2 = true;
+                    }, 1000);
                 }
 
             }
@@ -904,7 +922,7 @@
 }
 </script>
 
-<style>
+<style scoped>
 .body {
     width: 1435px;
     height: auto;
@@ -982,6 +1000,11 @@
 
 .rabbit-end {
     cursor: pointer;
+    display: block;
+    position: absolute;
+    bottom: 0px;
+    left: -15px;
+    z-index: 10000;
 }
 
 .rabbit-running {
@@ -992,4 +1015,11 @@
     transform: scaleX(-1);
     transition: all 0.5s ease-in-out;
 }
+
+.fireworks-end {
+    position: absolute;
+    bottom: 70px;
+    left: -40px;
+    width: 20rem;
+}
 </style>
(파일 끝에 줄바꿈 문자 없음)
Add a comment
List