카카오 친구톡 발송 화면 오류 수정

- 추가된 버튼 삭제시 미리보기 변경 오류 수정
 - 친구톡 내용 변경시 대체문자 내용도 함께 변경 되도록 수정
This commit is contained in:
rosewiper 2024-01-19 10:26:46 +09:00
parent 50e8ce04db
commit 3f40c8405d
2 changed files with 11 additions and 6 deletions

View File

@ -170,7 +170,7 @@ function initFormChk(){
$('.side_info_text').hide(); //부가정보 내용
$('.channel_info_text').hide(); //채널추가 텍스트 내용
$('.btnAd').hide(); //샘플 채널추가 버튼
$('.btnEmpty').hide(); //샘플 버튼
//$('.btnEmpty').hide(); //샘플 버튼
//채널ID 정보 미리보기에 표시해주기
fnAgentCodeChg();
@ -1189,12 +1189,14 @@ function fn_sendMsgData(){
if("fail" == returnData.result){
alert(returnData.message);
spamChk = false;
return false;
}else if("loginFail" == returnData.result){
alert(returnData.message);
spamChk = false;
return false;
}else if("spams" == returnData.result){
alert("전송 내용에 스팸문구가 포함되어 있습니다.")
//alert("전송 내용에 스팸문구가 포함되어 있습니다.")
$("#spamStatus").val("Y");
return false;
}else{
@ -1469,7 +1471,7 @@ function msgSuccessClose(obj){
<input type="hidden" id="templateImageUrl" name="templateImageUrl" value="<c:out value='${resultTemplateVO.templateImageUrl}'/>">
<input type="hidden" id="tmpFriendId" name="friendId" value="<c:out value='${resultTemplateVO.friendId}'/>">
<input type="hidden" id="templateName" name="templateName" value=""/>
<input type="hidden" id="adFlag" name="adFlag" value=""/>
<input type="hidden" id="adFlag" name="adFlag" value="N"/>
<input type="hidden" id="templateContent" name="templateContent" value=""/>
<!-- 예약발송 여부 -->
@ -1501,8 +1503,8 @@ function msgSuccessClose(obj){
<!-- 친구톡 발송 단가 정보 -->
<input type="hidden" id="kakaoFtPrice" name="kakaoFtPrice" value="<c:out value='${sendPrice.kakaoFtPrice}' />"/>
<input type="hidden" id="eachPrice" name="eachPrice" value=""/>
<input type="hidden" id="totPrice" name="totalPrice" value=""/>
<input type="hidden" id="eachPrice" name="eachPrice" value="0"/>
<input type="hidden" id="totPrice" name="totalPrice" value="0"/>
<!-- 친구톡 발송 json 파일 필요 유무 -->
<input type="hidden" id="bizJsonYn" name="bizJsonYn" value="N"/>
@ -2074,7 +2076,7 @@ function msgSuccessClose(obj){
<p class="template_text">내용 미리보기</p>
<div class="btnViewArea">
<c:forEach var="buttonList" items="${resultTemplateVO.buttonVOList}" varStatus="status">
<button type="button" class="btn_kakao_type" style="display:block;"><c:out value="${buttonList.name}"/></button>
<button type="button" class="btn_kakao_type btnEmpty" style="display:block;"><c:out value="${buttonList.name}"/></button>
</c:forEach>
</div>
</div>

View File

@ -88,6 +88,9 @@ function setContentsLengForFriends(contents){
$('.template_text').show();
if(repContent != ''){
$('.template_text').html(repContent);
$('#smsTxtArea').val(
$('.template_text').html().trim().replace(/(<br>|<br\/>|<br \/>)/g, '\r\n')
);
}else{
$('.template_text').html("내용 미리보기");
}