This commit is contained in:
hejin 2025-09-16 21:31:24 +08:00
parent 59ca0b6d9e
commit fbf4a45e73
6 changed files with 37 additions and 14 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 565 B

After

Width:  |  Height:  |  Size: 765 B

View File

@ -16,12 +16,13 @@
</nuxt-link>
</div>
<b-nav-item-dropdown
v-else
v-else
:id="item.id"
:text="item.label"
right
@show="isDropdown=true"
v-model="isDropdown"
@toggle="dropdownToggle($event, item)"
@hide="dropdownHide($event, item)"
>
<header-nav
@ -50,7 +51,7 @@ export default {
},
data() {
return {
isDropdown: true
isDropdown: false,
}
},
methods: {
@ -60,8 +61,16 @@ export default {
},
dropDownHide() {
this.isDropdown = false
console.log(1231);
this.$emit('dropDownHide')
},
dropdownToggle(e, item) {
this.isDropdown = false
if (item.catgLevel === 1) {
this.$emit('dropDownHide')
}
},
dropdownHide(e, item) {
if (this.isDropdown) {
e.preventDefault()

View File

@ -45,6 +45,7 @@ export default {
icon: require('../assets/image/icon/contact.png'),
label: this.$t('common.Contact'),
url: `tel:${this.footerInfo.tel}`,
thirdSoft: 'Tel',
desc: `<div">
<h6>${this.$t('contactUs.contactUs')}</h6>
<p>${this.footerInfo.tel}</p>
@ -58,6 +59,7 @@ export default {
{
icon: require('../assets/image/icon/whats.png'),
label: this.$t('common.Whats'),
thirdSoft: 'WhatsApp',
url: `https://wa.me/${this.footerInfo.whatsapp}`,
desc: `<div>
<h6>${this.$t('common.Whats')}</h6>
@ -67,6 +69,7 @@ export default {
{
icon: require('../assets/image/icon/email1.png'),
label: this.$t('common.E-mail'),
thirdSoft: 'Email',
url: `mailto:${this.footerInfo.email}`,
desc: `<div>
<h6>${this.$t('common.E-mail')}</h6>
@ -82,7 +85,18 @@ export default {
})
},
methods:{
jump(row) {
async jump(row) {
let data = {
equipment: this.$store.state.device,
thirdSoft: row.thirdSoft,
}
if (row.thirdSoft) {
try {
await this.$axios.post('/web/thirdItemSave', data)
} catch(err) {
console.log(err);
}
}
if (row.url) {
window.open(row.url)
}

8
env.js
View File

@ -8,15 +8,15 @@ module.exports = {
// 开发环境 接口请求地址 (http)或(https)://www.a.com(换成你的域名)/api
dev: {
MODE: 'dev',
VUE_APP_API_URL: 'http://1.92.99.15:8099/',
VUE_APP_API_URL: 'https://admin.cdtrucktralier.com/',
// VUE_APP_API_URL: 'http://192.168.1.13:8099/',
VUE_APP_WEBSOCKET: 'ws://192.168.1.13:8099/ws/asset/'
VUE_APP_WEBSOCKET: 'wss://admin.cdtrucktralier.com/ws/asset/'
},
// 生产环境 接口请求地址 (http)或(https)://www.a.com(换成你的域名)/api 非独立部署默认为空
prod: {
MODE: 'prod',
VUE_APP_API_URL: 'http://114.132.197.85:8099/',
VUE_APP_WEBSOCKET: 'ws://114.132.197.85:8099/ws/asset/'
VUE_APP_API_URL: 'https://admin.cdtrucktralier.com/',
VUE_APP_WEBSOCKET: 'wss://admin.cdtrucktralier.com/ws/asset/'
}
};

View File

@ -103,7 +103,7 @@ export default {
{
path: '/products.xml',
routes: async () => {
const { data: res} = await axios.get('http://114.132.197.85:8099/web/siteMap?catgType=cp&tenantId=main')
const { data: res} = await axios.get('https://admin.cdtrucktralier.com/web/siteMap?catgType=cp&tenantId=main')
return res.data.map(item => {
return {
url: `/products/${item.id}?catgId=${item.id}&maxCatgId=${item.maxCatgId}`,
@ -117,7 +117,7 @@ export default {
{
path: '/inquiry.xml',
routes: async () => {
const { data: res} = await axios.get('http://114.132.197.85:8099/web/siteMap?catgType=xp&tenantId=main')
const { data: res} = await axios.get('https://admin.cdtrucktralier.com/web/siteMap?catgType=xp&tenantId=main')
return res.data.map(item => {
return {
url: `/inquiry?maxCatgId=${item.maxCatgId}?title=${item.title}`,
@ -131,7 +131,7 @@ export default {
{
path: '/article-page.xml',
routes: async () => {
const { data: res} = await axios.get('http://114.132.197.85:8099/web/siteMap?catgType=wz&tenantId=main')
const { data: res} = await axios.get('http://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}`,
@ -145,7 +145,7 @@ export default {
{
path: '/inquiry.xml',
routes: async () => {
const { data: res} = await axios.get('http://114.132.197.85:8099/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 {
url: `/separate?maxCatgId=${item.maxCatgId}?title=${item.title}`,
@ -215,7 +215,7 @@ export default {
host: '0.0.0.0', // default: localhost
proxy: {
'/dev': {
target: 'http://114.132.197.85:8099/',
target: 'https://admin.cdtrucktralier.com/',
pathRewrite: { '^/dev': '' },
changeOrigin: true,
}

View File

@ -73,7 +73,7 @@
>
<template v-solt:lable>
<div class="mb-2 d-flex align-items-center">
<b-img class="mr-1" src="~assets/image/icon/title.png" fluid :alt="$t('contactUs.title')"></b-img>
<b-img class="mr-1" src="~assets/image/icon/title.png" style="width: 18px;" :alt="$t('contactUs.title')"></b-img>
<h6 class="label-text">{{ $t('contactUs.title') }}</h6>
</div>
</template>
@ -93,7 +93,7 @@
>
<template v-solt:lable>
<div class="mb-2 d-flex align-items-center">
<b-img class="mr-1" src="~assets/image/icon/company.png" fluid :alt="$t('contactUs.company')"></b-img>
<b-img class="mr-1" src="~assets/image/icon/company.png" style="width: 18px;" :alt="$t('contactUs.company')"></b-img>
<h6 class="label-text">{{ $t('contactUs.company') }}</h6>
</div>
</template>