Merge commit 'fdb1e175de25991ce26be7d89d8a8a171bae5fc1' into jenkins_with_weblogic

This commit is contained in:
Rinjae
2026-03-04 09:53:08 +09:00
8 changed files with 45 additions and 117 deletions
@@ -30,29 +30,13 @@
</a>
</div>
<!-- Service Categories (Accordion) -->
<div class="menu-section accordion-section" th:each="service : ${services}">
<div class="menu-title accordion-trigger"
th:classappend="${selected == service.id} ? 'active expanded'"
th:data-group="${service.id}">
<span class="menu-title-text">[[${service.groupName}]]</span>
<span class="accordion-icon">
<i class="fas fa-chevron-down"></i>
</span>
</div>
<!-- Level 2: API List (Accordion Content) -->
<div class="api-list accordion-content"
th:if="${service.apiGroupApiList != null and !service.apiGroupApiList.isEmpty()}"
th:classappend="${selected == service.id} ? 'expanded'">
<div class="api-item"
th:each="api : ${service.apiGroupApiList}"
th:data-api-id="${api.apiId}"
th:classappend="${apiSpecInfo != null and apiSpecInfo.apiId == api.apiId} ? 'active'"
th:attr="data-href=@{/apis/detail(id=${api.apiId})}">
<span class="api-name" th:text="${api.apiDesc}">API Name</span>
</div>
</div>
<!-- Service Categories -->
<div class="menu-section" th:each="service : ${services}">
<a class="menu-title"
th:classappend="${selected == service.id} ? 'active'"
th:href="@{/apis(groupIds=${service.id})}">
[[${service.groupName}]]
</a>
</div>
</nav>
</aside>
@@ -183,7 +167,7 @@
const mobileToggle = document.getElementById('mobileToggle');
const mobileOverlay = document.getElementById('mobileOverlay');
// API Card Click Handlers
// API Card Click Handlers (if any exist)
const apiCards = document.querySelectorAll('.api-card');
apiCards.forEach(function(card) {
// Click handler
@@ -206,57 +190,6 @@
});
});
// Level 2 API Item Click Handlers
const apiItems = document.querySelectorAll('.api-item');
apiItems.forEach(function(item) {
// Click handler
item.addEventListener('click', function(e) {
e.stopPropagation(); // Prevent parent menu-title click
const href = this.getAttribute('data-href');
if (href) {
window.location.href = href;
}
});
// Keyboard accessibility
item.addEventListener('keypress', function(e) {
if (e.key === 'Enter' || e.key === ' ') {
e.preventDefault();
e.stopPropagation();
const href = this.getAttribute('data-href');
if (href) {
window.location.href = href;
}
}
});
});
// Accordion Toggle Functionality
const accordionTriggers = document.querySelectorAll('.accordion-trigger');
accordionTriggers.forEach(function(trigger) {
trigger.addEventListener('click', function(e) {
e.preventDefault();
const menuSection = this.closest('.accordion-section');
const accordionContent = menuSection.querySelector('.accordion-content');
if (accordionContent) {
// Toggle expanded state
const isExpanded = this.classList.contains('expanded');
if (isExpanded) {
// Close this accordion
this.classList.remove('expanded');
accordionContent.classList.remove('expanded');
} else {
// Open this accordion
this.classList.add('expanded');
accordionContent.classList.add('expanded');
}
}
});
});
// Mobile Menu Toggle
if (mobileToggle && sidebar && mobileOverlay) {
mobileToggle.addEventListener('click', function(e) {
@@ -2,7 +2,7 @@
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:th="http://www.thymeleaf.org"
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
layout:decorate="~{layout/kbank_nohead_layout}">
layout:decorate="~{layout/kjbank_nohead_layout}">
<body>
<section layout:fragment="contentFragment" class="content pop">
<div class="sub_title2">
@@ -90,11 +90,6 @@
compRegNo: $('#compRegNo').val().trim() !== '',
corpRegNo: $('#corpRegNo').val().trim() !== '',
orgName: $('#orgName').val().trim() !== '',
ceoName: $('#ceoName').val().trim() !== '',
orgAddr: $('#orgAddr').val().trim() !== '',
orgPhoneNumber: $('#orgPhoneNumber').val().trim() !== '',
scPhoneNumber: $('#scPhoneNumber').val().trim() !== '',
serviceName: $('#serviceName').val().trim() !== '',
compRegFile: $('#compRegFile').val().trim() !== ''
};
@@ -104,11 +99,6 @@
compRegNo: '사업자등록번호를 입력해주세요.',
corpRegNo: '법인등록번호를 입력해주세요.',
orgName: '법인명을 입력해주세요.',
ceoName: '대표자 성명을 입력해주세요.',
orgAddr: '사업장 소재지를 입력해주세요.',
orgPhoneNumber: '회사 전화번호를 입력해주세요.',
scPhoneNumber: '고객센터 전화번호를 입력해주세요.',
serviceName: '서비스명을 입력해주세요.',
compRegFile: '사업자등록증을 업로드해주세요.'
};
@@ -150,18 +140,12 @@
success: function(response) {
console.log('폼 제출 성공:', response);
// 응답이 JSON인 경우
if (typeof response === 'object') {
if (response.status === 'SUCCESS') {
customPopups.showSuccess(response.message || '법인회원 전환 신청이 완료되었습니다.', function() {
window.location.href = /*[[@{/mypage}]]*/ '/mypage';
});
} else {
customPopups.showAlert(response.message || '처리 중 오류가 발생했습니다.');
}
if (response.status === 'SUCCESS') {
customPopups.showAlert(response.message || '법인회원 전환 신청이 완료되었습니다.', function() {
window.location.href = response.redirectUrl || /*[[@{/apps/mypage/UserConversionCompleted}]]*/ '/apps/mypage/UserConversionCompleted';
});
} else {
// 응답이 HTML인 경우 (페이지 리다이렉트)
window.location.href = /*[[@{/mypage}]]*/ '/mypage';
customPopups.showAlert(response.message || '처리 중 오류가 발생했습니다.');
}
},
error: function(xhr, status, error) {
@@ -166,12 +166,14 @@
businessTransferBtn.addEventListener('click', () => {
customPopups.showConfirm(
'법인 회원으로 전환하시겠습니까?',
() => {
const transferForm = document.createElement('form');
transferForm.method = 'GET';
transferForm.action = '/mypage/org-transfer';
document.body.appendChild(transferForm);
transferForm.submit();
(confirmed) => {
if (confirmed) {
const transferForm = document.createElement('form');
transferForm.method = 'GET';
transferForm.action = '/mypage/org-transfer';
document.body.appendChild(transferForm);
transferForm.submit();
}
}
);
});
@@ -2,7 +2,7 @@
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:th="http://www.thymeleaf.org"
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
layout:decorate="~{layout/kbank_nohead_layout}">
layout:decorate="~{layout/kjbank_nohead_layout}">
<body>
<section layout:fragment="contentFragment" class="content pop">
<div class="sub_title2">
@@ -2,7 +2,7 @@
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:th="http://www.thymeleaf.org"
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
layout:decorate="~{layout/kbank_nohead_layout}">
layout:decorate="~{layout/kjbank_nohead_layout}">
<body>
<section layout:fragment="contentFragment" class="content pop">
<div class="sub_title2">
@@ -2,7 +2,7 @@
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:th="http://www.thymeleaf.org"
xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
layout:decorate="~{layout/kbank_nohead_layout}">
layout:decorate="~{layout/kjbank_nohead_layout}">
<body>
<section layout:fragment="contentFragment" class="content pop">
<div class="sub_title2">