jichoi / lms_front star
홍아랑 홍아랑 2024-08-12
240812 홍아랑 대시보드 및 웹캠 ui 수정
@5fcbcc06fe45a9cef65a6417f687440ab3ac679e
client/views/pages/main/Dashboard.vue
--- client/views/pages/main/Dashboard.vue
+++ client/views/pages/main/Dashboard.vue
@@ -94,16 +94,17 @@
                     </div>
 
                     <div class="race-btn">
-                        <button class="popTxt" v-for="(item, index) in items" :key="index"
-                            @click="toggleImageAndShowPopup(index, '11')">
+                        <button class="popTxt" v-for="(item, index) in items" :key="index" @click="toggleImage(index)"
+                        data-num="11">
                             <img :src="item.imgSrc3">
                             <img :src="item.imgSrc4" :style="{ display: item.isSecondImageVisible ? 'block' : 'none' }">
                         </button>
                         <p class="long">최종 평가</p>
                     </div>
-
                 </div>
+                <div class="rabbit-end" @click="ShowPopup"><img src="../../../resources/img/img138_72s.png" alt=""></div>
             </div>
+
             <!-- 팝업 -->
             <div v-show="searchOpen2" class="popup-wrap">
                 <div class="popup-box">
@@ -262,7 +263,7 @@
             <h2 class="mb40">이 단원을 끝낸 친구들</h2>
             <article class=" flex-column" style="gap: 5px;">
                 <div class="flex" style="gap: 5px;">
-                    <div @click="buttonSearch2" class="photo"><img src="../../../resources/img/img143_75s.png" alt=""></div>
+                    <div @click="buttonSearch" class="photo"><img src="../../../resources/img/img143_75s.png" alt=""></div>
                     <div @click="buttonSearch" class="photo"><img src="../../../resources/img/img143_75s.png" alt=""></div>
                 </div>
             </article>
@@ -271,7 +272,7 @@
                 <div class="popup-box ">
                     <div class="flex mb10  justify-between">
                         <p class="popup-title">알림</p>
-                        <button type="button" class="popup-close-btn" @click="closeBtn2">
+                        <button type="button" class="popup-close-btn" @click="closeModal">
                             <svg-icon type="mdi" :path="mdiWindowClose" class="close-btn"></svg-icon>
                         </button>
                     </div>
@@ -367,6 +368,9 @@
                 this.searchOpen2 = true;  // 모달창 열기
             }
         },
+        ShowPopup() {
+            this.searchOpen2 = true;  // 촬영 여부 묻는 모달창 열기
+        },
         updateContent(index) {
             this.selectedIndex = index;
 
@@ -401,12 +405,14 @@
                     console.log("error>>>>>>>>", error);
                 });
         },
-        closeModal() {  //웹캠 팝업 닫기
+        closeModal() {  //웹캠 및 모든 팝업 닫기
             // this.showModal = false;
+            this.searchOpen = false;
             this.searchOpen2 = false;
             this.showCameraModal = false;
             this.photoTaken = false;
             this.photo = null;
+            this.showPhotoModal = false;
 
             //스트림 종료
             if (this.stream) {
@@ -841,4 +847,8 @@
 .toolbar input {
     margin: 5px;
 }
+
+.rabbit-end {
+    cursor: pointer;
+}
 </style>
(No newline at end of file)
Add a comment
List