处理bug

This commit is contained in:
hejin 2025-09-27 20:55:41 +08:00
parent 92c812fa06
commit ea6de7f5f9
2 changed files with 9 additions and 7 deletions

View File

@ -2,7 +2,7 @@
<div>
<header class="header-box d-none d-md-flex justify-content-between align-items-center">
<nuxt-link to="/">
<img :src="device === '移动端' ? footerInfo.mobileLogo : footerInfo.logo" width="265px" :alt="$t('index.corporateName')"></img>
<img :src="footerInfo.logo" width="265px" :alt="$t('index.corporateName')"></img>
</nuxt-link>
<nav class="d-md-flex align-items-center">
@ -26,7 +26,7 @@
<header class="header-box-mob d-block d-md-none">
<div class="header-top">
<img class="mr-4" src="~assets/image/mob-logo.png" width="164px" :alt="$t('index.corporateName')">
<img class="mr-4" :src="footerInfo.mobileLogo" width="164px" :alt="$t('index.corporateName')">
<div class="search-box">
<img class="search-icon" src="~assets/image/icon/search.png" :alt="$t('common.search')" />
<b-form-input

View File

@ -45,7 +45,7 @@
</ul>
<nuxt-link
class="more box_shadow"
to="/separate?maxCatgId=66c10877ee325e7f5da316e69ceb2eb9&title=About%20Us"
:to="`/separate?maxCatgId=${aboutUsMaxId}&title=About%20Us`"
>
{{ $t('common.readMore') }}
</nuxt-link>
@ -92,7 +92,7 @@
<template v-if="hotProductList[0].length >0">
<nuxt-link
class="more box_shadow"
:to="`/products?maxCatgId=${hotProductList[0][0].maxCatgId}`"
:to="`/products?maxCatgId=${hotProductList[0][0].maxCatgId}&title=${hotProductList[0][0].title}`"
>
{{ $t('common.readMore') }}
</nuxt-link>
@ -130,7 +130,7 @@
<template v-if="productTopList.length">
<nuxt-link
class="more box_shadow"
:to="`/products?&maxCatgId=${productTopList[0].maxCatgId}`"
:to="`/products?maxCatgId=${productTopList[0].maxCatgId}&title=${productTopList[0].title}`"
>
{{ $t('common.readMore') }}
</nuxt-link>
@ -185,7 +185,7 @@
<template v-if="hotNewsList.length">
<nuxt-link
class="more box_shadow mb-4"
:to="`/article-page?&maxCatgId=${hotNewsList[0].maxCatgId}`"
:to="`/article-page?maxCatgId=${hotNewsList[0].maxCatgId}&title=${hotNewsList[0].title}`"
>
{{ $t('common.readMore') }}
</nuxt-link>
@ -291,12 +291,14 @@ export default {
const {data: productTopList} = await $axios.get('/web/product')
//
const { data: hotNewsList } = await $axios.get('/web/hotNews')
const { data:aboutUsMaxId } = await $axios.get('/web/getCatgIdApp?catgName=About')
return {
bannerList,
companyInfo,
hotProductList,
productTopList,
hotNewsList
hotNewsList,
aboutUsMaxId
}
},
mounted() {