구독서비스 결제 화면 적용(모바일)
This commit is contained in:
@@ -77,6 +77,27 @@
|
||||
});
|
||||
}
|
||||
|
||||
/*************************************************************
|
||||
구매하기 버튼
|
||||
**************************************************************/
|
||||
const fn_purchs_subsvc = function() {
|
||||
var checkedValue = $("select[name='subsvcInnb']").val();
|
||||
|
||||
var tempForm = $('<form>', {
|
||||
method: 'post',
|
||||
action: '/sopmal/ordr/selectSubsvcPurchsForm'
|
||||
});
|
||||
$('<input>', {
|
||||
type: 'hidden',
|
||||
name: 'subsvcInnb',
|
||||
value: checkedValue
|
||||
}).appendTo(tempForm);
|
||||
|
||||
tempForm.appendTo('body');
|
||||
tempForm.submit();
|
||||
tempForm.remove();
|
||||
}
|
||||
|
||||
/******************************************************
|
||||
* 숫자 자릿점 포메팅
|
||||
* ****************************************************/
|
||||
@@ -179,7 +200,7 @@
|
||||
<main>
|
||||
<div class="sub-wrapper">
|
||||
<div class="sub-content">
|
||||
<form method="post" action="/sopmal/ordr/selectSubsvcPurchsForm">
|
||||
<form>
|
||||
<h2 class="subList__title">구독 서비스</h2>
|
||||
<div class="ck-content" style="border: 1px solid #e9ecef; background-color: #f8f9fB;">
|
||||
<c:out value="${ resultMap.sopmalInfo[0].subsvcGuidanceWords }" escapeXml="false"/>
|
||||
@@ -218,7 +239,7 @@
|
||||
<span id="selpric" class="product-unit-price__current"></span>
|
||||
<span id="dscntRaito" style="color: red">%</span>
|
||||
</div>
|
||||
<button id="subscribeBtn" class="btn theme large">구독하기</button>
|
||||
<button type="button" id="subscribeBtn" class="btn theme large" onclick="fn_purchs_subsvc();">구독하기</button>
|
||||
</div>
|
||||
</div>
|
||||
</c:when>
|
||||
@@ -241,7 +262,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="fixedProduct__right">
|
||||
<button type="button" id="fixedButton" class="btn theme lg purchsOrdr">구독하기</button>
|
||||
<button type="button" id="fixedButton" class="btn theme lg purchsOrdr" onclick="fn_purchs_subsvc();">구독하기</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user