JLBA202505130001_关于吉林银行新建AI智能培训系统的需求_合并subject文件冲突
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'
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<view class="item" :class="{'no-touch':qnsTyp === 'ES' && !isDisabled && ['examination', 'practice', 'mistake_in', 'pk_in'].includes(props.mode)}">
|
||||
<view class="top">
|
||||
<!-- v-if="!['study'].includes(props.mode)" -->
|
||||
<view class="type" v-if="!['study_answer'].includes(props.mode)">{{ subject_type_text }}</view>
|
||||
<view class="type" v-if="!['study_answer', 'study_record'].includes(props.mode)">{{ subject_type_text }}</view>
|
||||
<view class="score" v-if="['settlement', 'examination', 'pk_in'].includes(props.mode)">
|
||||
{{ item.tgtGrade }}分
|
||||
</view>
|
||||
@@ -44,14 +44,13 @@
|
||||
</template>
|
||||
</view>
|
||||
</view>
|
||||
<view class="question_text" v-if="!['study_answer'].includes(props.mode)">
|
||||
<view class="question_text" v-if="!['study_answer', 'study_record'].includes(props.mode)">
|
||||
{{ subject_data.qnsContent }}
|
||||
</view>
|
||||
<view :style="{ height: animationHeight }" :class="{ collapse_wrapper: props.mode === 'mistake' }" ref="wrapperRef">
|
||||
<view class="collapse-content" ref="contentRef">
|
||||
<view class="option_div" v-if="!['study_answer'].includes(props.mode)">
|
||||
<view class="option_div" v-if="!['study_answer', 'study_record'].includes(props.mode)">
|
||||
<template v-if="qnsTyp === 'ES'">
|
||||
|
||||
<questionVue
|
||||
:status="subject_data.es_status"
|
||||
:dataInfo="props.item?.my_answer"
|
||||
@@ -75,7 +74,7 @@
|
||||
class="option_div_button"
|
||||
v-if="
|
||||
qnsTyp === 'MU' &&
|
||||
['practice', 'study', 'study_answer', 'pk_in', 'mistake_in'].includes(props.mode) &&
|
||||
['practice', 'study', 'study_answer', 'study_record', 'pk_in', 'mistake_in'].includes(props.mode) &&
|
||||
!props.isPreview &&
|
||||
clearResult
|
||||
"
|
||||
@@ -96,7 +95,7 @@
|
||||
class="analysis_div"
|
||||
v-if="
|
||||
!clearResult &&
|
||||
['study', 'study_answer', 'mistake', 'settlement', 'practice', 'mistake_in', 'practice_record', 'pk_in'].includes(props.mode)
|
||||
['study', 'study_answer', 'study_record', 'mistake', 'settlement', 'practice', 'mistake_in', 'practice_record', 'pk_in'].includes(props.mode)
|
||||
"
|
||||
>
|
||||
<view class="analysis_title" v-if="qnsTyp !== 'ES'">
|
||||
@@ -106,7 +105,7 @@
|
||||
<text :class="right_or_wrong_class ? 'success' : 'error'">{{ myResultLabel.join('') }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="reference_answer" v-if="qnsTyp === 'ES' && !['study', 'study_answer'].includes(props.mode)">
|
||||
<view class="reference_answer" v-if="qnsTyp === 'ES' && !['study', 'study_answer', 'study_record'].includes(props.mode)">
|
||||
<view class="reference_answer_title">你的答案:</view>
|
||||
{{ subject_data.anserResult ?? '' }}
|
||||
</view>
|
||||
@@ -171,7 +170,7 @@
|
||||
// 学习: study
|
||||
// 考试结算页 settlement
|
||||
// 练习记录页 practice_record, 'practice_record'
|
||||
return ['examination', 'practice', 'mistake', 'mistake_in', 'study', 'study_answer', 'settlement', 'practice_record', 'pk_in'].includes(
|
||||
return ['examination', 'practice', 'mistake', 'mistake_in', 'study', 'study_answer', 'study_record', 'settlement', 'practice_record', 'pk_in'].includes(
|
||||
value
|
||||
);
|
||||
}
|
||||
@@ -318,7 +317,7 @@
|
||||
if (item_answer.value.includes(analysisVo.itemId)) {
|
||||
item_answer.value = item_answer.value.filter((id) => id !== analysisVo.itemId);
|
||||
modelValue.value = item_answer.value;
|
||||
if (!['study','study_answer'].includes(props.mode)) {
|
||||
if (!['study','study_answer', 'study_record'].includes(props.mode)) {
|
||||
muCheckbox('choose');
|
||||
}
|
||||
} else if (props.item.qnsTyp === 'SN') {
|
||||
@@ -332,7 +331,7 @@
|
||||
// 多选直接插入
|
||||
item_answer.value.push(analysisVo.itemId);
|
||||
modelValue.value = item_answer.value;
|
||||
if (!['study','study_answer'].includes(props.mode)) {
|
||||
if (!['study','study_answer', 'study_record'].includes(props.mode)) {
|
||||
muCheckbox('choose');
|
||||
}
|
||||
} else if (props.item.qnsTyp === 'JD') {
|
||||
@@ -473,6 +472,7 @@
|
||||
margin-top: 28rpx;
|
||||
}
|
||||
.reference_answer {
|
||||
white-space: pre-line;
|
||||
.reference_answer_title {
|
||||
font-weight: 700;
|
||||
font-size: 30rpx;
|
||||
|
||||
@@ -84,11 +84,11 @@
|
||||
imgId: {
|
||||
handler(newval, oldval) {
|
||||
if (newval.indexOf('/') === 0) {
|
||||
this.imgUrlShow = this.base_url + newval;
|
||||
this.imgUrlShow = this.base_url + newval + '?tk=' + this.token;
|
||||
return;
|
||||
}
|
||||
if (newval.indexOf('http') === 0) {
|
||||
this.imgUrlShow = newval;
|
||||
this.imgUrlShow = newval + '?tk=' + this.token;
|
||||
return;
|
||||
}
|
||||
if (newval && this.watching) {
|
||||
|
||||
@@ -9,12 +9,13 @@
|
||||
<esQuestionAnswer v-for="item in dataInfo.analyContentVos" :dataInfo="item" :intrctWay="item.ossKey?'02':'01'"
|
||||
:activeVoiceId="activeVoiceId" @changePlay="changePlay" />
|
||||
</view>
|
||||
<view class="analysis_div">
|
||||
<slot></slot>
|
||||
<!-- <view class="analysis_div">
|
||||
<view class="analysis_title">
|
||||
<view class="success_answer">参考答案:{{ dataInfo.itemAnswer }}</view>
|
||||
</view>
|
||||
<view class="analysis_note">试题解析:{{ dataInfo?.analyContent }}</view>
|
||||
</view>
|
||||
</view> -->
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -119,6 +120,8 @@
|
||||
font-size: 30rpx;
|
||||
margin-top: 20rpx;
|
||||
margin-bottom: 20rpx;
|
||||
font-weight: bold;
|
||||
color: #333333;
|
||||
}
|
||||
|
||||
.talking-info {
|
||||
|
||||
@@ -49,6 +49,7 @@
|
||||
import {
|
||||
onUnload
|
||||
} from '@dcloudio/uni-app';
|
||||
import { getToken } from '@/common/common.js'
|
||||
const props = defineProps({
|
||||
dataInfo: {
|
||||
default: () => ({
|
||||
@@ -135,10 +136,11 @@
|
||||
emit('buutton_click', type, props.dataInfo);
|
||||
};
|
||||
const pauseVoice = () => {
|
||||
console.log('pauseVoice')
|
||||
if (!talkVoiceObj.value) return;
|
||||
talkVoiceObj.value.pause();
|
||||
isPlaying.value = false;
|
||||
emit('changePlay', '');
|
||||
// emit('changePlay', '');
|
||||
};
|
||||
const playVoice = () => {
|
||||
emit('changePlay', unref(dataInfo)?.ossAddr);
|
||||
@@ -149,7 +151,7 @@
|
||||
talkVoiceObj.value.src = '';
|
||||
if (unref(dataInfo).ossAddr) {
|
||||
setTimeout(() => {
|
||||
talkVoiceObj.value.src = unref(dataInfo).ossAddr;
|
||||
talkVoiceObj.value.src = unref(dataInfo).ossAddr + '?tk=' + getToken();
|
||||
talkVoiceObj.value.play();
|
||||
isPlaying.value = true;
|
||||
}, 100);
|
||||
@@ -160,22 +162,26 @@
|
||||
talkVoiceObj.value = uni.createInnerAudioContext();
|
||||
let prevTime = -1;
|
||||
talkVoiceObj.value.onEnded(() => {
|
||||
console.log('onEnded')
|
||||
emit('changePlay', '');
|
||||
prevTime = -1;
|
||||
talkVoiceObj.value.src = '';
|
||||
});
|
||||
talkVoiceObj.value.onStop(() => {
|
||||
console.log('onEnded')
|
||||
emit('changePlay', '');
|
||||
prevTime = -1;
|
||||
talkVoiceObj.value.src = '';
|
||||
});
|
||||
talkVoiceObj.value.onPause(() => {
|
||||
console.log('onEnded')
|
||||
prevTime = talkVoiceObj.value.currentTime;
|
||||
emit('changePlay', '');
|
||||
});
|
||||
talkVoiceObj.value.onError(() => {
|
||||
prevTime = -1;
|
||||
emit('changePlay', '');
|
||||
console.log('onError')
|
||||
// prevTime = -1;
|
||||
// emit('changePlay', '');
|
||||
});
|
||||
talkVoiceObj.value.onPlay(() => {
|
||||
prevTime = talkVoiceObj.value.currentTime;
|
||||
@@ -195,7 +201,7 @@
|
||||
}
|
||||
});
|
||||
if (unref(dataInfo).intrctWay === '02') {
|
||||
itemVoice.value = unref(dataInfo).ossAddr;
|
||||
itemVoice.value = unref(dataInfo).ossAddr + '?tk=' + getToken();
|
||||
talkVoiceObj.value.src = itemVoice.value;
|
||||
setTimeout(() => {
|
||||
setVoiceTime(0);
|
||||
|
||||
@@ -31,10 +31,13 @@
|
||||
{{ showContent }}
|
||||
</text>
|
||||
<!-- 试题问题 -->
|
||||
<Subject v-if="[4, 8].indexOf(type) >= 0" :isPreview="!isLast" :item="subjectInfo"
|
||||
:mode="mode" :clearResult="type === 4" @subject_click="subject_click" />
|
||||
<!-- <esQuestion v-if="[4, 8].indexOf(type) >= 0 && dataInfo.qnsTyp === 'ES'" @changePlay="changePlay"
|
||||
:activeVoiceId="activeVoiceId" :dataInfo="esSubjectInfo" /> -->
|
||||
<esQuestion v-if="[4, 8].indexOf(type) >= 0 && dataInfo.qnsTyp === 'ES'" @changePlay="changePlay"
|
||||
:activeVoiceId="activeVoiceId" :dataInfo="esSubjectInfo">
|
||||
<Subject :isPreview="!isLast" :item="subjectInfo"
|
||||
:mode="mode" :clearResult="type === 4" @subject_click="subject_click" />
|
||||
</esQuestion>
|
||||
<Subject v-if="[4, 8].indexOf(type) >= 0 && dataInfo.qnsTyp !== 'ES'" :isPreview="!isLast" :item="subjectInfo"
|
||||
mode="study" :clearResult="type === 4" @subject_click="subject_click" />
|
||||
<!-- 试题问题反馈 -->
|
||||
<!-- <RadioSubjectRequest v-if="[8].indexOf(type) >= 0 && dataInfo.qnsTyp !== 'ES'" :item="dataInfo" :mode="mode" @subject_click="subject_click" /> -->
|
||||
<!-- 段落图片视频预览 -->
|
||||
@@ -257,7 +260,7 @@
|
||||
})
|
||||
return _sum
|
||||
})
|
||||
const mode = ref('study') // 考试 examination 练习practice 学习study
|
||||
const mode = ref('study_record') // 考试 examination 练习practice 学习study
|
||||
|
||||
const showWithdraw = computed(() => {
|
||||
let _isMe = unref(lastQuestionInfo).qstLogId === unref(dataInfo).qstLogId
|
||||
|
||||
Reference in New Issue
Block a user