diff --git a/assets/image/icon/title.png b/assets/image/icon/title.png index 2acfbdd..5a258cb 100644 Binary files a/assets/image/icon/title.png and b/assets/image/icon/title.png differ diff --git a/components/header-nav.vue b/components/header-nav.vue index 091da27..9e7ee64 100644 --- a/components/header-nav.vue +++ b/components/header-nav.vue @@ -16,12 +16,13 @@
${this.$t('contactUs.contactUs')}

${this.footerInfo.tel}

@@ -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: `
${this.$t('common.Whats')}
@@ -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: `
${this.$t('common.E-mail')}
@@ -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) } diff --git a/env.js b/env.js index 0a7757e..fba57e8 100644 --- a/env.js +++ b/env.js @@ -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/' } }; diff --git a/nuxt.config.js b/nuxt.config.js index 9ac627b..b99199c 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -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, } diff --git a/pages/inquiry.vue b/pages/inquiry.vue index a5e7651..fc56753 100644 --- a/pages/inquiry.vue +++ b/pages/inquiry.vue @@ -73,7 +73,7 @@ > @@ -93,7 +93,7 @@ >