fix:回答提示
This commit is contained in:
+2
-2
@@ -4,8 +4,8 @@ ENV = 'development.yh'
|
||||
|
||||
# VITE_APP_BASE_H5_API_Url = 'http://25.18.122.65:7001'
|
||||
|
||||
# VITE_APP_BASE_H5_API_Url = 'http://25.18.122.91:9786'
|
||||
VITE_APP_BASE_H5_API_Url = 'http://25.18.122.78:9786'
|
||||
VITE_APP_BASE_H5_API_Url = 'http://25.18.122.91:9786'
|
||||
# VITE_APP_BASE_H5_API_Url = 'http://25.18.122.78:9786'
|
||||
# VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7002'
|
||||
# VITE_APP_BASE_H5_API_Url_TRAEXAM = 'http://25.64.32.154:9604'
|
||||
# VITE_APP_BASE_H5_API_Url_TRAPRACTICE = 'http://25.64.32.156:9603'
|
||||
|
||||
@@ -18,10 +18,12 @@
|
||||
<view v-else></view>
|
||||
<view class="talking-tips" v-if="talkingType === 'answer' && !isExam && isLast">
|
||||
<view class="talking-tips-btn" @click="getTips()">回答提示</view>
|
||||
<view v-show="showContent">
|
||||
<view class="talking-tips-loading" v-if="loadingTips">
|
||||
<CommonLoading color="#06f" />
|
||||
</view>
|
||||
<view class="talking-tips-cont" v-else>{{tipsContent}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -92,6 +94,7 @@
|
||||
|
||||
const loadingTips = ref(false)
|
||||
const tipsContent = ref('')
|
||||
const showContent = ref(false)
|
||||
const handleEvents = (type, info = {}) => {
|
||||
emit('handleEvents', {
|
||||
type,
|
||||
@@ -101,24 +104,28 @@
|
||||
})
|
||||
}
|
||||
const getTips = () => {
|
||||
if(tipsContent.value){
|
||||
tipsContent.value = ''
|
||||
if(showContent.value){
|
||||
showContent.value = false
|
||||
return
|
||||
}
|
||||
loadingTips.value = true
|
||||
showContent.value = true
|
||||
handleEvents('scrollToBottom')
|
||||
partnerChatPrompt({
|
||||
execId: props.execId,
|
||||
traId: props.traId,
|
||||
content: props.talkingInfo.talkingText,
|
||||
chaId: roleInfo.value?.chaId
|
||||
}).then(res=>{
|
||||
tipsContent.value = res.body
|
||||
loadingTips.value = false
|
||||
if(!tipsContent.value){
|
||||
loadingTips.value = true
|
||||
handleEvents('scrollToBottom')
|
||||
}).catch(()=> {
|
||||
loadingTips.value =false
|
||||
})
|
||||
partnerChatPrompt({
|
||||
execId: props.execId,
|
||||
traId: props.traId,
|
||||
content: props.talkingInfo.talkingText,
|
||||
chaId: roleInfo.value?.chaId
|
||||
}).then(res=>{
|
||||
tipsContent.value = res.body
|
||||
loadingTips.value = false
|
||||
handleEvents('scrollToBottom')
|
||||
}).catch(()=> {
|
||||
loadingTips.value =false
|
||||
})
|
||||
}
|
||||
}
|
||||
const changePlay = (id) => {
|
||||
emit('handleEvents', {
|
||||
|
||||
Reference in New Issue
Block a user