

231120 메인 공지사항 슬라이드 변경
@dbc9b8e2df5ca406307787d353d009f30a1c28b2
--- client/views/pages/user/main/Main.vue
+++ client/views/pages/user/main/Main.vue
... | ... | @@ -409,19 +409,17 @@ |
409 | 409 |
}) |
410 | 410 |
}, |
411 | 411 |
|
412 |
- //배너 부분 공지사항 최신순 2개 출력 |
|
412 |
+ //배너 부분 공지사항 상단고정 목록 |
|
413 | 413 |
noticeBannerListForMain: function () { |
414 | 414 |
const vm = this; |
415 |
- let limitCnt = 2; |
|
415 |
+ |
|
416 | 416 |
axios({ |
417 |
- url: '/post/noticeSelectListForMain.json', |
|
417 |
+ url: '/post/noticeBannerListForMain.json', |
|
418 | 418 |
method: 'post', |
419 | 419 |
hearder: { |
420 | 420 |
'Content-Type': "application/json; charset=UTF-8", |
421 | 421 |
}, |
422 |
- data: { |
|
423 |
- 'limit_cnt': limitCnt, |
|
424 |
- }, |
|
422 |
+ |
|
425 | 423 |
}).then(function (response) { |
426 | 424 |
vm.noticeListForBanner = response.data; |
427 | 425 |
}).catch(function (error) { |
... | ... | @@ -451,7 +449,21 @@ |
451 | 449 |
|
452 | 450 |
//공지사항 상세조회 페이지로 이동 |
453 | 451 |
noticeSelectOnePage: function (item) { |
454 |
- this.$router.push({ path: '/NoticeOne.page', query: { 'post_id': item.post_id, 'file_id': item.file_id } }); |
|
452 |
+ const vm = this; |
|
453 |
+ |
|
454 |
+ axios({ |
|
455 |
+ url: '/post/postViewCount.json', |
|
456 |
+ method: 'post', |
|
457 |
+ hearder: { |
|
458 |
+ 'Content-Type': "application/json; charset=UTF-8", |
|
459 |
+ }, |
|
460 |
+ data: { 'post_id': item.post_id, 'bbs_id': item.bbs_id } |
|
461 |
+ }).then(function (response) { |
|
462 |
+ vm.$router.push({ path: '/NoticeOne.page', query: { 'post_id': item.post_id, 'file_id': item.file_id, 'bbs_id': item.bbs_id } }); |
|
463 |
+ }).catch(function (error) { |
|
464 |
+ console.log(error) |
|
465 |
+ alert("공지사항 상세보기 오류, 관리자에게 문의바랍니다."); |
|
466 |
+ }) |
|
455 | 467 |
}, |
456 | 468 |
|
457 | 469 |
}, |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?