|
|
@ -707,35 +707,20 @@ export default { |
|
|
|
async getQuery() { |
|
|
|
|
|
|
|
let vm = this; |
|
|
|
this.categoryQueryFilter = ""; |
|
|
|
this.locationQueryFilter = ""; |
|
|
|
// if (this.$route.query.hasOwnProperty("country") && this.countryNameList.length>0) { |
|
|
|
// this.locationQueryFilter = |
|
|
|
// this.countryNameList[Number(this.$route.query.country)]; |
|
|
|
// } |
|
|
|
// if (this.$route.query.hasOwnProperty("city") && this.cityNameList.length>0) { |
|
|
|
// this.locationQueryFilter = |
|
|
|
// this.cityNameList[Number(this.$route.query.city)]; |
|
|
|
// } |
|
|
|
// if (this.$route.query.hasOwnProperty("region")) { |
|
|
|
// this.locationQueryFilter = |
|
|
|
// this.regionNameList[Number(this.$route.query.region)]; |
|
|
|
// } |
|
|
|
// if (this.$route.query.hasOwnProperty("category") && this.categoryNameList.length>0) { |
|
|
|
// this.categoryQueryFilter = |
|
|
|
// this.categoryNameList[Number(this.$route.query.category)]; |
|
|
|
// } |
|
|
|
// if (this.$route.query.hasOwnProperty("subcategory")) { |
|
|
|
// this.categoryQueryFilter = |
|
|
|
// this.unsortSubcategoryList[Number(this.$route.query.subcategory)]; |
|
|
|
// } |
|
|
|
|
|
|
|
if (vm.$route.query.hasOwnProperty("category")) { |
|
|
|
|
|
|
|
if (this.$route.query.category) { |
|
|
|
vm.categoryQueryFilter = vm.$route.query.category; |
|
|
|
this.selectedMainCategory.push(vm.$route.query.category); |
|
|
|
} |
|
|
|
|
|
|
|
if (vm.$route.query.hasOwnProperty("country")) { |
|
|
|
if (this.$route.query.subcategory) { |
|
|
|
vm.categoryQueryFilter = vm.$route.query.category; |
|
|
|
this.selectedSubCategory.push(vm.$route.query.subcategory); |
|
|
|
} |
|
|
|
|
|
|
|
if (this.$route.query.country) { |
|
|
|
vm.locationQueryFilter = vm.$route.query.country; |
|
|
|
this.selectedCountry.push(vm.$route.query.country); |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|