diff --git a/dc-App/config.js b/dc-App/config.js index acf3842..e23b9b1 100644 --- a/dc-App/config.js +++ b/dc-App/config.js @@ -3,6 +3,9 @@ module.exports = { baseUrl: 'http://10.16.13.40:8880/', wsUrl:'ws://10.16.13.40:8880', imagesUrl: 'http://192.168.1.5:8880', + // baseUrl: 'http://192.168.1.36:8880/', + // wsUrl:'ws://192.168.1.36:8880', + // imagesUrl: 'http://192.168.1.36:8880', peopleIcon:'http://47.243.63.30:88/resource/行人.png', varStop:'http://47.243.63.30:88/resource/途径站点.png', endStopIcon:'http://47.243.63.30:88/resource/公交终点.png', @@ -14,7 +17,8 @@ module.exports = { payUrl:'http://47.243.63.30:88/resource/payInfo.html', publicUrl:'http://flintown.cn:8080/', taxiIcon:'http://47.243.63.30:88/resource/e.png', - + translatorImageUploadUrl:'http://47.243.63.30:8080/v1/files/upload', + // 应用信息 appInfo: { // 应用名称 diff --git a/dc-App/pages/Chat/newChat.vue b/dc-App/pages/Chat/newChat.vue index bb9dee1..9a5e6dc 100644 --- a/dc-App/pages/Chat/newChat.vue +++ b/dc-App/pages/Chat/newChat.vue @@ -82,9 +82,9 @@ - - @@ -115,6 +115,8 @@ export default { //是否长按事件 timer: null,//长按计时器 show: '0', + sayLangIndex : [1], + langIndex: [11], columns: [ ['Arabic-阿拉伯语', 'German-德语', @@ -894,8 +896,8 @@ page { } .sm-text { - font-size: 12px; - margin-left: 5px; + font-size: 20rpx; + //margin-left: 5px; display: flex; align-items: center; line-height: 29px; diff --git a/dc-App/pages/Chat/newChat/submit.vue b/dc-App/pages/Chat/newChat/submit.vue index 97c41be..8174d66 100644 --- a/dc-App/pages/Chat/newChat/submit.vue +++ b/dc-App/pages/Chat/newChat/submit.vue @@ -64,6 +64,7 @@ import {pathToBase64, base64ToPath} from 'image-tools'; import request from '../../../utils/request' import {fileToBase64} from '@/uni_modules/lime-file-utils' import upload from "@/utils/upload"; +import config from "@/config"; // 录音 const recorderManager = uni.getRecorderManager(); @@ -79,7 +80,8 @@ export default { // 直接引用地址可能出不来,需要用require toc: "/static/chat/language.png", timer: '', //计时器 - vlength: 0 + vlength: 0, + translatorImageUploadUrl: config.translatorImageUploadUrl, }; }, components: {