fix : 1:1문의 사용자 조회/수정
This commit is contained in:
@@ -192,11 +192,15 @@
|
||||
/*상품 상세 등록시 qna 목록 재조회*/
|
||||
if ($("#listAt").val() === 'list') {
|
||||
fn_select_qna(1);
|
||||
}else if ($("#listAt").val() === 'm2m') {
|
||||
/*1:1 문의*/
|
||||
setMenuCode('39','/sopmal/mpage/act/selectM2mQnaInqire?bbsId=mbrqna');
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
||||
/*********************************************************
|
||||
* 게시글 등록
|
||||
*********************************************************/
|
||||
@@ -243,6 +247,7 @@
|
||||
processData: false,
|
||||
contentType: false,
|
||||
success: function (result) {
|
||||
console.log(result);
|
||||
enableButton("#regBtn");
|
||||
$("#resultAlert").text("<spring:message code="success.common.insert"/>");
|
||||
$("#result-alert-regist").modal();
|
||||
@@ -278,6 +283,7 @@
|
||||
<div class="modal-content">
|
||||
<div class="table-wrapper">
|
||||
<form id="bbsRegForm">
|
||||
<input type='hidden' name='bbsTyCd' id='bbsTyCd' value='<c:out value="${bbsInfo.bbsTyCd}"/>'>
|
||||
<table class="table write">
|
||||
<caption>게시글 등록</caption>
|
||||
<colgroup>
|
||||
@@ -301,6 +307,13 @@
|
||||
</c:choose>
|
||||
</td>
|
||||
</tr>
|
||||
<%-- 1:1 문의--%>
|
||||
<c:if test="${bbsInfo.bbsTyCd eq '12'}">
|
||||
<tr>
|
||||
<th>주문번호<span class="required-asterisk">*</span></th>
|
||||
<td><c:out value="${bbscttVO.ordrInnb}"/><input type='hidden' name='ordrInnb' value='<c:out value="${bbscttVO.ordrInnb}"/>'></td>
|
||||
</tr>
|
||||
</c:if>
|
||||
<c:if test="${bbsInfo.answRegist eq 'Y'&& bbsInfo.bbscttSndngMthCd ne '03'}"><%--답변사용여부와 게시글 문자사용여부 체크--%>
|
||||
<tr>
|
||||
<th>답변수신</th>
|
||||
@@ -595,7 +608,6 @@
|
||||
</p>
|
||||
</div>
|
||||
<div class="alert-btn-container">
|
||||
<a href="#" rel="modal:close" class="btn large outline close"><spring:message code="button.close"/></a>
|
||||
<button class="alert-btn alert-btn--confirm" id="alertBtn"><spring:message code="button.ok"/></button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1002,6 +1002,28 @@
|
||||
|
||||
}
|
||||
|
||||
/********************************************************************
|
||||
* 1:1 문의 등록폼 호출 (C)
|
||||
********************************************************************/
|
||||
const fn_pop_m2mqna_regist = (ordrInnb) => {
|
||||
$.ajax({
|
||||
type: "post",
|
||||
data: {
|
||||
authDv: "REGIST",
|
||||
reqUrl: "modal",
|
||||
bbsId: "mbrqna",
|
||||
ordrInnb: ordrInnb,
|
||||
listAt: "m2m",
|
||||
},
|
||||
url: "/sopmal/csc/selectBbscttAuth",
|
||||
success: function (data) {
|
||||
/*모달중복제거*/
|
||||
fn_close_modal("qna-pop-regist");
|
||||
$("#modalDiv").html(data);
|
||||
$("#qna-pop-regist").modal();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
@@ -90,7 +90,8 @@
|
||||
<c:when test="${order.ordrSttusCd > 54 && order.ordrSttusCd < 76 && order.sknEnvrnCd ne 'POS'}">
|
||||
<a href="javascript:void(0);" onclick="fn_call_dlvy_sweettracker_pop('<c:out value="${order.ordrInnb}"/>');" class="btn outline sm full">배송조회</a>
|
||||
<c:if test="${ order.purchsDcsnAt eq 'Y' }">
|
||||
<a href="javascript:void(0);" onclick="fn_call_refund_pop('<c:out value="${order.sopmalCd}"/>', '<c:out value="${order.ordrInnb}"/>','<c:out value="${order.ordrRceptDt}"/>', '<c:out value="${order.setleTyCd}"/>', '<c:out value="${order.ordrSttusCd}"/>');" class="btn-ordr-sttus btn gray sm full">반품신청</a>
|
||||
<%-- <a href="javascript:void(0);" onclick="fn_call_refund_pop('<c:out value="${order.sopmalCd}"/>', '<c:out value="${order.ordrInnb}"/>','<c:out value="${order.ordrRceptDt}"/>', '<c:out value="${order.setleTyCd}"/>', '<c:out value="${order.ordrSttusCd}"/>');" class="btn-ordr-sttus btn gray sm full">반품신청</a>--%>
|
||||
<a href="javascript:void(0);" onclick="fn_pop_m2mqna_regist('<c:out value="${order.ordrInnb}"/>');" class="btn-ordr-sttus btn gray sm full">반품신청</a>
|
||||
</c:if>
|
||||
<c:if test="${ order.reviewAt eq 'Y' }">
|
||||
<a href="<c:url value="/sopmal/mpage/act/selectMyRvwInqireForm"/>" class="btn-ordr-sttus btn theme sm full">리뷰작성</a>
|
||||
|
||||
@@ -798,9 +798,6 @@
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/* 반품/환불 신청 */
|
||||
const fn_post_return_regist = function(data) {
|
||||
if (!confirm("반품신청을 하시겠습니까?")) {
|
||||
@@ -1084,6 +1081,29 @@
|
||||
window.open(url, "", status);
|
||||
}
|
||||
|
||||
/********************************************************************
|
||||
* 1:1 문의 등록폼 호출 (C)
|
||||
********************************************************************/
|
||||
const fn_pop_m2mqna_regist = (ordrInnb) => {
|
||||
$.ajax({
|
||||
type: "post",
|
||||
data: {
|
||||
authDv: "REGIST",
|
||||
reqUrl: "modal",
|
||||
bbsId: "mbrqna",
|
||||
ordrInnb: ordrInnb,
|
||||
listAt: "m2m",
|
||||
},
|
||||
url: "/sopmal/csc/selectBbscttAuth",
|
||||
success: function (data) {
|
||||
/*모달중복제거*/
|
||||
fn_close_modal("qna-pop-regist");
|
||||
$("#modalDiv").html(data);
|
||||
$("#qna-pop-regist").modal();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
@@ -1289,7 +1309,7 @@
|
||||
<c:when test="${goods.ordrSttusCd > 54 && goods.ordrSttusCd < 76 && order.sknEnvrnCd ne 'POS'}">
|
||||
<a href="javascript:void(0);" onclick="fn_call_dlvy_sweettracker_pop('<c:out value="${order.ordrInnb}"/>');" id="inqireDlvy" class="btn-ordr-sttus btn outline sm full">배송조회</a>
|
||||
<c:if test="${ goods.purchsDcsnAt eq 'N' }">
|
||||
<a href="javascript:void(0);" id="reqstRefund" class="btn-ordr-sttus btn gray sm full" onclick="fn_call_refund_pop('<c:out value="${order.sopmalCd}"/>', '<c:out value="${order.ordrInnb}"/>','<c:out value="${setleDt}"/>', '<c:out value="${setleTyCd}"/>', '<c:out value="${order.ordrSttusCd}"/>');">반품신청</a>
|
||||
<a href="javascript:void(0);" id="reqstRefund" class="btn-ordr-sttus btn gray sm full" onclick="fn_pop_m2mqna_regist('<c:out value="${order.ordrInnb}"/>');">반품신청</a>
|
||||
</c:if>
|
||||
<c:choose>
|
||||
<c:when test="${goods.itemOrdrSttusCd > 54 && goods.itemOrdrSttusCd < 76 && goods.purchsDcsnAt eq 'N'}">
|
||||
@@ -1443,7 +1463,7 @@
|
||||
<c:when test="${goods.ordrSttusCd > 54 && goods.ordrSttusCd < 76 && order.sknEnvrnCd ne 'POS'}">
|
||||
<a href="javascript:void(0);" onclick="fn_call_dlvy_sweettracker_pop('<c:out value="${order.ordrInnb}"/>');" id="inqireDlvy" class="btn-ordr-sttus btn outline sm full">배송조회</a>
|
||||
<c:if test="${ goods.purchsDcsnAt eq 'N' }">
|
||||
<a href="javascript:void(0);" id="reqstRefund" class="btn-ordr-sttus btn gray sm full" onclick="fn_call_refund_pop('<c:out value="${order.sopmalCd}"/>', '<c:out value="${order.ordrInnb}"/>','<c:out value="${setleDt}"/>', '<c:out value="${setleTyCd}"/>', '<c:out value="${order.ordrSttusCd}"/>');">반품신청</a>
|
||||
<a href="javascript:void(0);" id="reqstRefund" class="btn-ordr-sttus btn gray sm full" onclick="fn_pop_m2mqna_regist('<c:out value="${order.ordrInnb}"/>');">반품신청</a>
|
||||
</c:if>
|
||||
<c:choose>
|
||||
<c:when test="${goods.itemOrdrSttusCd > 54 && goods.itemOrdrSttusCd < 76 && goods.purchsDcsnAt eq 'N'}">
|
||||
|
||||
@@ -174,6 +174,7 @@
|
||||
//등록 버튼 이벤트
|
||||
$("#regBtn").on("click", function () {
|
||||
$("#closeModalTarget").val("confirm_reg_alert");
|
||||
console.log($("#closeModalTarget").val());
|
||||
if($("#reqDv").val() === 'goodsDtl') {//상품 상세에서 등록 시
|
||||
openConfirmModal(function (onSuccess) {
|
||||
fn_regist_bbsctt(onSuccess);//등록함수
|
||||
@@ -182,7 +183,16 @@
|
||||
, 'success_reg_alert'
|
||||
, '#regSuccessBtn'
|
||||
, fn_select_qna, '1');
|
||||
}else{
|
||||
}else if($("#reqDv").val() === 'm2m') {//1:1문의
|
||||
openConfirmModal(function (onSuccess) {
|
||||
fn_regist_bbsctt(onSuccess);//등록함수
|
||||
}, 'confirm_reg_alert'
|
||||
, '#regCfrmBtn'
|
||||
, 'success_reg_alert'
|
||||
, '#regSuccessBtn'
|
||||
, fn_goM2mqna, '1');
|
||||
}else {
|
||||
console.log("등록처리");
|
||||
openConfirmModal(function (onSuccess) {
|
||||
fn_regist_bbsctt(onSuccess);//등록함수
|
||||
}, 'confirm_reg_alert'
|
||||
@@ -193,6 +203,11 @@
|
||||
});
|
||||
});
|
||||
|
||||
if (typeof fn_goM2mqna === 'undefined') {
|
||||
function fn_goM2mqna(curPage) {
|
||||
window.location.href = "/sopmal/mpage/act/selectM2mQnaInqire?bbsId=mbrqna";
|
||||
}
|
||||
}
|
||||
/*********************************************************
|
||||
* 게시글 등록
|
||||
*********************************************************/
|
||||
@@ -271,6 +286,7 @@
|
||||
<div class="microModal__content">
|
||||
<div class="microModal__inner">
|
||||
<form id="bbsRegForm">
|
||||
<input type='hidden' name='bbsTyCd' id='bbsTyCd' value='<c:out value="${bbsInfo.bbsTyCd}"/>'>
|
||||
<div class="userForm">
|
||||
<div class="userForm__inputBox">
|
||||
<div class="userForm__inputBox__item">
|
||||
@@ -286,6 +302,13 @@
|
||||
</c:otherwise>
|
||||
</c:choose>
|
||||
</div>
|
||||
<%-- 1:1 문의--%>
|
||||
<c:if test="${bbsInfo.bbsTyCd eq '12'}">
|
||||
<div class="userForm__inputBox__item">
|
||||
<div class="userForm__inputBox__itemTitle">주문번호<span class="required-asterisk">*</span></div>
|
||||
<input class="input-text full" type="text" title="주문번호" readonly="readonly" name="ordrInnb" maxlength="20" value='<c:out value="${bbscttVO.ordrInnb}"/>'>
|
||||
</div>
|
||||
</c:if>
|
||||
<c:if test="${bbsInfo.answRegist eq 'Y'&& bbsInfo.bbscttSndngMthCd ne '03'}"><%--답변사용여부와 게시글 문자사용여부 체크--%>
|
||||
<div class="userForm__inputBox__item">
|
||||
<c:if test="${empty regusrInfo.answMbtlnb}">
|
||||
|
||||
@@ -21,10 +21,11 @@
|
||||
<jsp:include page="/WEB-INF/views/comm/mobile/Include.jsp"/>
|
||||
</head>
|
||||
<spring:eval expression="@environment.getProperty('sopmalfo.common.fileupload.cdnurl')" var="cdnurl"/>
|
||||
<c:set value="${resultMap.bbsInfo}" var = "bbsInfo"/>
|
||||
<script>
|
||||
$(document).ready(function (){
|
||||
/*헤더에 타이틀 set*/
|
||||
fn_set_header_title("상품Q&A내역");
|
||||
fn_set_header_title('<c:out value="${bbsInfo.bbsNm}"/> ');
|
||||
/*마이크로모달 초기화 id 매핑*/
|
||||
MicroModal.init(
|
||||
{
|
||||
@@ -200,7 +201,7 @@
|
||||
<div class="myQnaList__right">
|
||||
<div class="myQnaList__info">
|
||||
<p class="myQnaList__info__name">
|
||||
<a href="" onclick = "fn_move_ordr_dtl('\${bbsInfo.sopmalCd}', '\${resultList.ordrInnb}'); return false;">주문번호 : \${resultList.ordrInnb}</a>
|
||||
<a href="" onclick = "fn_move_ordr_dtl('\${bbsInfo.sopmalCd}', '\${item.ordrInnb}'); return false;">주문번호 : \${item.ordrInnb}</a>
|
||||
</p>
|
||||
<p class="myQnaList__info__question">
|
||||
<span class="category">\${answCn}</span>
|
||||
@@ -284,7 +285,6 @@
|
||||
<div class="sub-page">
|
||||
<div class="myQnaList">
|
||||
<div class="sub-box">
|
||||
<c:set value="${resultMap.bbsInfo}" var = "bbsInfo"/>
|
||||
<input type = "hidden" value = "<c:out value="${bbsInfo.bbsId}"/>" id = "bbsId">
|
||||
<input type = "hidden" value = "<c:out value="${bbsInfo.bbsTyCd}"/>" id = "bbsTyCd">
|
||||
<input type = "hidden" name="slangFlterUseAt" id = "slangFlterUseAt" value = "<c:out value="${bbsInfo.slangFlterUseAt}"/>">
|
||||
|
||||
@@ -196,7 +196,8 @@
|
||||
div += '<a href="javascript:void(0);" onclick="fn_call_dlvy_sweettracker_pop(\'' + row.ordrInnb + '\');" class="btn outline">배송조회</a>';
|
||||
|
||||
if ('Y' === row.purchsDcsnAt) {
|
||||
div += '<a href="javascript:void(0);" onclick="fn_call_refund_pop(\'' + row.sopmalCd + '\', \'' + row.ordrInnb + '\', \'' + row.ordrRceptDt + '\', \'' + row.setleTyCd + '\', \'' + row.ordrSttusCd + '\');" class="btn-ordr-sttus btn gray">반품신청</a>';
|
||||
<%-- div += '<a href="javascript:void(0);" onclick="fn_call_refund_pop(\'' + row.sopmalCd + '\', \'' + row.ordrInnb + '\', \'' + row.ordrRceptDt + '\', \'' + row.setleTyCd + '\', \'' + row.ordrSttusCd + '\');" class="btn-ordr-sttus btn gray">반품신청</a>'; --%>
|
||||
div += '<a href="javascript:void(0);" onclick="fn_pop_m2mqna_regist(\'' + row.ordrInnb + '\');" class="btn-ordr-sttus btn gray">반품신청</a>';
|
||||
div += '<a href="javascript:void(0);" onclick="fn_post_purchs_dcsn_by_ordr_confirm(\'' + row.sopmalCd + '\', \'' + row.ordrInnb + '\');" class="btn-ordr-sttus btn theme">구매확정</a>';
|
||||
} else {
|
||||
<%--div += '<a href="javascript:void(0);" class="btn-ordr-sttus btn gray">구매확정</a>';--%>
|
||||
@@ -714,6 +715,29 @@
|
||||
const fn_set_dlvylc_3 = () => {
|
||||
location.reload();
|
||||
}
|
||||
|
||||
/********************************************************************
|
||||
* 1:1 문의 등록폼 호출 (C)
|
||||
********************************************************************/
|
||||
const fn_pop_m2mqna_regist = (ordrInnb) => {
|
||||
$.ajax({
|
||||
type: "post",
|
||||
data: {
|
||||
authDv: "REGIST",
|
||||
reqUrl: "modal",
|
||||
bbsId: "mbrqna",
|
||||
ordrInnb: ordrInnb,
|
||||
reqDv: "m2m"
|
||||
},
|
||||
url: "/sopmal/csc/selectBbscttAuth",
|
||||
success: function (data) {
|
||||
$("#modalDiv").html(data);
|
||||
MicroModal.init();
|
||||
closeModal("authPop");
|
||||
openModal2("authPop");
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
fn_dlvy_event();
|
||||
|
||||
MicroModal.init();
|
||||
// MicroModal.init();
|
||||
});
|
||||
|
||||
/* ********************************************************
|
||||
@@ -612,7 +612,30 @@
|
||||
window.open(url, "", status);
|
||||
}
|
||||
|
||||
|
||||
/********************************************************************
|
||||
* 1:1 문의 등록폼 호출 (C)
|
||||
********************************************************************/
|
||||
const fn_pop_m2mqna_regist = (ordrInnb) => {
|
||||
$.ajax({
|
||||
type: "post",
|
||||
data: {
|
||||
authDv: "REGIST",
|
||||
reqUrl: "modal",
|
||||
bbsId: "mbrqna",
|
||||
ordrInnb: ordrInnb,
|
||||
reqDv: "m2m"
|
||||
},
|
||||
url: "/sopmal/csc/selectBbscttAuth",
|
||||
success: function (data) {
|
||||
$('#authPop').remove();
|
||||
$("#modalDiv").html(data);
|
||||
openModal2('authPop');
|
||||
// MicroModal.init();
|
||||
// closeModal("authPop");
|
||||
// openModal2("authPop");
|
||||
}
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
@@ -721,7 +744,7 @@
|
||||
<c:when test="${goods.ordrSttusCd > 54 && goods.ordrSttusCd < 76 && order.sknEnvrnCd ne 'POS'}">
|
||||
<a href="javascript:void(0);" onclick="fn_call_dlvy_sweettracker_pop('${order.ordrInnb}');" class="btn outline sm full">배송조회</a>
|
||||
<c:if test="${ goods.purchsDcsnAt eq 'N' }">
|
||||
<a href="javascript:void(0);" class="btn gray sm full" style="margin-top: 5px;" onclick="fn_call_refund_pop('${order.sopmalCd}', '<c:out value="${order.ordrInnb}"/>','<c:out value="${setleDt}"/>', '<c:out value="${setleTyCd}"/>', '<c:out value="${order.ordrSttusCd}"/>');">반품신청</a>
|
||||
<a href="javascript:void(0);" class="btn gray sm full" style="margin-top: 5px;" onclick="fn_pop_m2mqna_regist('<c:out value="${order.ordrInnb}"/>');">반품신청</a>
|
||||
</c:if>
|
||||
<c:choose>
|
||||
<c:when test="${goods.itemOrdrSttusCd > 54 && goods.itemOrdrSttusCd < 76 && goods.purchsDcsnAt eq 'N'}">
|
||||
@@ -866,7 +889,7 @@
|
||||
<c:when test="${goods.ordrSttusCd > 54 && goods.ordrSttusCd < 76 && order.sknEnvrnCd ne 'POS'}">
|
||||
<a href="javascript:void(0);" onclick="fn_call_dlvy_sweettracker_pop('${order.ordrInnb}');" class="btn outline sm full">배송조회</a>
|
||||
<c:if test="${ goods.purchsDcsnAt eq 'N' }">
|
||||
<a href="javascript:void(0);" class="btn gray sm full" style="margin-top: 5px;" onclick="fn_call_refund_pop('${order.sopmalCd}', '<c:out value="${order.ordrInnb}"/>','<c:out value="${setleDt}"/>', '<c:out value="${setleTyCd}"/>', '<c:out value="${order.ordrSttusCd}"/>');">반품신청</a>
|
||||
<a href="javascript:void(0);" class="btn gray sm full" style="margin-top: 5px;" onclick="fn_pop_m2mqna_regist('<c:out value="${order.ordrInnb}"/>');">반품신청</a>
|
||||
</c:if>
|
||||
<c:choose>
|
||||
<c:when test="${goods.itemOrdrSttusCd > 54 && goods.itemOrdrSttusCd < 76 && goods.purchsDcsnAt eq 'N'}">
|
||||
|
||||
Reference in New Issue
Block a user