1
This commit is contained in:
parent
a8298a59e4
commit
b85e54cbf1
@ -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="device === '移动端' ? footerInfo.mobileLogo : footerInfo.logo" width="265px" :alt="$t('index.corporateName')"></img>
|
||||
</nuxt-link>
|
||||
|
||||
<nav class="d-md-flex align-items-center">
|
||||
|
@ -132,7 +132,7 @@ export default {
|
||||
{
|
||||
path: '/article-page.xml',
|
||||
routes: async () => {
|
||||
const { data: res} = await axios.get('http://admin.cdtrucktralier.com/web/siteMap?catgType=wz&tenantId=main')
|
||||
const { data: res} = await axios.get('https://admin.cdtrucktralier.com/web/siteMap?catgType=wz&tenantId=main')
|
||||
return res.data.map(item => {
|
||||
return {
|
||||
url: `/article-page/${item.id}?catgId=${item.id}&maxCatgId=${item.maxCatgId}`,
|
||||
@ -144,7 +144,7 @@ export default {
|
||||
gzip: true
|
||||
},
|
||||
{
|
||||
path: '/inquiry.xml',
|
||||
path: '/separate.xml',
|
||||
routes: async () => {
|
||||
const { data: res} = await axios.get('https://admin.cdtrucktralier.com/web/siteMap?catgType=dym&tenantId=main')
|
||||
return res.data.map(item => {
|
||||
|
@ -245,7 +245,7 @@ export default {
|
||||
},
|
||||
computed: {
|
||||
isMob: () => {
|
||||
return this.$store.state.device === '手机端' ? true : false
|
||||
return this.$store.state.device === '移动端' ? true : false
|
||||
}
|
||||
},
|
||||
validate({query}) {
|
||||
|
@ -43,10 +43,10 @@ export default {
|
||||
},
|
||||
computed: {
|
||||
prodUp() {
|
||||
return this.$store.state.device === '手机端' ? this.catgInfo.prodUpApp : this.catgInfo.prodUp
|
||||
return this.$store.state.device === '移动端' ? this.catgInfo.prodUpApp : this.catgInfo.prodUp
|
||||
},
|
||||
prodDown() {
|
||||
return this.$store.state.device === '手机端' ? this.catgInfo.prodDownApp : this.catgInfo.prodDown
|
||||
return this.$store.state.device === '移动端' ? this.catgInfo.prodDownApp : this.catgInfo.prodDown
|
||||
}
|
||||
},
|
||||
async asyncData({$axios,query}) {
|
||||
|
@ -27,8 +27,8 @@
|
||||
<h5 class="title">{{ $t('index.companyProfile') }}</h5>
|
||||
<h4 class="sub-title">{{ $t('index.corporateName') }}</h4>
|
||||
<div
|
||||
class="describe d-none d-md-block"
|
||||
v-html="$store.state.device === '手机端' ? companyInfo.contentApp : companyInfo.content"
|
||||
class="describe"
|
||||
v-html="$store.state.device === '移动端' ? companyInfo.contentApp : companyInfo.content"
|
||||
>
|
||||
</div>
|
||||
<ul class="advantage row pl-0">
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
<div
|
||||
class="container rich-text"
|
||||
v-html="$store.state.device === '手机端' ? pageInfo.contentApp : pageInfo.content"
|
||||
v-html="$store.state.device === '移动端' ? pageInfo.contentApp : pageInfo.content"
|
||||
>
|
||||
</div>
|
||||
|
||||
|
@ -286,7 +286,7 @@ export default {
|
||||
},
|
||||
computed: {
|
||||
isMob: () => {
|
||||
return this.$store.state.device === '手机端' ? true : false
|
||||
return this.$store.state.device === '移动端' ? true : false
|
||||
}
|
||||
},
|
||||
async asyncData({$axios, params}) {
|
||||
|
@ -39,10 +39,10 @@ export default {
|
||||
},
|
||||
computed: {
|
||||
prodUp() {
|
||||
return this.$store.state.device === '手机端' ? this.catgInfo.prodUpApp : this.catgInfo.prodUp
|
||||
return this.$store.state.device === '移动端' ? this.catgInfo.prodUpApp : this.catgInfo.prodUp
|
||||
},
|
||||
prodDown() {
|
||||
return this.$store.state.device === '手机端' ? this.catgInfo.prodDownApp : this.catgInfo.prodDown
|
||||
return this.$store.state.device === '移动端' ? this.catgInfo.prodDownApp : this.catgInfo.prodDown
|
||||
}
|
||||
},
|
||||
async asyncData({$axios,query}) {
|
||||
|
@ -4,7 +4,7 @@
|
||||
<BannerTop :options="bannerTopOptions"/>
|
||||
<div
|
||||
class="container rich-text"
|
||||
v-html="$store.state.device === '手机端' ? pageInfo.contentApp : pageInfo.content"
|
||||
v-html="$store.state.device === '移动端' ? pageInfo.contentApp : pageInfo.content"
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user