fix : 1:1문의 사용자 조회/수정
This commit is contained in:
@@ -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