Browse Source

메인 타이틀 표기 부분 수정

dwkim 2 years ago
parent
commit
fbccba4b52
1 changed files with 12 additions and 3 deletions
  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
 	view: function() {
404
 	view: function() {
405
 		// 사용자명
405
 		// 사용자명
406
-		console.log("====================");
407
-		console.log(this.get('authTpCd'));
408
 		$('#ITP_LOGIN_USER').text(this.get('userNm'));
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
 		if (this.get('authTpCd') == "10" || this.get('authTpCd') == "20" || this.get('authTpCd') == "30") {
419
 		if (this.get('authTpCd') == "10" || this.get('authTpCd') == "20" || this.get('authTpCd') == "30") {
412
 			$('#ITP_TXT_MAIN_SHR_AFFL').text(authTypeNm);
420
 			$('#ITP_TXT_MAIN_SHR_AFFL').text(authTypeNm);
413
 			var brandNm = (this.get('brandNm')) ? '(' + this.get('brandNm') + ')' : '';
421
 			var brandNm = (this.get('brandNm')) ? '(' + this.get('brandNm') + ')' : '';
414
 			$('#ITP_TXT_MAIN_SHR_BRAND').text(brandNm);
422
 			$('#ITP_TXT_MAIN_SHR_BRAND').text(brandNm);
415
 		} else {
423
 		} else {
424
+			$('#ITP_TXT_MAIN_SHR_AFFL').text(authTypeNm);
416
 			$('.itp_sch_brand').css('display','none');
425
 			$('.itp_sch_brand').css('display','none');
417
 			$('#ITP_TXT_MAIN_SHR_BRAND').css('display','none');
426
 			$('#ITP_TXT_MAIN_SHR_BRAND').css('display','none');
418
 		}
427
 		}