diff --git a/components/footer.vue b/components/footer.vue index 4c91394..57b07bc 100644 --- a/components/footer.vue +++ b/components/footer.vue @@ -16,34 +16,30 @@
-
Contact Us
+
{{ $t('menu.ContactUs') }}
- About Us + + {{ $t('menu.AboutUs') }} +
- Contact us + + {{ $t('menu.ContactUs') }} +
- Feedback + + {{ $t('menu.Feedback') }} +
-
Categories
-
- Trailer -
-
- Truck -
-
- Trailer Parts -
-
- Truck Parts -
-
- Used/Second Hand Tru +
{{ $t('common.Categories') }}
+
+ + {{ item.label }} +
@@ -73,7 +69,7 @@ export default { } }, computed: { - ...mapState(['footerInfo']) + ...mapState(['footerInfo','footerPordCategory']) } } diff --git a/components/header.vue b/components/header.vue index 8ab3096..9f0dd5e 100644 --- a/components/header.vue +++ b/components/header.vue @@ -1,7 +1,9 @@ - {{ $t('common.readMore') }} + {{ $t('common.readMore') }} @@ -91,7 +91,7 @@ - {{ $t('common.readMore') }} + {{ $t('common.readMore') }} @@ -129,7 +129,12 @@ {{ hotNewsList[0].description }}

@@ -137,7 +142,7 @@ - {{ $t('common.readMore') }} + {{ $t('common.readMore') }} @@ -325,11 +330,14 @@ export default { } .company-profiler { @include commonSector; - .describe { + ::v-deep .describe { margin-top: 1.125rem; margin-bottom: 3.25rem; color: #575757; font-size: .875rem; + img { + max-width: 100%; + } } .word-img { margin-top: -11.25rem; @@ -503,7 +511,13 @@ export default { } // 特殊样式小屏幕处理 -@media screen and (max-width:400px) { - +@media screen and (max-width:780px) { + .popular-product { + .product-card { + .cover { + height: 11.25rem !important; + } + } + } } diff --git a/pages/products.vue b/pages/products.vue index 3c3fe2a..8122f26 100644 --- a/pages/products.vue +++ b/pages/products.vue @@ -32,7 +32,7 @@ export default { } }, async asyncData({$axios,query}) { - // 获取新闻分类 + // 获取产品分类 const categoryTree = await $axios.$get(`/web/prodCategory?catgId=${query.maxCatgId}`) const bannerTopOptions = { title: query.title, diff --git a/pages/search-result.vue b/pages/search-result.vue index b793575..19c0802 100644 --- a/pages/search-result.vue +++ b/pages/search-result.vue @@ -5,7 +5,7 @@
diff --git a/store/index.js b/store/index.js index e87214d..b041ad7 100644 --- a/store/index.js +++ b/store/index.js @@ -9,7 +9,8 @@ export const state = () => ({ locales: ['en', 'zh'], locale: 'en', menuTree: [], - footerInfo: {} + footerInfo: {}, + footerPordCategory: [], }) export const mutations = { @@ -22,6 +23,9 @@ export const mutations = { SET_FOOTER_INFO (state, info) { state.footerInfo = info }, + SET_FOOTER_PRODCAT (state, list) { + state.footerPordCategory = list + }, SET_MENU_TREE (state, tree) { state.menuTree = [ {label:'Home', to: '/', children: []}