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