|
|
@ -134,7 +134,7 @@ export default { |
|
|
|
}), |
|
|
|
async created() { |
|
|
|
|
|
|
|
console.log("created"); |
|
|
|
// console.log("created"); |
|
|
|
this.isPageLoading = true; |
|
|
|
|
|
|
|
// this.getAdList(); |
|
|
@ -153,7 +153,7 @@ export default { |
|
|
|
}, |
|
|
|
async mounted() { |
|
|
|
|
|
|
|
console.log("mounted"); |
|
|
|
// console.log("mounted"); |
|
|
|
|
|
|
|
this.$nextTick(() => { |
|
|
|
window.addEventListener("resize", this.onResize); |
|
|
@ -415,12 +415,20 @@ export default { |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
updateSortBy(data) { |
|
|
|
|
|
|
|
getNewExhibitionCard() { |
|
|
|
|
|
|
|
this.currentPage = 1; |
|
|
|
this.query = ""; |
|
|
|
this.sortBy = data; |
|
|
|
this.getExhibitionCard(); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
updateSortBy(data) { |
|
|
|
|
|
|
|
this.sortBy = data; |
|
|
|
this.getNewExhibitionCard(); |
|
|
|
|
|
|
|
}, |
|
|
|
updatePage(value) { |
|
|
|
|
|
|
@ -432,7 +440,6 @@ export default { |
|
|
|
}, |
|
|
|
updateCategoryFilter(value) { |
|
|
|
|
|
|
|
this.query = ""; |
|
|
|
this.selectedMainCategory = []; |
|
|
|
this.selectedSubCategory = []; |
|
|
|
|
|
|
@ -448,12 +455,12 @@ export default { |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
this.getExhibitionCard(); |
|
|
|
this.getNewExhibitionCard(); |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
updateLocationFilter(value) { |
|
|
|
|
|
|
|
this.query = ""; |
|
|
|
this.selectedRegion = []; |
|
|
|
this.selectedCountry = []; |
|
|
|
this.selectedCity = []; |
|
|
@ -474,12 +481,11 @@ export default { |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
this.getExhibitionCard(); |
|
|
|
this.getNewExhibitionCard(); |
|
|
|
|
|
|
|
}, |
|
|
|
updateStatusFilter(value) { |
|
|
|
|
|
|
|
this.query = ""; |
|
|
|
this.selectedStatus = []; |
|
|
|
|
|
|
|
value.forEach(key => { |
|
|
@ -490,14 +496,14 @@ export default { |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
this.getExhibitionCard(); |
|
|
|
this.getNewExhibitionCard(); |
|
|
|
|
|
|
|
}, |
|
|
|
updateDateFilter(value) { |
|
|
|
|
|
|
|
this.query = ""; |
|
|
|
this.selectedDates = value; |
|
|
|
this.getExhibitionCard(); |
|
|
|
this.getNewExhibitionCard(); |
|
|
|
|
|
|
|
}, |
|
|
|
async getQuery() { |
|
|
|
|
|
|
|