Просмотр исходного кода

Merge remote-tracking branch 'origin/style' into ST24PRJ-333(무료배송)

jsh77b@naver.com 4 лет назад
Родитель
Сommit
faff4f57a7

+ 2 - 0
src/main/webapp/WEB-INF/views/mob/display/SearchGoodsListFormMob.html

@@ -469,6 +469,7 @@
 	var listIdx = 1;
 
 	$(window).on("pageshow", function(event) {
+		if( history.scrollRestoration ) window.history.scrollRestoration = 'manual';
 		$('#filterForm input[name=brandGroup]:checked').each(function(){
 			$(this).attr('checked', true);
 		});
@@ -496,6 +497,7 @@
 		if ( (event.originalEvent && event.originalEvent.persisted) || (window.performance && window.performance.navigation.type == 2)) {
 			$("#searchGoodsForm input:hidden[name=unisex]").remove();
 			$("#searchGoodsForm input:hidden[name=newGoods]").remove();
+			if( history.scrollRestoration ) window.history.scrollRestoration = 'manual';
 			var historyData = sessionStorage.getItem(document.location.href);
 			// console.log(historyData);
 			if(historyData!=null){

+ 2 - 8
src/main/webapp/WEB-INF/views/mob/order/OrderFormMob.html

@@ -1869,10 +1869,8 @@ var dcAmtInfoSet = function() {
 						pntDcAmtReset();
 						return false;
 					}
-
-					// TODO 포인트 사용금액 1000P 이상 사용
-					// 2021.12.29 1원단위 사용가능
 					/*
+					// TODO 포인트 사용금액 1000P 이상 사용
 					if (pntDcAmt < 1000) {
 						mcxDialog.alert("포인트는 최소 1,000P이상 사용해야 합니다.");
 						// 포인트리셋기능
@@ -1880,7 +1878,6 @@ var dcAmtInfoSet = function() {
 						return false;
 					}
 					*/
-					
 					// 실결제금액보다 크게 적용 되었을때 적용 불가능
 					if (pntDcAmt > applyPntDcAmt) {
 						mcxDialog.alert("결제금액의 최대 " + pointUseMaxLimit +"%를 초과 사용 할 수 없습니다.");
@@ -1944,10 +1941,8 @@ var dcAmtInfoSet = function() {
 						gfcdUseAmtReset();
 						return false;
 					}
-
-					// TODO 포인트 사용금액 1000원 이상 사용
-					// 2021.12.29 1원단위 사용가능
 					/*
+					// TODO 포인트 사용금액 1000원 이상 사용
 					if (gfcdUseAmt < 1000) {
 						mcxDialog.alert("상품권 사용금액은 최소 1,000원 이상 사용해야 합니다.");
 						
@@ -1956,7 +1951,6 @@ var dcAmtInfoSet = function() {
 						return false;
 					}
 					*/
-					
 					// 2021.04.23 추가
 					mcxDialog.alert("총 " + gfcdUseAmt.addComma() + " 원을 상품권 금액에서 차감 결제 합니다.");
 					

+ 6 - 7
src/main/webapp/WEB-INF/views/web/common/fragments/HeadWeb.html

@@ -91,15 +91,14 @@
 	<script src="https://www.google.com/recaptcha/api.js" async defer></script>
 
 	<!-- Global site tag (gtag.js) - Google Analytics -->
-	<script async src="https://www.googletagmanager.com/gtag/js?id=G-MQWD9VX4KH"></script>
+	<script async src="https://www.googletagmanager.com/gtag/js?id=UA-216844259-1"></script>
 	<script>
-		window.dataLayer = window.dataLayer || [];
-		function gtag(){dataLayer.push(arguments);}
-		gtag('js', new Date());
-// 		gtag('config', 'AW-865781638');
-		gtag('config', 'G-MQWD9VX4KH');
+	  window.dataLayer = window.dataLayer || [];
+	  function gtag(){dataLayer.push(arguments);}
+	  gtag('js', new Date());
+	
+	  gtag('config', 'UA-216844259-1');
 	</script>
-	<!--// Global site tag (gtag.js) - Google Analytics -->
 
 	<th:block th:if="${sessionInfo != null}">
 		<script th:inline="javascript">

+ 26 - 1
src/main/webapp/ux/style24_link.js

@@ -473,7 +473,8 @@ var cfnLoginNaver = function (requestGb, chkRememberMe) {
 	let popupWidth = 600;
 	let popupX = (window.screen.width / 2) - (popupWidth / 2);
 	let popupY = (window.screen.height / 3) - (popupHeight / 3);
-	if ('P' === _frontGb) {
+	var frontGb = cfnCheckMobileDevice();
+	if ('P' === frontGb) {
 		window.open(actionUrl, 'naverLogin', 'top=' + popupY + ',left=' + popupX + ',height=' + popupHeight + ',width=' + popupWidth + ', fullscreen=no,menubar=no,status=no,toolbar=no,titlebar=yes,location=no,scrollbars=yes', '');
 	} else {
 		document.location.href = actionUrl + '&requestGb=' + requestGb;
@@ -1880,3 +1881,27 @@ function noneImg(noneSrc) {
 	$(noneSrc).css({'opacity':'0'});
 	//$(noneSrc).attr("src", no_src);
 }
+
+/**
+ * @type   : function
+ * @access : public
+ * @desc   : 디바이스 종류 조회
+ * <pre>
+ *        cfnCheckMobileDevice();
+ * </pre>
+ * @since  : 2022/01/12
+ * @author : sshong
+ */
+function cfnCheckMobileDevice() {
+    var mobileKeyWords = new Array('Android', 'iPhone', 'iPod', 'BlackBerry', 'Windows CE', 'SAMSUNG', 'LG', 'MOT', 'SonyEricsson');
+    var device = "";
+    for (var info in mobileKeyWords) {
+        if (navigator.userAgent.match(mobileKeyWords[info]) != null) {
+        	device = "M";
+        	return device;
+        } else{
+        	device = "P";
+        	return device;
+        }
+    }
+}