diff --git a/src/components/CountryCard.vue b/src/components/CountryCard.vue
index f6cb9cf2eb1..33dab5a8247 100644
--- a/src/components/CountryCard.vue
+++ b/src/components/CountryCard.vue
@@ -1,7 +1,13 @@
-
+
+
+ {{ country }}
+
@@ -18,10 +24,22 @@ export default {
type: String,
default: null
},
+ city: {
+ type: String,
+ default: null
+ },
locationCount: {
type: Number,
default: 0
}
+ },
+ computed: {
+ getTitle() {
+ return this.city ? `${this.city}, ${this.country}` : this.country
+ },
+ countryUrl() {
+ return `/countries/${this.country}`
+ }
}
}
diff --git a/src/components/UserRecentProofsDialog.vue b/src/components/UserRecentProofsDialog.vue
index 58fe77f8499..88190b29ee6 100644
--- a/src/components/UserRecentProofsDialog.vue
+++ b/src/components/UserRecentProofsDialog.vue
@@ -16,7 +16,7 @@
- {{ $t('ProofDetail.LoadMore') }}
+ {{ $t('Common.LoadMore') }}
diff --git a/src/router.js b/src/router.js
index 348c3a20635..0913b150f4e 100644
--- a/src/router.js
+++ b/src/router.js
@@ -20,7 +20,8 @@ const routes = [
{ path: '/products/:id', name: 'product-detail', component: () => import('./views/ProductDetail.vue'), meta: { title: 'Product detail' }},
{ path: '/locations', name: 'locations', component: () => import('./views/LocationList.vue'), meta: { title: 'TopLocations', icon: 'mdi-map-marker-star-outline', drawerMenu: true }},
{ path: '/locations/:id', name: 'location-detail', component: () => import('./views/LocationDetail.vue'), meta: { title: 'Location detail' }},
- { path: '/countries/:id', name: 'country-detail', component: () => import('./views/CountryDetail.vue'), meta: { title: 'Country detail' }},
+ { path: '/countries/:country', name: 'country-detail', component: () => import('./views/CountryDetail.vue'), meta: { title: 'Country detail' }},
+ { path: '/countries/:country/cities/:city', name: 'country-city-detail', component: () => import('./views/CountryCityDetail.vue'), meta: { title: 'City detail' }},
{ path: '/brands/:id', name: 'brand-detail', component: () => import('./views/BrandDetail.vue'), meta: { title: 'Brand detail' }},
{ path: '/dates/:date', name: 'date-detail', component: () => import('./views/DateDetail.vue'), meta: { title: 'Date detail' }},
{ path: '/categories/:id', name: 'category-detail', component: () => import('./views/CategoryDetail.vue'), meta: { title: 'Category detail' }},
diff --git a/src/views/BrandDetail.vue b/src/views/BrandDetail.vue
index 4541e6af0dc..fe3449a7d91 100644
--- a/src/views/BrandDetail.vue
+++ b/src/views/BrandDetail.vue
@@ -26,7 +26,7 @@
- {{ $t('BrandDetail.LoadMore') }}
+ {{ $t('Common.LoadMore') }}
diff --git a/src/views/CategoryDetail.vue b/src/views/CategoryDetail.vue
index bd93be1a5dc..5e29a9b43dd 100644
--- a/src/views/CategoryDetail.vue
+++ b/src/views/CategoryDetail.vue
@@ -26,7 +26,7 @@
- {{ $t('CategoryDetail.LoadMore') }}
+ {{ $t('Common.LoadMore') }}
diff --git a/src/views/CountryCityDetail.vue b/src/views/CountryCityDetail.vue
new file mode 100644
index 00000000000..662ed2dde8a
--- /dev/null
+++ b/src/views/CountryCityDetail.vue
@@ -0,0 +1,93 @@
+
+
+
+
+
+
+
+
+
+
+ {{ $t('Common.TopLocations') }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ $t('Common.LoadMore') }}
+
+
+
+
+
+
diff --git a/src/views/CountryDetail.vue b/src/views/CountryDetail.vue
index 242d6c5cc38..8f2542bbd4a 100644
--- a/src/views/CountryDetail.vue
+++ b/src/views/CountryDetail.vue
@@ -24,7 +24,7 @@
- {{ $t('CountryDetail.LoadMore') }}
+ {{ $t('Common.LoadMore') }}
@@ -70,7 +70,7 @@ export default {
},
methods: {
initCountry() {
- this.country = this.$route.params.id
+ this.country = this.$route.params.country
this.countryLocationList = []
this.countryLocationTotal = null
this.countryLocationPage = 0
diff --git a/src/views/LocationDetail.vue b/src/views/LocationDetail.vue
index e882e1b7161..48f9c2bb371 100644
--- a/src/views/LocationDetail.vue
+++ b/src/views/LocationDetail.vue
@@ -34,7 +34,7 @@
- {{ $t('LocationDetail.LoadMore') }}
+ {{ $t('Common.LoadMore') }}
diff --git a/src/views/LocationList.vue b/src/views/LocationList.vue
index 038c3164ec0..8a30b98637a 100644
--- a/src/views/LocationList.vue
+++ b/src/views/LocationList.vue
@@ -21,7 +21,7 @@
- {{ $t('LocationList.LoadMore') }}
+ {{ $t('Common.LoadMore') }}
diff --git a/src/views/PriceList.vue b/src/views/PriceList.vue
index 842634742a8..ceb0e3b9afd 100644
--- a/src/views/PriceList.vue
+++ b/src/views/PriceList.vue
@@ -13,7 +13,7 @@
- {{ $t('PriceList.LoadMore') }}
+ {{ $t('Common.LoadMore') }}
diff --git a/src/views/ProductDetail.vue b/src/views/ProductDetail.vue
index 0df1ef2ea26..aa6614c8c8f 100644
--- a/src/views/ProductDetail.vue
+++ b/src/views/ProductDetail.vue
@@ -57,7 +57,7 @@
- {{ $t('ProductDetail.LoadMore') }}
+ {{ $t('Common.LoadMore') }}
diff --git a/src/views/ProductList.vue b/src/views/ProductList.vue
index f68716032d6..ab5fbf0230f 100644
--- a/src/views/ProductList.vue
+++ b/src/views/ProductList.vue
@@ -23,7 +23,7 @@
- {{ $t('ProductList.LoadMore') }}
+ {{ $t('Common.LoadMore') }}
diff --git a/src/views/ProofDetail.vue b/src/views/ProofDetail.vue
index 1b9f21aa592..ae7e5dc09d5 100644
--- a/src/views/ProofDetail.vue
+++ b/src/views/ProofDetail.vue
@@ -27,7 +27,7 @@
- {{ $t('ProofDetail.LoadMore') }}
+ {{ $t('Common.LoadMore') }}
diff --git a/src/views/UserDashboardPriceList.vue b/src/views/UserDashboardPriceList.vue
index 151b5180b0f..b23a73df9cd 100644
--- a/src/views/UserDashboardPriceList.vue
+++ b/src/views/UserDashboardPriceList.vue
@@ -34,7 +34,7 @@
- {{ $t('UserDashboard.LoadMore') }}
+ {{ $t('Common.LoadMore') }}
diff --git a/src/views/UserDashboardProofList.vue b/src/views/UserDashboardProofList.vue
index 37ec8733557..62f23604874 100644
--- a/src/views/UserDashboardProofList.vue
+++ b/src/views/UserDashboardProofList.vue
@@ -35,7 +35,7 @@
- {{ $t('UserDashboard.LoadMore') }}
+ {{ $t('Common.LoadMore') }}
diff --git a/src/views/UserDetail.vue b/src/views/UserDetail.vue
index c6a0fa2ea3a..196fe1f8acc 100644
--- a/src/views/UserDetail.vue
+++ b/src/views/UserDetail.vue
@@ -26,7 +26,7 @@
- {{ $t('UserDetail.LoadMore') }}
+ {{ $t('Common.LoadMore') }}
diff --git a/src/views/UserList.vue b/src/views/UserList.vue
index 5a09563d3ff..20be935ceff 100644
--- a/src/views/UserList.vue
+++ b/src/views/UserList.vue
@@ -21,7 +21,7 @@
- {{ $t('UserList.LoadMore') }}
+ {{ $t('Common.LoadMore') }}