JLBA202505130001_关于吉林银行新建AI智能培训系统的需求_合并安卓ISO

This commit is contained in:
田岩
2026-02-12 17:31:33 +08:00
parent 13fcd674ad
commit da5a2cdfd2
2 changed files with 10 additions and 14 deletions
+1 -1
View File
@@ -2,4 +2,4 @@
ENV = 'sit'
# base api
VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7002'
VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7001'
+9 -13
View File
@@ -101,7 +101,7 @@
import { startAudioRecord, stopAudioRecord } from '@/uni_modules/ty-recording';
import { ProtocolCodec, MessageType, ControlCommand, ControlCode } from '@/pages/sparring/js/ProtocolCodec';
import permissionApi from '@/common/permission';
const emit = defineEmits(['submit']);
const ws = ref(null);
const status = ref<StatusType>('voice');
@@ -142,25 +142,22 @@
});
// 记录 按下移动位置
const touchPos = reactive({ x: 0, y: 0 });
// 计算是否超出按下盒子位置01代表下方盒子,02代表左上03代表右上
const isOutStatus = computed(() => {
if (touchPos.y < bottomAreaTopBoundary) {
if (touchPos.x < horizontalSplitX) return '02';
else return '03';
} else {
return '01';
}
const { y: touchY, x: touchX } = touchPos;
if (touchY >= bottomAreaTopBoundary) return '01';
return touchX < horizontalSplitX ? '02' : '03';
});
// 监听按下移动
const handleMove = (obj) => {
const changedTouche = obj.changedTouches[0];
touchPos.x = changedTouche.pageX;
touchPos.y = changedTouche.pageY;
const { pageX, pageY } = obj.changedTouches[0];
touchPos.x = pageX;
touchPos.y = pageY;
};
const allText = ref('');
const tempText = ref('');
// 键盘还是语音
const keyboardIsShow = ref(false);
const popupRef = ref(null);
@@ -174,7 +171,6 @@
console.error('麦克风权限申请失败:', e);
return;
}
const changedTouche = obj.touches[0];
touchPos.x = changedTouche.clientX;
touchPos.y = changedTouche.clientY;