diff --git a/FrontEnd/components/exhibition/ExhibitionListCard.vue b/FrontEnd/components/exhibition/ExhibitionListCard.vue index 4b4937a..62a7da5 100644 --- a/FrontEnd/components/exhibition/ExhibitionListCard.vue +++ b/FrontEnd/components/exhibition/ExhibitionListCard.vue @@ -1,143 +1,123 @@ diff --git a/FrontEnd/pages/exhibition/index.vue b/FrontEnd/pages/exhibition/index.vue index d9189c8..345c9cf 100644 --- a/FrontEnd/pages/exhibition/index.vue +++ b/FrontEnd/pages/exhibition/index.vue @@ -210,6 +210,7 @@ export default { data: () => ({ page: 1, perPage: 10, + adList: [], exhibitionList: [], datesChecked: [], statusesChecked: [], @@ -252,6 +253,7 @@ export default { sortBy: "Show Dates", }), async created() { + this.getAdList(); this.getStatusList(); this.getLocationList(); this.getCategoryList(); @@ -406,6 +408,17 @@ export default { } }); }, + getAdList() { + + this.ads = [{ + image: require('/assets/img/thems/Frame33.png') + },{ + image: require('/assets/img/thems/Frame33.png') + },{ + image: require('/assets/img/thems/Frame33.png') + }] + + }, getStatusList() { this.$axios .get( @@ -431,33 +444,6 @@ export default { console.log(err); }); }, - async getUnsortLocationList() { - await this.$axios - .get( - `/t/exhibitions/locations?lang=${this.$i18n.localeProperties["langQuery"]}&sort=false` - ) - .then((result) => { - this.unsortRegionList = result.data.region_name_list; - this.unsortCountryList = result.data.country_name_list; - this.unsortCityList = result.data.city_name_list; - }) - .catch((err) => { - console.log(err); - }); - }, - async getUnsortCategoryList() { - await this.$axios - .get( - `/t/exhibitions/categories?lang=${this.$i18n.localeProperties["langQuery"]}&sort=false` - ) - .then((result) => { - this.unsortCategoryList = result.data.category_name_list; - this.unsortSubcategoryList = result.data.subcategory_name_list; - }) - .catch((err) => { - console.log(err); - }); - }, getCategoryList() { this.$axios .get( @@ -572,37 +558,37 @@ export default { this.exhibitionList = []; }); }, - async getQuery() { - this.locationQueryFilter = ""; - this.categoryQueryFilter = ""; - this.datesChecked = []; - if (this.$route.query.hasOwnProperty("country")) { - this.locationQueryFilter = - this.unsortCountryList[Number(this.$route.query.country)]; - } - if (this.$route.query.hasOwnProperty("city")) { - this.locationQueryFilter = - this.unsortCityList[Number(this.$route.query.city)]; - } - if (this.$route.query.hasOwnProperty("region")) { - this.locationQueryFilter = - this.unsortRegionList[Number(this.$route.query.region)]; - } - if (this.$route.query.hasOwnProperty("category")) { - this.categoryQueryFilter = - this.unsortCategoryList[Number(this.$route.query.category)]; - } - if (this.$route.query.hasOwnProperty("subcategory")) { - this.categoryQueryFilter = - this.unsortSubcategoryList[Number(this.$route.query.subcategory)]; - } - if (this.$route.query.hasOwnProperty("startdate")) { - this.datesChecked.push(this.$route.query.startdate); - } - if (this.$route.query.hasOwnProperty("enddate")) { - this.datesChecked.push(this.$route.query.enddate); - } - }, + // async getQuery() { + // this.locationQueryFilter = ""; + // this.categoryQueryFilter = ""; + // this.datesChecked = []; + // if (this.$route.query.hasOwnProperty("country")) { + // this.locationQueryFilter = + // this.unsortCountryList[Number(this.$route.query.country)]; + // } + // if (this.$route.query.hasOwnProperty("city")) { + // this.locationQueryFilter = + // this.unsortCityList[Number(this.$route.query.city)]; + // } + // if (this.$route.query.hasOwnProperty("region")) { + // this.locationQueryFilter = + // this.unsortRegionList[Number(this.$route.query.region)]; + // } + // if (this.$route.query.hasOwnProperty("category")) { + // this.categoryQueryFilter = + // this.unsortCategoryList[Number(this.$route.query.category)]; + // } + // if (this.$route.query.hasOwnProperty("subcategory")) { + // this.categoryQueryFilter = + // this.unsortSubcategoryList[Number(this.$route.query.subcategory)]; + // } + // if (this.$route.query.hasOwnProperty("startdate")) { + // this.datesChecked.push(this.$route.query.startdate); + // } + // if (this.$route.query.hasOwnProperty("enddate")) { + // this.datesChecked.push(this.$route.query.enddate); + // } + // }, updateSortBy(data) { this.sortBy = data; },