JLBA202505130001_关于吉林银行新建AI智能培训系统的需求_合并安卓ISO
This commit is contained in:
@@ -2,4 +2,4 @@
|
|||||||
ENV = 'sit'
|
ENV = 'sit'
|
||||||
|
|
||||||
# base api
|
# base api
|
||||||
VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7002'
|
VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7001'
|
||||||
|
|||||||
@@ -101,7 +101,7 @@
|
|||||||
import { startAudioRecord, stopAudioRecord } from '@/uni_modules/ty-recording';
|
import { startAudioRecord, stopAudioRecord } from '@/uni_modules/ty-recording';
|
||||||
import { ProtocolCodec, MessageType, ControlCommand, ControlCode } from '@/pages/sparring/js/ProtocolCodec';
|
import { ProtocolCodec, MessageType, ControlCommand, ControlCode } from '@/pages/sparring/js/ProtocolCodec';
|
||||||
import permissionApi from '@/common/permission';
|
import permissionApi from '@/common/permission';
|
||||||
|
|
||||||
const emit = defineEmits(['submit']);
|
const emit = defineEmits(['submit']);
|
||||||
const ws = ref(null);
|
const ws = ref(null);
|
||||||
const status = ref<StatusType>('voice');
|
const status = ref<StatusType>('voice');
|
||||||
@@ -142,25 +142,22 @@
|
|||||||
});
|
});
|
||||||
// 记录 按下移动位置
|
// 记录 按下移动位置
|
||||||
const touchPos = reactive({ x: 0, y: 0 });
|
const touchPos = reactive({ x: 0, y: 0 });
|
||||||
|
|
||||||
// 计算是否超出按下盒子位置01代表下方盒子,02代表左上03代表右上
|
// 计算是否超出按下盒子位置01代表下方盒子,02代表左上03代表右上
|
||||||
const isOutStatus = computed(() => {
|
const isOutStatus = computed(() => {
|
||||||
if (touchPos.y < bottomAreaTopBoundary) {
|
const { y: touchY, x: touchX } = touchPos;
|
||||||
if (touchPos.x < horizontalSplitX) return '02';
|
if (touchY >= bottomAreaTopBoundary) return '01';
|
||||||
else return '03';
|
return touchX < horizontalSplitX ? '02' : '03';
|
||||||
} else {
|
|
||||||
return '01';
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
// 监听按下移动
|
// 监听按下移动
|
||||||
const handleMove = (obj) => {
|
const handleMove = (obj) => {
|
||||||
const changedTouche = obj.changedTouches[0];
|
const { pageX, pageY } = obj.changedTouches[0];
|
||||||
touchPos.x = changedTouche.pageX;
|
touchPos.x = pageX;
|
||||||
touchPos.y = changedTouche.pageY;
|
touchPos.y = pageY;
|
||||||
};
|
};
|
||||||
const allText = ref('');
|
const allText = ref('');
|
||||||
const tempText = ref('');
|
const tempText = ref('');
|
||||||
|
|
||||||
// 键盘还是语音
|
// 键盘还是语音
|
||||||
const keyboardIsShow = ref(false);
|
const keyboardIsShow = ref(false);
|
||||||
const popupRef = ref(null);
|
const popupRef = ref(null);
|
||||||
@@ -174,7 +171,6 @@
|
|||||||
console.error('麦克风权限申请失败:', e);
|
console.error('麦克风权限申请失败:', e);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const changedTouche = obj.touches[0];
|
const changedTouche = obj.touches[0];
|
||||||
touchPos.x = changedTouche.clientX;
|
touchPos.x = changedTouche.clientX;
|
||||||
touchPos.y = changedTouche.clientY;
|
touchPos.y = changedTouche.clientY;
|
||||||
|
|||||||
Reference in New Issue
Block a user