fix: bug
This commit is contained in:
+1
-1
@@ -2,7 +2,7 @@
|
||||
ENV = 'development'
|
||||
# 'development'
|
||||
|
||||
VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7002'
|
||||
VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7001'
|
||||
# VITE_APP_BASE_API_Url = ' http://25.18.122.66:9786'
|
||||
#sit
|
||||
# VITE_APP_BASE_API_Url = 'http://25.18.122.91:9786'
|
||||
|
||||
@@ -206,7 +206,6 @@
|
||||
const isContinue = ref('N')
|
||||
// 初始化数据
|
||||
const getData = async flag => {
|
||||
isContinue.value = 'N'
|
||||
try {
|
||||
const {
|
||||
body
|
||||
@@ -247,6 +246,7 @@
|
||||
.then(res => {
|
||||
if (res) {
|
||||
// 继续学习 , 获取学习历史接口
|
||||
isContinue.value = 'Y'
|
||||
// 滚动到最下面
|
||||
scrollToBottomNow()
|
||||
sendMessage({
|
||||
@@ -268,7 +268,6 @@
|
||||
}
|
||||
}
|
||||
} catch {} finally {
|
||||
isContinue.value = 'Y'
|
||||
watchFlag.value += 1
|
||||
}
|
||||
}
|
||||
@@ -823,7 +822,7 @@
|
||||
crsId: crsId.value,
|
||||
teacherNo: choiceTeacher.value,
|
||||
studyType: isPreview.value ? 'P' : 'S',
|
||||
isContinue: isContinue.value,
|
||||
isContinue: 'Y',
|
||||
stdyId: stdyId.value
|
||||
}).then(res => {
|
||||
const {
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
:activeVoiceId="activeVoiceTalkingItemId" @handleEvents="talkItemEvents"></TalkingItem>
|
||||
</scroll-view>
|
||||
</view>
|
||||
<TouchBtn class="talk-btns" @uploadVoice="uploadRecordNow" @submitAnswer="submitAnswerNow"
|
||||
<TouchBtn class="talk-btns" @uploadVoice="uploadRecordNow" @submitAnswer="submitAnswerNow" formatType="wav"
|
||||
@startRecord="startRecordCallback" :loadingText="sendLoadingText" :isLoading="!answerIsOver"
|
||||
:adjustPosition="true" :isDisabled="isHistory" />
|
||||
</scroll-view>
|
||||
@@ -605,8 +605,9 @@
|
||||
isLoading: true
|
||||
});
|
||||
scrollToBottomNow();
|
||||
commonUploadVoiceFile(voicePath, '/traask/traAskchat/voiceTrans', {})
|
||||
commonUploadVoiceFile(voicePath, '/traask/traTestchat/voiceTrans', {})
|
||||
.then((_res) => {
|
||||
console.log(_res)
|
||||
if (!!(_res.body.transContent || '').trim()) {
|
||||
talkingList.value.pop();
|
||||
askData.value = {
|
||||
|
||||
@@ -38,7 +38,7 @@
|
||||
<view class="ai-info">
|
||||
<!-- <image src="@/static/images/dialog/pet-3.png" alt="" class="image-pet-bg"></image> -->
|
||||
<image src="@/static/images/dialog/pet-bg-base.png" alt="" class="image-pet-bg"></image>
|
||||
<image :src="userInfo?.mascotInfo?.imgAddr || ''" alt="" class="image-pet" mode="widthFix"></image>
|
||||
<image :src="luimgAddr" alt="" class="image-pet" mode="widthFix"></image>
|
||||
<view class="ai-info-bg-box">
|
||||
<view class="hello-text">{{ userInfo ? 'Hi,我是' + userInfo?.mascotInfo?.mascotName : 'Hi' }}</view>
|
||||
<view class="info-text">工作学习,我都能帮你!</view>
|
||||
@@ -174,6 +174,7 @@
|
||||
const feedbackRef = ref();
|
||||
const watermarkRef = ref();
|
||||
const userInfo = ref(getUserInfo());
|
||||
const luimgAddr = computed(()=> unref(userInfo)?.mascotInfo?.imgAddr || '')
|
||||
const userParams = '/' + (unref(userInfo)?.userName??'') + ' ' + (unref(userInfo)?.loginName??'');
|
||||
const questionList = ref([
|
||||
// '对公小程序开户流程?',
|
||||
@@ -840,6 +841,7 @@
|
||||
uni.offKeyboardHeightChange(setHeight);
|
||||
});
|
||||
onShow(() => {
|
||||
userInfo.value = getUserInfo();
|
||||
uni.onKeyboardHeightChange(setHeight);
|
||||
nextTick(() => {
|
||||
watermarkRef.value?.updateWatermarkText();
|
||||
|
||||
Reference in New Issue
Block a user