替换页面写死的内容,优化header导航栏
This commit is contained in:
parent
4d4739aecc
commit
15a6bb9149
@ -35,7 +35,7 @@
|
|||||||
</p>
|
</p>
|
||||||
<p class="mb-2">
|
<p class="mb-2">
|
||||||
<label class="mb-0">{{ $t('common.Mob/Whatsapp/Wechat') }}:</label>
|
<label class="mb-0">{{ $t('common.Mob/Whatsapp/Wechat') }}:</label>
|
||||||
<span>{{ footerInfo.tel }}</span>
|
<span>{{ footerInfo.whatsapp }}</span>
|
||||||
</p>
|
</p>
|
||||||
<p class="mb-2">
|
<p class="mb-2">
|
||||||
<label class="mb-0">{{ $t('common.E-mail') }}:</label>
|
<label class="mb-0">{{ $t('common.E-mail') }}:</label>
|
||||||
@ -96,7 +96,6 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted () {
|
mounted () {
|
||||||
console.log(this.footerInfo);
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleNodeClick(row,node) {
|
handleNodeClick(row,node) {
|
||||||
|
|||||||
@ -12,7 +12,7 @@
|
|||||||
:to="item.to"
|
:to="item.to"
|
||||||
v-if="item.children.length === 0"
|
v-if="item.children.length === 0"
|
||||||
>
|
>
|
||||||
<span @click="toChange">{{ item.label }}</span>
|
<span @click.stop="toChange">{{ item.label }}</span>
|
||||||
</nuxt-link>
|
</nuxt-link>
|
||||||
<b-nav-item-dropdown
|
<b-nav-item-dropdown
|
||||||
v-else
|
v-else
|
||||||
@ -59,6 +59,8 @@ export default {
|
|||||||
},
|
},
|
||||||
dropDownHide() {
|
dropDownHide() {
|
||||||
this.isDropdown = false
|
this.isDropdown = false
|
||||||
|
console.log(this.isDropdown, '接受');
|
||||||
|
|
||||||
this.$emit('dropDownHide')
|
this.$emit('dropDownHide')
|
||||||
},
|
},
|
||||||
dropdownHide(e, item) {
|
dropdownHide(e, item) {
|
||||||
@ -95,6 +97,11 @@ export default {
|
|||||||
padding: 0 1.4375rem;
|
padding: 0 1.4375rem;
|
||||||
>a {
|
>a {
|
||||||
color: #151516;
|
color: #151516;
|
||||||
|
span {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@include activeNav;
|
@include activeNav;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
<div>
|
<div>
|
||||||
<header class="header-box d-none d-md-flex justify-content-between align-items-center">
|
<header class="header-box d-none d-md-flex justify-content-between align-items-center">
|
||||||
<nuxt-link to="/">
|
<nuxt-link to="/">
|
||||||
<img src="~assets/image/logo.png" width="265px" :alt="$t('index.corporateName')"></img>
|
<img :src="device === '手机端' ? footerInfo.mobileLogo : footerInfo.logo" width="265px" :alt="$t('index.corporateName')"></img>
|
||||||
</nuxt-link>
|
</nuxt-link>
|
||||||
|
|
||||||
<nav class="d-md-flex align-items-center">
|
<nav class="d-md-flex align-items-center">
|
||||||
@ -88,7 +88,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapState(['menuTree'])
|
...mapState(['menuTree', 'device', 'footerInfo'])
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
search() {
|
search() {
|
||||||
|
|||||||
@ -6,4 +6,12 @@ export default async function ({
|
|||||||
store.commit('SET_FOOTER_INFO', footerInfo)
|
store.commit('SET_FOOTER_INFO', footerInfo)
|
||||||
const pordCategory = await $axios.$get('/web/prodCategory?catgId=660179025d0e2e0e4263db0eec86a8cc')
|
const pordCategory = await $axios.$get('/web/prodCategory?catgId=660179025d0e2e0e4263db0eec86a8cc')
|
||||||
store.commit('SET_FOOTER_PRODCAT', pordCategory)
|
store.commit('SET_FOOTER_PRODCAT', pordCategory)
|
||||||
|
if (process.client) {
|
||||||
|
let link = document.querySelector("link[rel~='icon']") || document.createElement('link')
|
||||||
|
link.rel = 'icon'
|
||||||
|
link.href = footerInfo.icon
|
||||||
|
if (!link.parentElement) {
|
||||||
|
document.head.appendChild(link)
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
BIN
nuxt-dist.zip
Normal file
BIN
nuxt-dist.zip
Normal file
Binary file not shown.
@ -28,7 +28,7 @@ export default {
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
link: [
|
link: [
|
||||||
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
|
// { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
|
||||||
],
|
],
|
||||||
script: [
|
script: [
|
||||||
// { type:"text/javascript" , src: 'https://api.map.baidu.com/api?v=1.0&type=webgl&ak=otBoKESzaUj1nGjWiehnCP3AUyRKgikx'}
|
// { type:"text/javascript" , src: 'https://api.map.baidu.com/api?v=1.0&type=webgl&ak=otBoKESzaUj1nGjWiehnCP3AUyRKgikx'}
|
||||||
|
|||||||
@ -8,7 +8,7 @@
|
|||||||
<article class="header">
|
<article class="header">
|
||||||
<div class="title d-flex align-items-center">
|
<div class="title d-flex align-items-center">
|
||||||
<h2 class="d-none d-md-block">{{ pageInfo.catgName }}</h2>
|
<h2 class="d-none d-md-block">{{ pageInfo.catgName }}</h2>
|
||||||
<b-img class="mr-4" src="~assets/image/backGroundImg/contact-us-logo.png" fluid :alt="$t('index.corporateName')"></b-img>
|
<b-img class="mr-4" :src="footerInfo.formLogo" fluid :alt="$t('index.corporateName')"></b-img>
|
||||||
</div>
|
</div>
|
||||||
<p class="row mt-3">
|
<p class="row mt-3">
|
||||||
<label class="col-6 col-md-3">{{ $t('contactUs.contactUs') }}:{{ footerInfo.teams }}</label>
|
<label class="col-6 col-md-3">{{ $t('contactUs.contactUs') }}:{{ footerInfo.teams }}</label>
|
||||||
@ -24,7 +24,7 @@
|
|||||||
<li class="col-4 text-center">
|
<li class="col-4 text-center">
|
||||||
<b-img class="mb-2" src="~assets/image//icon/app.png" fluid :alt="$t('common.Mob/Whatsapp/Wechat')"></b-img>
|
<b-img class="mb-2" src="~assets/image//icon/app.png" fluid :alt="$t('common.Mob/Whatsapp/Wechat')"></b-img>
|
||||||
<h5>{{ $t('common.Mob/Whatsapp/Wechat') }}</h5>
|
<h5>{{ $t('common.Mob/Whatsapp/Wechat') }}</h5>
|
||||||
<p>{{ footerInfo.tel }}</p>
|
<p>{{ footerInfo.whatsapp }}</p>
|
||||||
</li>
|
</li>
|
||||||
<li class="col-4 text-center">
|
<li class="col-4 text-center">
|
||||||
<b-img class="mb-2" src="~assets/image//icon/fax.png" fluid :alt="$t('common.fax')"></b-img>
|
<b-img class="mb-2" src="~assets/image//icon/fax.png" fluid :alt="$t('common.fax')"></b-img>
|
||||||
@ -175,6 +175,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { mapState } from 'vuex';
|
import { mapState } from 'vuex';
|
||||||
|
import footer from '../middleware/footer';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'inquiry',
|
name: 'inquiry',
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user