Prechádzať zdrojové kódy

Merge branch 'sowon' into develop

sowon4187 5 rokov pred
rodič
commit
48f70e2d5c

+ 2 - 2
src/main/webapp/WEB-INF/views/customer/OneToOneQnaDetailForm.html

@@ -89,8 +89,8 @@
 							</td>
 							<th>첨부 이미지</th>
 							<td class="userImg">
-								<img th:if="${counselInfo.sysFileNm1 != null}" style="height: 100px;" th:src="${@environment.getProperty('domain.image') + '/counsel/' + counselInfo.sysFileNm1}" alt="" onerror='this.src="/image/no.png"'/>
-								<img th:if="${counselInfo.sysFileNm2 != null}" style="height: 100px;" th:src="${@environment.getProperty('domain.image') + '/counsel/' + counselInfo.sysFileNm2}" alt="" onerror='this.src="/image/no.png"'/>
+								<img th:if="${counselInfo.sysFileNm1 != null}" style="height: 100px;" th:src="${@environment.getProperty('domain.image') + '/' + counselInfo.sysFileNm1}" alt="" onerror='this.src="/image/no.png"'/>
+								<img th:if="${counselInfo.sysFileNm2 != null}" style="height: 100px;" th:src="${@environment.getProperty('domain.image') + '/' + counselInfo.sysFileNm2}" alt="" onerror='this.src="/image/no.png"'/>
 							</td>
 						</tr>
 					</tbody>

+ 22 - 24
src/main/webapp/WEB-INF/views/marketing/PlanDetailPopupForm.html

@@ -1027,6 +1027,22 @@
 				arr[idx] = item.basDays;
 			});
 			
+			var dupYn = false;
+			for(let i = 0; i < arr.length; i++) {
+			  const currElem = arr[i];
+			  for(let j = i+1; j < arr.length; j++) {
+			    if(currElem === arr[j]) {
+			      dupYn = true;
+			      break;
+			    }
+			  }
+			}
+			
+			if (dupYn == true) {
+				mcxDialog.alert('혜택적용 일수가 동일합니다.');
+				return;
+			}
+			
 			for(let i = 0; i < attendData.length; i++) {
 
 				if (attendData[i].benefitGb == 'A') {
@@ -1071,38 +1087,20 @@
 				}
 				
 				if (attendData[i].benefitGb == 'A' || attendData[i].benefitGb == 'C') {
-					data = {cpnId : attendData[i].cpnId};
-					var jsonData = JSON.stringify(data);
+					var param = {cpnId : attendData[i].cpnId};
+					var jsonData = JSON.stringify(param);
+					
 					gagajf.ajaxJsonSubmit('marketing/planning/attend/coupon', jsonData, function(result) {
 						if (result.length < 1) {
-							mcxDialog.alert('입력하신 쿠폰 아이디 ' + attendData[i].cpnId.addComma() + '은 유효하지 않습니다.');
-							flag = false;
-							return;
+							mcxDialog.alert('입력하신 쿠폰 ID ' + attendData[i].cpnId.addComma() + '은(는) 유효하지 않습니다.');
+							return false;
 						}
 					});
-					
-					if (flag == false) {
-						return;
-					}
 				}
 			};
 		}
 			
-		var dupYn = false;
-		for(let i = 0; i < arr.length; i++) {
-		  const currElem = arr[i];
-		  for(let j = i+1; j < arr.length; j++) {
-		    if(currElem === arr[j]) {
-		      dupYn = true;
-		      break;
-		    }
-		  }
-		}
-		
-		if (dupYn == true) {
-			mcxDialog.alert('혜택적용 일수가 동일합니다.');
-			return;
-		}
+	
 	 
 	 	gagajf.ajaxFormSubmit('/marketing/poll/list', formId, function(result) {
 				if (result.length < 1) {