This commit is contained in:
Vinjor 2025-09-24 14:50:02 +08:00
parent a8298a59e4
commit b85e54cbf1
9 changed files with 13 additions and 13 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="device === '移动端' ? footerInfo.mobileLogo : footerInfo.logo" width="265px" :alt="$t('index.corporateName')"></img>
</nuxt-link>
<nav class="d-md-flex align-items-center">

View File

@ -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 => {

View File

@ -245,7 +245,7 @@ export default {
},
computed: {
isMob: () => {
return this.$store.state.device === '手机端' ? true : false
return this.$store.state.device === '移动端' ? true : false
}
},
validate({query}) {

View File

@ -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}) {

View File

@ -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">

View File

@ -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>

View File

@ -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}) {

View File

@ -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}) {

View File

@ -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>