This commit is contained in:
Vinjor 2025-10-21 15:35:43 +08:00
parent d8ca19cfc5
commit 2c1f533d02
5 changed files with 29 additions and 12 deletions

View File

@ -25,7 +25,7 @@
text-overflow: ellipsis; //文本溢出部分用省略号表示 text-overflow: ellipsis; //文本溢出部分用省略号表示
display: -webkit-box; //特别显示模式 display: -webkit-box; //特别显示模式
-webkit-line-clamp: 2; //行数 -webkit-line-clamp: 2; //行数
line-clamp: 2; line-clamp: 2;
-webkit-box-orient: vertical; //盒子中内容竖直排列 -webkit-box-orient: vertical; //盒子中内容竖直排列
} }
@ -55,6 +55,9 @@
p { p {
text-align: left; text-align: left;
} }
table{
max-width: 100% !important;
}
} }
.pretty-header { .pretty-header {
height: 59px; height: 59px;
@ -86,4 +89,4 @@
.breadcrumb-item + .breadcrumb-item::before { .breadcrumb-item + .breadcrumb-item::before {
content: '>>'; content: '>>';
} }

6
env.js
View File

@ -8,9 +8,9 @@ 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://127.0.0.1:8099/', VUE_APP_API_URL: 'http://127.0.0.1:8099/',
VUE_APP_API_URL: 'https://admin.cdtrucktralier.com/', // VUE_APP_API_URL: 'https://admin.cdtrucktralier.com/',
VUE_APP_WEBSOCKET: 'wss://admin.cdtrucktralier.com/ws/asset/' VUE_APP_WEBSOCKET: 'ws://127.0.0.1:8099/ws/asset/'
}, },
// 生产环境 接口请求地址 (http)或(https)://www.a.com(换成你的域名)/api 非独立部署默认为空 // 生产环境 接口请求地址 (http)或(https)://www.a.com(换成你的域名)/api 非独立部署默认为空
prod: { prod: {

View File

@ -124,6 +124,7 @@
"chat": { "chat": {
"title": "Online Service", "title": "Online Service",
"description": "Please enter your question... Press Enter to send.", "description": "Please enter your question... Press Enter to send.",
"littleTitle": "Hello! It's a pleasure to assist you. How may I help you?" "littleTitle": "Hello! It's a pleasure to assist you. How may I help you?",
"downloadApp": "You can also click to download the APP (Android) and have a conversation with the online customer service."
} }
} }

View File

@ -4,7 +4,7 @@
"viewDetails": "查看详情", "viewDetails": "查看详情",
"truckModel": "卡车型号", "truckModel": "卡车型号",
"dimension": "尺寸长x宽x高毫米", "dimension": "尺寸长x宽x高毫米",
"overhang": "悬垂(前/后mm", "overhang": "悬垂(前/后mm",
"wheelBase": "轴距mm", "wheelBase": "轴距mm",
"maxSpeed": "最高速度(公里/小时)", "maxSpeed": "最高速度(公里/小时)",
"curbWeight": "整备质量kg", "curbWeight": "整备质量kg",
@ -124,6 +124,7 @@
"chat": { "chat": {
"title": "在线客服", "title": "在线客服",
"description": "请输入您的问题...按Enter发送", "description": "请输入您的问题...按Enter发送",
"littleTitle": "您好!很高兴为您服务,请问有什么可以帮您?" "littleTitle": "您好!很高兴为您服务,请问有什么可以帮您?",
"downloadApp": "您也可以点击下载APP(安卓),与在线客服进行会话"
} }
} }

View File

@ -1,6 +1,6 @@
<template> <template>
<!-- 选择产品对话框 --> <!-- 选择产品对话框 -->
<el-dialog :title="$t('chat.title')" :visible.sync="open" @close="close" width="800px" append-to-body class="customer-service-dialog"> <el-dialog :title="$t('chat.title')" :visible.sync="open" @close="close" append-to-body class="customer-service-dialog">
<!-- 自定义标题栏 --> <!-- 自定义标题栏 -->
<div slot="header" class="dialog-header"> <div slot="header" class="dialog-header">
<div class="service-info"> <div class="service-info">
@ -16,6 +16,7 @@
<!-- 系统欢迎消息 --> <!-- 系统欢迎消息 -->
<div v-if="message.length === 0" class="system-message"> <div v-if="message.length === 0" class="system-message">
{{ $t('chat.littleTitle') }} {{ $t('chat.littleTitle') }}
<a style="color: #409eff" :href="appDownloadUrl">{{$t('chat.downloadApp')}}</a>
</div> </div>
<!-- 消息项 --> <!-- 消息项 -->
@ -75,6 +76,7 @@ export default {
productId: '', productId: '',
// //
equipment: null, equipment: null,
appDownloadUrl:`${process.env.NUXT_ENV.VUE_APP_API_URL}web/downloadApk`
} }
}, },
@ -343,6 +345,16 @@ export default {
</script> </script>
<style scoped> <style scoped>
@media screen and (max-width:900px) {
/deep/.el-dialog{
width: 90% !important;
}
}
@media screen and (min-width:901px) {
/deep/.el-dialog{
width: 800px !important;
}
}
.customer-service-dialog { .customer-service-dialog {
--primary-color: #409eff; --primary-color: #409eff;
@ -663,4 +675,4 @@ export default {
80% { transform: scale(0); } 80% { transform: scale(0); }
100% { transform: scale(0); } 100% { transform: scale(0); }
} }
</style> </style>