优化
This commit is contained in:
parent
59ca0b6d9e
commit
fbf4a45e73
Binary file not shown.
Before Width: | Height: | Size: 565 B After Width: | Height: | Size: 765 B |
@ -16,12 +16,13 @@
|
|||||||
</nuxt-link>
|
</nuxt-link>
|
||||||
</div>
|
</div>
|
||||||
<b-nav-item-dropdown
|
<b-nav-item-dropdown
|
||||||
v-else
|
v-else
|
||||||
:id="item.id"
|
:id="item.id"
|
||||||
:text="item.label"
|
:text="item.label"
|
||||||
right
|
right
|
||||||
@show="isDropdown=true"
|
@show="isDropdown=true"
|
||||||
v-model="isDropdown"
|
v-model="isDropdown"
|
||||||
|
@toggle="dropdownToggle($event, item)"
|
||||||
@hide="dropdownHide($event, item)"
|
@hide="dropdownHide($event, item)"
|
||||||
>
|
>
|
||||||
<header-nav
|
<header-nav
|
||||||
@ -50,7 +51,7 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
isDropdown: true
|
isDropdown: false,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@ -60,8 +61,16 @@ export default {
|
|||||||
},
|
},
|
||||||
dropDownHide() {
|
dropDownHide() {
|
||||||
this.isDropdown = false
|
this.isDropdown = false
|
||||||
|
console.log(1231);
|
||||||
|
|
||||||
this.$emit('dropDownHide')
|
this.$emit('dropDownHide')
|
||||||
},
|
},
|
||||||
|
dropdownToggle(e, item) {
|
||||||
|
this.isDropdown = false
|
||||||
|
if (item.catgLevel === 1) {
|
||||||
|
this.$emit('dropDownHide')
|
||||||
|
}
|
||||||
|
},
|
||||||
dropdownHide(e, item) {
|
dropdownHide(e, item) {
|
||||||
if (this.isDropdown) {
|
if (this.isDropdown) {
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
|
@ -45,6 +45,7 @@ export default {
|
|||||||
icon: require('../assets/image/icon/contact.png'),
|
icon: require('../assets/image/icon/contact.png'),
|
||||||
label: this.$t('common.Contact'),
|
label: this.$t('common.Contact'),
|
||||||
url: `tel:${this.footerInfo.tel}`,
|
url: `tel:${this.footerInfo.tel}`,
|
||||||
|
thirdSoft: 'Tel',
|
||||||
desc: `<div">
|
desc: `<div">
|
||||||
<h6>${this.$t('contactUs.contactUs')}</h6>
|
<h6>${this.$t('contactUs.contactUs')}</h6>
|
||||||
<p>${this.footerInfo.tel}</p>
|
<p>${this.footerInfo.tel}</p>
|
||||||
@ -58,6 +59,7 @@ export default {
|
|||||||
{
|
{
|
||||||
icon: require('../assets/image/icon/whats.png'),
|
icon: require('../assets/image/icon/whats.png'),
|
||||||
label: this.$t('common.Whats'),
|
label: this.$t('common.Whats'),
|
||||||
|
thirdSoft: 'WhatsApp',
|
||||||
url: `https://wa.me/${this.footerInfo.whatsapp}`,
|
url: `https://wa.me/${this.footerInfo.whatsapp}`,
|
||||||
desc: `<div>
|
desc: `<div>
|
||||||
<h6>${this.$t('common.Whats')}</h6>
|
<h6>${this.$t('common.Whats')}</h6>
|
||||||
@ -67,6 +69,7 @@ export default {
|
|||||||
{
|
{
|
||||||
icon: require('../assets/image/icon/email1.png'),
|
icon: require('../assets/image/icon/email1.png'),
|
||||||
label: this.$t('common.E-mail'),
|
label: this.$t('common.E-mail'),
|
||||||
|
thirdSoft: 'Email',
|
||||||
url: `mailto:${this.footerInfo.email}`,
|
url: `mailto:${this.footerInfo.email}`,
|
||||||
desc: `<div>
|
desc: `<div>
|
||||||
<h6>${this.$t('common.E-mail')}</h6>
|
<h6>${this.$t('common.E-mail')}</h6>
|
||||||
@ -82,7 +85,18 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
methods:{
|
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) {
|
if (row.url) {
|
||||||
window.open(row.url)
|
window.open(row.url)
|
||||||
}
|
}
|
||||||
|
8
env.js
8
env.js
@ -8,15 +8,15 @@ module.exports = {
|
|||||||
// 开发环境 接口请求地址 (http)或(https)://www.a.com(换成你的域名)/api
|
// 开发环境 接口请求地址 (http)或(https)://www.a.com(换成你的域名)/api
|
||||||
dev: {
|
dev: {
|
||||||
MODE: '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_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 非独立部署默认为空
|
// 生产环境 接口请求地址 (http)或(https)://www.a.com(换成你的域名)/api 非独立部署默认为空
|
||||||
prod: {
|
prod: {
|
||||||
MODE: 'prod',
|
MODE: 'prod',
|
||||||
VUE_APP_API_URL: 'http://114.132.197.85:8099/',
|
VUE_APP_API_URL: 'https://admin.cdtrucktralier.com/',
|
||||||
VUE_APP_WEBSOCKET: 'ws://114.132.197.85:8099/ws/asset/'
|
VUE_APP_WEBSOCKET: 'wss://admin.cdtrucktralier.com/ws/asset/'
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -103,7 +103,7 @@ export default {
|
|||||||
{
|
{
|
||||||
path: '/products.xml',
|
path: '/products.xml',
|
||||||
routes: async () => {
|
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 res.data.map(item => {
|
||||||
return {
|
return {
|
||||||
url: `/products/${item.id}?catgId=${item.id}&maxCatgId=${item.maxCatgId}`,
|
url: `/products/${item.id}?catgId=${item.id}&maxCatgId=${item.maxCatgId}`,
|
||||||
@ -117,7 +117,7 @@ export default {
|
|||||||
{
|
{
|
||||||
path: '/inquiry.xml',
|
path: '/inquiry.xml',
|
||||||
routes: async () => {
|
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 res.data.map(item => {
|
||||||
return {
|
return {
|
||||||
url: `/inquiry?maxCatgId=${item.maxCatgId}?title=${item.title}`,
|
url: `/inquiry?maxCatgId=${item.maxCatgId}?title=${item.title}`,
|
||||||
@ -131,7 +131,7 @@ export default {
|
|||||||
{
|
{
|
||||||
path: '/article-page.xml',
|
path: '/article-page.xml',
|
||||||
routes: async () => {
|
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 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}`,
|
||||||
@ -145,7 +145,7 @@ export default {
|
|||||||
{
|
{
|
||||||
path: '/inquiry.xml',
|
path: '/inquiry.xml',
|
||||||
routes: async () => {
|
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 res.data.map(item => {
|
||||||
return {
|
return {
|
||||||
url: `/separate?maxCatgId=${item.maxCatgId}?title=${item.title}`,
|
url: `/separate?maxCatgId=${item.maxCatgId}?title=${item.title}`,
|
||||||
@ -215,7 +215,7 @@ export default {
|
|||||||
host: '0.0.0.0', // default: localhost
|
host: '0.0.0.0', // default: localhost
|
||||||
proxy: {
|
proxy: {
|
||||||
'/dev': {
|
'/dev': {
|
||||||
target: 'http://114.132.197.85:8099/',
|
target: 'https://admin.cdtrucktralier.com/',
|
||||||
pathRewrite: { '^/dev': '' },
|
pathRewrite: { '^/dev': '' },
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
}
|
}
|
||||||
|
@ -73,7 +73,7 @@
|
|||||||
>
|
>
|
||||||
<template v-solt:lable>
|
<template v-solt:lable>
|
||||||
<div class="mb-2 d-flex align-items-center">
|
<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>
|
<h6 class="label-text">{{ $t('contactUs.title') }}</h6>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -93,7 +93,7 @@
|
|||||||
>
|
>
|
||||||
<template v-solt:lable>
|
<template v-solt:lable>
|
||||||
<div class="mb-2 d-flex align-items-center">
|
<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>
|
<h6 class="label-text">{{ $t('contactUs.company') }}</h6>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
Loading…
Reference in New Issue
Block a user