Skip to content

Commit

Permalink
Merge pull request #93 from leejaeseong11/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
qbobl5 authored Dec 21, 2023
2 parents a867901 + 1c62a4b commit 6230d4b
Show file tree
Hide file tree
Showing 3 changed files with 201 additions and 225 deletions.
35 changes: 27 additions & 8 deletions src/views/code/CodeView.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<template>
<main>
<div id="layout">
<div v-if="this.reportPopup" id="back-off" @click="offPopup"></div>

<div id="title">
<div id="quiz-title-div">{{ this.quizTitle }}</div>
</div>
Expand Down Expand Up @@ -97,7 +95,10 @@
<div id="button-area">
<div></div>
<div id="right-button">
<button id="rpt-button" @click="rptQuiz">문제 신고하기</button>&nbsp;
<div v-if="reportModal" id="back-off" @click="offReportModal"></div>
<AddReport v-if="reportModal" id="report-popup" @close-modal="offReportModal"
:quizInfo="{quizNo, quizTitle}"></AddReport>
<button id="rpt-button" @click="reportButtonClickHandler">문제 신고하기</button>&nbsp;
<button id="close-button" @click="closePage">닫기</button>
</div>
</div>
Expand All @@ -107,10 +108,14 @@
</main>
</template>
<script>
import { apiClient } from '@/util/axios-interceptor'
import AddReport from '../../components/report/AddReport.vue'
export default {
name: 'CodeView',
props: ['quizInfo'],
components: { AddReport},
data() {
return {
quizNo: 0,
Expand All @@ -125,7 +130,7 @@ export default {
outputInfo: '',
reportList: [],
rptOkCnt: 0,
reportPopup: false,
reportModal: false,
memberNo: '',
quizUrl: '',
fileContent: ''
Expand All @@ -140,11 +145,11 @@ export default {
return null
}
},
rptQuiz() {
this.reportPopup = true
reportButtonClickHandler() {
this.reportModal = true
},
offPopup() {
this.reportPopup = false
offReportModal() {
this.reportModal = false
},
closePage() {
const memberNo = this.$route.params.memberNo
Expand Down Expand Up @@ -432,4 +437,18 @@ textarea {
#report-id {
font-size: 14px;
}
#report-popup {
padding: 10px;
position: fixed;
background-color: var(--main1-color);
border: 8px solid var(--main5-color);
border-radius: 10px;
width: 700px;
height: 320px;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 2;
}
</style>
2 changes: 1 addition & 1 deletion src/views/member/Login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ html {
}
input {
height: 20px;
height: 30px;
}
.join,
Expand Down
Loading

0 comments on commit 6230d4b

Please sign in to comment.