Procházet zdrojové kódy

메인 타이틀 표기 부분 수정

dwkim před 2 roky
rodič
revize
fbccba4b52
1 změnil soubory, kde provedl 12 přidání a 3 odebrání
  1. 12 3
      src/main/webapp/js/app/config.js

+ 12 - 3
src/main/webapp/js/app/config.js

@@ -403,16 +403,25 @@ var fn_make_user_info = {
403 403
 	},
404 404
 	view: function() {
405 405
 		// 사용자명
406
-		console.log("====================");
407
-		console.log(this.get('authTpCd'));
408 406
 		$('#ITP_LOGIN_USER').text(this.get('userNm'));
409
-		let authTypeNm = (this.get('authTpNm') === undefined) ? '오더퀸' : this.get('authTpNm');
407
+		
408
+		let authTypeNm = '오더퀸' ;
409
+		
410
+		if (this.get('authTpCd') == "10" || this.get('authTpCd') == "20") {
411
+			authTypeNm ='오더퀸';
412
+		} else if (this.get('authTpCd') == "30" ) {
413
+			authTypeNm = this.get('afflShopNm');
414
+		} else { 
415
+			authTypeNm = this.get('brandNm');
416
+		}
417
+		
410 418
 		
411 419
 		if (this.get('authTpCd') == "10" || this.get('authTpCd') == "20" || this.get('authTpCd') == "30") {
412 420
 			$('#ITP_TXT_MAIN_SHR_AFFL').text(authTypeNm);
413 421
 			var brandNm = (this.get('brandNm')) ? '(' + this.get('brandNm') + ')' : '';
414 422
 			$('#ITP_TXT_MAIN_SHR_BRAND').text(brandNm);
415 423
 		} else {
424
+			$('#ITP_TXT_MAIN_SHR_AFFL').text(authTypeNm);
416 425
 			$('.itp_sch_brand').css('display','none');
417 426
 			$('#ITP_TXT_MAIN_SHR_BRAND').css('display','none');
418 427
 		}