|
|
@@ -42,14 +42,26 @@
|
|
|
<div class="t_info blt_dot mb15 light">문의를 남겨 주시면 24시간 이내(토/일/공휴일 제외)에 답변 드릴 수 있도록 최선을 다 하겠습니다.</div>
|
|
|
|
|
|
<form class="form_wrap" role="form" name="qnaForm" id="qnaForm" th:action="@{'/callcenter/onetoone/qna/create'}" method="post">
|
|
|
+<!-- <div class="form_field"> -->
|
|
|
+<!-- <label class="ui_col_2 input_label">문의 유형</label> -->
|
|
|
+<!-- <div class="ui_col_10 form_full"> -->
|
|
|
+<!-- <div class="input_wrap"> -->
|
|
|
+<!-- <select name="counselClsf" required="required" data-valid-name="문의유형"> -->
|
|
|
+<!-- <option value="">유형을 선택해 주세요</option> -->
|
|
|
+<!-- <option th:if="${counselClsfList}" th:each="oneData, status : ${counselClsfList}" th:value="${oneData.cd}" th:text="${oneData.cdNm}"></option> -->
|
|
|
+<!-- </select> -->
|
|
|
+<!-- </div> -->
|
|
|
+<!-- </div> -->
|
|
|
+<!-- </div> -->
|
|
|
<div class="form_field">
|
|
|
<label class="ui_col_2 input_label">문의 유형</label>
|
|
|
- <div class="ui_col_10 form_full">
|
|
|
- <div class="input_wrap">
|
|
|
- <select name="counselClsf" required="required" data-valid-name="문의유형">
|
|
|
- <option value="">유형을 선택해 주세요</option>
|
|
|
- <option th:if="${counselClsfList}" th:each="oneData, status : ${counselClsfList}" th:value="${oneData.cd}" th:text="${oneData.cdNm}"></option>
|
|
|
- </select>
|
|
|
+ <div class="ui_col_4 form_full"><!-- 210415 변경 : 필드 클래스 (ui_col_10 → ui_col_4) 변경 -->
|
|
|
+ <div class="select_custom">
|
|
|
+ <div class="combo"><!-- 210415 추가 : 텍스트 '필수' -->
|
|
|
+ <div class="select">유형을 선택해 주세요 (필수)</div>
|
|
|
+ <ul class="list" id="ulCounselClsf">
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -135,8 +147,34 @@
|
|
|
$(document).ready(function() {
|
|
|
// 고객센터 LNB 설정
|
|
|
fnSetCallcenterLnb(2);
|
|
|
+
|
|
|
+ var counselClsfList = [[${counselClsfList}]];
|
|
|
+ var tag = '';
|
|
|
+ $.each(counselClsfList, function(idx, item) {
|
|
|
+ tag += '<li onclick="fnChangeCounselClsf(\'' + item.cd + '\');">' + item.cdNm + '</li>\n';
|
|
|
+ });
|
|
|
+ $('#ulCounselClsf').html(tag);
|
|
|
+
|
|
|
+ // 문의유형
|
|
|
+ var cs_selecter01 = new sCombo('.cs .contactUs_my .select_custom');
|
|
|
});
|
|
|
|
|
|
+ // 문의유형 선택 시
|
|
|
+ var fnChangeCounselClsf = function(counselClsf) {
|
|
|
+ var actionUrl = '/callcenter/onetoone/qna/answer/template/' + counselClsf;
|
|
|
+ $.get(actionUrl
|
|
|
+ , function(data) {
|
|
|
+ if (!gagajf.isNull(data)) {
|
|
|
+ $('textarea[name=questContent]').val(data);
|
|
|
+ $('.doc_contactus').trigger('keyup');
|
|
|
+ } else {
|
|
|
+ // 초기화
|
|
|
+ $('textarea[name=questContent]').val('');
|
|
|
+ $('.doc_contactus').trigger('keyup');
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
// text_area
|
|
|
$('.doc_contactus').keyup(function (e) {
|
|
|
var content = $(this).val();
|