优化
@ -1,17 +1,17 @@
|
|||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'SourceHanSansCN-Heavy'; /* 自定义字体的名称 */
|
font-family: 'SourceHanSansCN-Heavy'; /* 自定义字体的名称 */
|
||||||
src: url('../fonts/SourceHanSansCN-Heavy.otf') format('opentype'); /* 字体文件的路径 */
|
src: url('https://web.cdtrucktralier.com/fonts/SourceHanSansCN-Heavy.otf') format('opentype'); /* 字体文件的路径 */
|
||||||
font-weight: normal; /* 字体的粗细 */
|
font-weight: normal; /* 字体的粗细 */
|
||||||
font-style: normal; /* 字体的样式 */
|
font-style: normal; /* 字体的样式 */
|
||||||
}
|
}
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'SourceHanSansCN-Regular'; /* 自定义字体的名称 */
|
font-family: 'SourceHanSansCN-Regular'; /* 自定义字体的名称 */
|
||||||
src: url('../fonts/SourceHanSansCN-Regular.otf') format('opentype'); /* 字体文件的路径 */
|
src: url('https://web.cdtrucktralier.com/fonts/SourceHanSansCN-Regular.otf') format('opentype'); /* 字体文件的路径 */
|
||||||
font-weight: normal; /* 字体的粗细 */
|
font-weight: normal; /* 字体的粗细 */
|
||||||
font-style: normal; /* 字体的样式 */
|
font-style: normal; /* 字体的样式 */
|
||||||
}
|
}
|
||||||
|
|
||||||
address, caption, cite, code, dfn, em, th, var { font-style:normal; font-weight:normal;}
|
address, caption, cite, code, dfn, em, th, var { font-style:normal; font-weight:normal;}
|
||||||
a { display: inline-block; color:#555; text-decoration:none; }
|
a { display: inline-block; color:#555; text-decoration:none; }
|
||||||
a:hover { text-decoration:none; }
|
a:hover { text-decoration:none; }
|
||||||
|
Before Width: | Height: | Size: 287 KiB After Width: | Height: | Size: 104 KiB |
Before Width: | Height: | Size: 229 KiB After Width: | Height: | Size: 57 KiB |
Before Width: | Height: | Size: 145 KiB After Width: | Height: | Size: 49 KiB |
Before Width: | Height: | Size: 114 KiB After Width: | Height: | Size: 38 KiB |
Before Width: | Height: | Size: 1.4 MiB After Width: | Height: | Size: 430 KiB |
Before Width: | Height: | Size: 108 KiB After Width: | Height: | Size: 43 KiB |
Before Width: | Height: | Size: 203 KiB After Width: | Height: | Size: 63 KiB |
Before Width: | Height: | Size: 335 KiB After Width: | Height: | Size: 152 KiB |
@ -15,6 +15,7 @@
|
|||||||
default-expand-all
|
default-expand-all
|
||||||
:props="props"
|
:props="props"
|
||||||
:current-node-key="currentNodeKey"
|
:current-node-key="currentNodeKey"
|
||||||
|
:expand-on-click-node="false"
|
||||||
@current-change="handleNodeClick"
|
@current-change="handleNodeClick"
|
||||||
/>
|
/>
|
||||||
</no-ssr>
|
</no-ssr>
|
||||||
@ -99,16 +100,14 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleNodeClick(row,node) {
|
handleNodeClick(row,node) {
|
||||||
if (node.isLeaf) {
|
this.$router.push({
|
||||||
this.$router.push({
|
path: `${this.baseUrl}`,
|
||||||
path: `${this.baseUrl}`,
|
query: {
|
||||||
query: {
|
...this.$route.query,
|
||||||
...this.$route.query,
|
catgId: row.id,
|
||||||
catgId: row.id,
|
title: node.data.label
|
||||||
title: node.data.label
|
}
|
||||||
}
|
})
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"common": {
|
"common": {
|
||||||
"readMore": "READ MORE",
|
"readMore": "VIEW MORE",
|
||||||
"viewDetails": "view details",
|
"viewDetails": "view details",
|
||||||
"truckModel": "Truck Model",
|
"truckModel": "Truck Model",
|
||||||
"dimension": "Dimension (LxWxH)(mm)",
|
"dimension": "Dimension (LxWxH)(mm)",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"common": {
|
"common": {
|
||||||
"readMore": "阅读更多",
|
"readMore": "查看更多",
|
||||||
"viewDetails": "查看详情",
|
"viewDetails": "查看详情",
|
||||||
"truckModel": "卡车型号",
|
"truckModel": "卡车型号",
|
||||||
"dimension": "尺寸(长x宽x高)(毫米)",
|
"dimension": "尺寸(长x宽x高)(毫米)",
|
||||||
|
17497
package-lock.json
generated
@ -43,7 +43,12 @@
|
|||||||
</nuxt-link>
|
</nuxt-link>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<nuxt-link class="more box_shadow" to="/separate?maxCatgId=66c10877ee325e7f5da316e69ceb2eb9&title=About%20Us">{{ $t('common.readMore') }}</nuxt-link>
|
<nuxt-link
|
||||||
|
class="more box_shadow"
|
||||||
|
to="/separate?maxCatgId=66c10877ee325e7f5da316e69ceb2eb9&title=About%20Us"
|
||||||
|
>
|
||||||
|
{{ $t('common.readMore') }}
|
||||||
|
</nuxt-link>
|
||||||
<b-img class="word-img" src="../assets/image/backGroundImg/home-world.png" alt="word" fluid ></b-img>
|
<b-img class="word-img" src="../assets/image/backGroundImg/home-world.png" alt="word" fluid ></b-img>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
@ -85,7 +90,12 @@
|
|||||||
</b-carousel-slide>
|
</b-carousel-slide>
|
||||||
</b-carousel>
|
</b-carousel>
|
||||||
<template v-if="hotProductList.length >0">
|
<template v-if="hotProductList.length >0">
|
||||||
<nuxt-link class="more box_shadow" :to="`/products?maxCatgId=${hotProductList[0].maxCatgId}`">{{ $t('common.readMore') }}</nuxt-link>
|
<nuxt-link
|
||||||
|
class="more box_shadow"
|
||||||
|
:to="`/products?maxCatgId=${hotProductList[0].maxCatgId}`"
|
||||||
|
>
|
||||||
|
{{ $t('common.readMore') }}
|
||||||
|
</nuxt-link>
|
||||||
</template>
|
</template>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
@ -118,7 +128,12 @@
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<template v-if="productTopList.length">
|
<template v-if="productTopList.length">
|
||||||
<nuxt-link class="more box_shadow" :to="`/products?&maxCatgId=${productTopList[0].maxCatgId}`">{{ $t('common.readMore') }}</nuxt-link>
|
<nuxt-link
|
||||||
|
class="more box_shadow"
|
||||||
|
:to="`/products?&maxCatgId=${productTopList[0].maxCatgId}`"
|
||||||
|
>
|
||||||
|
{{ $t('common.readMore') }}
|
||||||
|
</nuxt-link>
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
@ -168,7 +183,12 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<template v-if="hotNewsList.length">
|
<template v-if="hotNewsList.length">
|
||||||
<nuxt-link class="more box_shadow mb-4" :to="`/article-page?&maxCatgId=${hotNewsList[0].maxCatgId}`">{{ $t('common.readMore') }}</nuxt-link>
|
<nuxt-link
|
||||||
|
class="more box_shadow mb-4"
|
||||||
|
:to="`/article-page?&maxCatgId=${hotNewsList[0].maxCatgId}`"
|
||||||
|
>
|
||||||
|
{{ $t('common.readMore') }}
|
||||||
|
</nuxt-link>
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
@ -36,7 +36,7 @@ export default {
|
|||||||
},
|
},
|
||||||
head() {
|
head() {
|
||||||
return {
|
return {
|
||||||
title: this.pageInfo.title,
|
title: this.pageInfo.catgName,
|
||||||
meta: [
|
meta: [
|
||||||
{
|
{
|
||||||
hid: 'keywords',
|
hid: 'keywords',
|
||||||
|