Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -308,10 +308,8 @@ async function submitSurvey(surveyData) {
});

console.log('설문 제출 성공:', response);
alert('설문이 성공적으로 제출되었습니다!');
} catch (error) {
console.error('설문 제출 실패:', error);
alert('설문 제출에 실패했습니다.');
}
}

Expand Down
29 changes: 0 additions & 29 deletions src/views/review/ReviewCheck.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,37 +55,8 @@
</button>
</div>
</div>
<div class="date-time-container">
<!-- TimeModal 컴포넌트 적용 -->
<TimeModal :isVisible="showTimeModal" @update:isVisible="showTimeModal = $event"
@timeSelected="handleTimeSelected"></TimeModal>
<label for="timepicker" class="input-label input-label-inner">
<!-- 시간 표시 -->
<span class="date-time-display">
<span class="place_blind">방문시간</span>
<time aria-hidden="true">{{ selectedTime }}</time>
<!-- 수정된 부분 -->
<span class="place_blind">Invalid Date</span>
</span>
</label>
<!-- 시간 선택 버튼 추가 -->
<button class="button-base" @click="showTimeModal = true">
시간 수정
</button>
</div>
</div>
<div class="confirmation-message">
방문하신 날짜와 시간을 확인해 주세요.
</div>
</div>
<div class="decision-buttons-container">
<button class="button-base button-secondary" type="button">
이 장소가 아니에요
</button>
<button class="button-base button-secondary button-confirm" type="button" @click="confirmReceipt">
이 장소가 맞아요
</button>
</div>
</div>
</template>
<script>
Expand Down
17 changes: 16 additions & 1 deletion src/views/review/ReviewWrite.vue
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,20 @@ export default {

return canvas;
},
showNotification(message) {
this.notification = message;
this.$nextTick(() => {
const notificationElement = this.$refs.notification;
notificationElement.classList.add('fade-in');
setTimeout(() => {
notificationElement.classList.remove('fade-in');
notificationElement.classList.add('fade-out');
setTimeout(() => {
this.notification = '';
}, 500);
}, 1500);
});
},
async confirmUpload() {
try {
const formData = new FormData();
Expand Down Expand Up @@ -243,8 +257,9 @@ export default {
} else {
this.showNotification('리뷰 데이터 업로드에 실패하였습니다. 다시 시도해주세요.')
}
this.$router.push('/review/recommended');

}
this.$router.push('/review/recommended');
},
showNotification(message) {
this.notification = message;
Expand Down