Bläddra i källkod

메인화면 공지사항

marseyes 2 år sedan
förälder
incheckning
a001e6acc3
3 ändrade filer med 20 tillägg och 3 borttagningar
  1. 1 1
      src/main/webapp/css/style.css
  2. 9 2
      src/main/webapp/js/app/main.js
  3. 10 0
      src/main/webapp/main.html

+ 1 - 1
src/main/webapp/css/style.css

@@ -131,7 +131,7 @@ a, button {outline:none !important; text-decoration:none !important;}
131 131
 #ITP_MAIN_HEADER .col_4 .itp_header_label {width:125px; padding:13px 16px; font-size:17px; font-weight:700; display:inline-block;}
132 132
 #ITP_MAIN_HEADER .col_4 .itp_header_result {width:auto; float: right; display:inline-block; font-size:18px; font-weight:700; color:blue; text-align: right; padding:12px;}
133 133
 
134
-#ITP_NOTE_BAR {background:#eee; width:100%; height:160px; float:right; border-radius:15px;}
134
+#ITP_NOTE_BAR {background:#eee; width:100%; float:right; border-radius:15px;}
135 135
 #ITP_NOTE_BAR .itp_side_bar_header {padding-top:12px; text-align:center; font-size:17px;}
136 136
 #ITP_NOTE_BAR .itp_side_bar_note {padding:0 15px;}
137 137
 #ITP_NOTE_BAR .itp_side_bar_note label {width:15%; margin-bottom:8px;}

+ 9 - 2
src/main/webapp/js/app/main.js

@@ -24,7 +24,7 @@ require(['config'], function() {
24 24
 			// 조회
25 25
 	    	itp_fn_MAIN_NOTICE_search();			
26 26
 
27
-		}, 500);
27
+		}, 300);
28 28
 				
29 29
 	});
30 30
 });
@@ -233,7 +233,14 @@ var itp_fn_MAIN_NOTICE_search = function() {
233 233
 	const formId = '#ITP_FORM_MAIN_SEARCH';
234 234
 	let param = $(formId).serializeObject();
235 235
 	var searhFn = function(result) {
236
-		console.log('>>>>>> ' + JSON.stringify(result));
236
+		$.each(result.gridRows, function(idx, value) {
237
+		
238
+			$('#ITP_NOTE_BAR').append($('#ITP_NOTE_ROWCOPY').val());			
239
+			$('#ITP_NOTE_BAR .itp_side_bar_note:last').find('.fnTitle').html(value.nticeTitl);
240
+			$('#ITP_NOTE_BAR .itp_side_bar_note:last').find('.fnDate').html(value.addDt);
241
+			$('#ITP_NOTE_BAR .itp_side_bar_note:last').find('.fnContents').html(value.nticeDesc);
242
+			
243
+		});
237 244
 	};
238 245
 	fn_ajax_call(NTICE_DETAIL_GRID_LIST, JSON.stringify(param), searhFn, 'POST');
239 246
 };

+ 10 - 0
src/main/webapp/main.html

@@ -148,11 +148,20 @@
148 148
 								<form id="ITP_FORM_MAIN_SEARCH" class="form-horizontal">
149 149
 								</form>
150 150
 								
151
+								<textarea id="ITP_NOTE_ROWCOPY" rows="0" cols="0" style="display:none;">
152
+								<div class="itp_side_bar_note">
153
+									<label class="fnTitle"></label>
154
+									<label class="date fnDate"></label>
155
+									<div class="fnContents"></div>
156
+								</div>
157
+								</textarea>
158
+								
151 159
 								<!-- 여기는 공급사 매장 로그인 시 나오는 구간 -->
152 160
 								<div id="ITP_NOTE_BAR">
153 161
 									<div class="itp_side_bar_header">
154 162
 										<label>공지사항</label>
155 163
 									</div>
164
+									<!--  
156 165
 									<div class="itp_side_bar_note">
157 166
 										<label class="fn">공지 xxx제목 조금 긴 제목</label>
158 167
 										<label class="date fn">2022.11.01</label>
@@ -168,6 +177,7 @@
168 177
 										<label class="date fn">2022.11.01</label>
169 178
 										<div class="fn">공지 1 내용 가나다라마바상라ㅣㅁㄴ리ㅏㄴ멀ㄴ얾ㅣ;ㅁ너ㅣㅏ런ㅁ이ㅏ;러</div>
170 179
 									</div>
180
+									-->
171 181
 								</div>
172 182
 								<div id="ITP_MAIN_HEADER" style="display: inline-block;">
173 183
 									<div class="col_4" style="margin-left:0">