
--- client/views/pages/user/main/Main.vue
+++ client/views/pages/user/main/Main.vue
... | ... | @@ -384,7 +384,8 @@ |
384 | 384 |
noticeList: [], |
385 | 385 |
noticeListForBanner: [], |
386 | 386 |
swiper: null, |
387 |
- store: useStore() |
|
387 |
+ store: useStore(), |
|
388 |
+ popupList: [] |
|
388 | 389 |
// showPopup: true, |
389 | 390 |
// doNotShow: false, |
390 | 391 |
// doNotShow: this.checkPopup() |
... | ... | @@ -550,7 +551,24 @@ |
550 | 551 |
}, |
551 | 552 |
data: {'user' : vm.store.state.loginUser} |
552 | 553 |
}) |
553 |
- } |
|
554 |
+ }, |
|
555 |
+ |
|
556 |
+ popupSelectList: function () { |
|
557 |
+ const vm = this; |
|
558 |
+ |
|
559 |
+ axios({ |
|
560 |
+ url: '/popup/userPopupList.json', |
|
561 |
+ method: 'post', |
|
562 |
+ hearder: { |
|
563 |
+ 'Content-Type': "application/json; charset=UTF-8", |
|
564 |
+ }, |
|
565 |
+ }).then(function (response) { |
|
566 |
+ vm.popupList = response.data; |
|
567 |
+ console.log("vm.popupList",vm.popupList) |
|
568 |
+ }).catch(function (error) { |
|
569 |
+ alert('팝업 목록 조회 오류, 관리자에게 문의하세요.'); |
|
570 |
+ }) |
|
571 |
+ }, |
|
554 | 572 |
|
555 | 573 |
}, |
556 | 574 |
watch: { |
... | ... | @@ -575,6 +593,7 @@ |
575 | 593 |
}, |
576 | 594 |
mounted() { |
577 | 595 |
console.log('Main mounted'); |
596 |
+ this.popupSelectList(); |
|
578 | 597 |
this.postSelectList(); |
579 | 598 |
this.noticeListForMain(); |
580 | 599 |
this.noticeBannerListForMain(); |
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?