Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
students
butter-studio
Commits
30a418f0
Commit
30a418f0
authored
Aug 10, 2021
by
Jiwon Yoon
Browse files
timeTableId
parent
49fc2a67
Changes
2
Show whitespace changes
Inline
Side-by-side
client/src/pages/PaymentPage/PaymentPage.js
View file @
30a418f0
...
...
@@ -74,7 +74,6 @@ const Payment = ({ location }) => {
userType
:
"
member
"
,
user
:
userInfo
.
id
,
...
ticketInfo
,
timetableId
:
1
})
const
responsekakao
=
await
kakaopayApi
.
approveReq
({
cid
:
'
TC0ONETIME
'
,
...
...
@@ -100,7 +99,6 @@ const Payment = ({ location }) => {
userType
:
"
guest
"
,
user
:
guestID
,
...
ticketInfo
,
timetableId
:
1
})
const
responsekakao
=
await
kakaopayApi
.
approveReq
({
cid
:
'
TC0ONETIME
'
,
...
...
client/src/pages/TicketingSeatPage.js
View file @
30a418f0
...
...
@@ -32,7 +32,7 @@ const TicketingSeatPage = ({ location }) => {
useEffect
(()
=>
{
getInfo
()
},
[])
},
[
ticketInfo
.
timetableId
])
useEffect
(()
=>
{
getTicketFee
()
...
...
@@ -45,7 +45,7 @@ const TicketingSeatPage = ({ location }) => {
theaterId
:
ticketInfo
.
selectedTheater
})
setTheaterInfo
(
response
.
data
)
const
response2
=
await
reservationApi
.
findReservedSeats
(
1
);
const
response2
=
await
reservationApi
.
findReservedSeats
(
ticketInfo
.
timetableId
);
const
reserve
=
response2
.
map
((
el
)
=>
el
.
row
+
'
-
'
+
el
.
col
);
...
...
@@ -181,7 +181,7 @@ const TicketingSeatPage = ({ location }) => {
?
<
ul
>
<
li
>
영화
:
{
ticketInfo
.
title
}
<
/li
>
<
li
>
극장
:
{
ticketInfo
.
cinema
}
<
/li
>
<
li
>
일시
:
2021
/
07
/
21
10
:
00
<
/li
>
<
li
>
일시
:
{
ticketInfo
.
time
}
<
/li
>
<
li
>
상영관
:
{
ticketInfo
.
selectedTheater
}
관
<
/li
>
<
li
>
좌석
:
{
selectedSeats
.
map
(
el
=>
String
.
fromCharCode
(
parseInt
(
el
.
split
(
'
-
'
)[
0
])
+
64
)
+
el
.
split
(
'
-
'
)[
1
])
+
'
'
}
<
/li
>
<
/ul
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment