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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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