카카오톡 인앱 WebView는 서브도메인 간 쿠키를 공유하지 않아 tkds에서 로그인 후 tkfb로 리다이렉트 시 인증이 풀리는 문제. - sso-relay.js: URL hash의 _sso= 토큰을 로컬 쿠키+localStorage로 설정 - gateway dashboard: 로그인 후 redirect URL에 #_sso=<token> 추가 - 전 서비스 HTML: core JS 직전에 sso-relay.js 로드 (81개 파일) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
90 lines
4.9 KiB
HTML
90 lines
4.9 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="ko">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>협력업체 포털 - TK 구매관리</title>
|
|
<script src="https://cdn.tailwindcss.com"></script>
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
|
<link rel="stylesheet" href="/static/css/tkpurchase.css?v=2026031602">
|
|
</head>
|
|
<body>
|
|
<!-- Header -->
|
|
<header class="bg-emerald-700 text-white sticky top-0 z-50">
|
|
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
|
<div class="flex justify-between items-center h-14">
|
|
<div class="flex items-center gap-3">
|
|
<i class="fas fa-truck text-xl text-emerald-200"></i>
|
|
<h1 class="text-lg font-semibold">TK 구매관리</h1>
|
|
</div>
|
|
<div class="flex items-center gap-4">
|
|
<div id="headerUserName" class="text-sm font-medium hidden sm:block">-</div>
|
|
<div id="headerUserAvatar" class="w-8 h-8 bg-emerald-600 rounded-full flex items-center justify-center text-sm font-semibold">-</div>
|
|
<button onclick="doLogout()" class="text-emerald-200 hover:text-white" title="로그아웃"><i class="fas fa-sign-out-alt"></i></button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
|
|
<div class="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-4 fade-in">
|
|
<!-- 환영 메시지 -->
|
|
<div class="bg-emerald-50 rounded-xl p-5 mb-5">
|
|
<div class="flex items-center gap-3">
|
|
<div class="w-12 h-12 bg-emerald-100 rounded-full flex items-center justify-center">
|
|
<i class="fas fa-building text-emerald-600 text-xl"></i>
|
|
</div>
|
|
<div class="flex-1">
|
|
<h2 class="text-lg font-semibold text-emerald-800" id="welcomeCompanyName">-</h2>
|
|
<p class="text-sm text-emerald-600">작업 일정을 확인하세요.</p>
|
|
</div>
|
|
<a href="/partner-history.html" class="flex items-center gap-1 px-3 py-2 bg-white text-emerald-700 rounded-lg text-sm hover:bg-emerald-100 border border-emerald-200 flex-shrink-0">
|
|
<i class="fas fa-history"></i><span class="hidden sm:inline">작업 이력</span>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 오늘 일정 카드 -->
|
|
<div id="scheduleCards" class="space-y-4">
|
|
<p class="text-gray-400 text-center py-8 text-sm">로딩 중...</p>
|
|
</div>
|
|
|
|
<!-- 신청 대기 / 반려 카드 영역 -->
|
|
<div id="requestCards" class="hidden space-y-4"></div>
|
|
|
|
<!-- 작업 신청 폼 -->
|
|
<div id="workRequestForm" class="hidden bg-white rounded-xl shadow-sm p-6">
|
|
<h3 class="text-base font-semibold text-gray-800 mb-4">
|
|
<i class="fas fa-paper-plane text-emerald-500 mr-2"></i>작업 신청
|
|
</h3>
|
|
<p class="text-sm text-gray-500 mb-4">오늘 예정된 작업 일정이 없습니다. 작업이 필요하시면 아래에서 신청해주세요.</p>
|
|
<div class="space-y-3">
|
|
<div>
|
|
<label class="block text-xs font-medium text-gray-600 mb-1">작업일 <span class="text-red-400">*</span></label>
|
|
<input type="date" id="reqStartDate" class="input-field w-full px-3 py-2 rounded-lg text-sm">
|
|
</div>
|
|
<div>
|
|
<label class="block text-xs font-medium text-gray-600 mb-1">예상 인원</label>
|
|
<input type="number" id="reqExpectedWorkers" min="1" value="1" class="input-field w-full px-3 py-2 rounded-lg text-sm">
|
|
</div>
|
|
<div>
|
|
<label class="block text-xs font-medium text-gray-600 mb-1">작업 내용 <span class="text-red-400">*</span></label>
|
|
<textarea id="reqWorkDescription" rows="3" class="input-field w-full px-3 py-2 rounded-lg text-sm" placeholder="작업 내용을 입력하세요"></textarea>
|
|
</div>
|
|
<div>
|
|
<label class="block text-xs font-medium text-gray-600 mb-1">작업장</label>
|
|
<input type="text" id="reqWorkplaceName" class="input-field w-full px-3 py-2 rounded-lg text-sm" placeholder="작업 장소">
|
|
</div>
|
|
<button onclick="doWorkRequest()" class="w-full px-4 py-3 bg-emerald-600 text-white rounded-lg text-sm hover:bg-emerald-700 font-medium">
|
|
<i class="fas fa-paper-plane mr-1"></i>작업 신청
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<script src="/static/js/sso-relay.js?v=20260401"></script>
|
|
<script src="/static/js/tkpurchase-core.js?v=2026040101"></script>
|
|
<script src="/static/js/tkpurchase-partner-portal.js?v=2026031602"></script>
|
|
<script>initPartnerPortal();</script>
|
|
</body>
|
|
</html>
|