Skip to content

Commit f9c82f2

Browse files
committed
구매페이지 정보 수정: 전화번호 필드 추가
1 parent 47d8a69 commit f9c82f2

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

ticket/templates/ticket-detail.html

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,17 @@
2121
>
2222
const IMP = window.IMP;
2323
const data = document.currentScript.dataset;
24+
2425
IMP.init("imp80859147");
2526

2627
function requestPay(payment_key, name, amount) {
28+
const tel_no = document.getElementById("purchase_tel_no").value;
29+
30+
if (tel_no === undefined || tel_no === "") {
31+
alert("전화번호를 입력하세요");
32+
return
33+
}
34+
2735
IMP.request_pay(
2836
{
2937
pg: "html5_inicis.INIpayTest",
@@ -53,8 +61,12 @@
5361
<title>티켓 상세</title>
5462
</head>
5563
<body>
56-
<h1>{{ ticket_type.name }}</h1>
57-
<p>{{ ticket_type.desc }}</p>
64+
<h1>{{ ticket_type.name }}</h1>
65+
<p>상품명: {{ ticket_type.desc }}</p>
66+
67+
<p>
68+
전화번호: <input id="purchase_tel_no" type="tel"/>
69+
</p>
5870

5971
<button onclick="requestPay()">
6072
구매하기

0 commit comments

Comments
 (0)