diff --git a/.env.development b/.env.development
index 35a7cdcd..944ebd06 100644
--- a/.env.development
+++ b/.env.development
@@ -24,13 +24,16 @@ VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7001'
# 线上
# VITE_APP_BASE_H5_API_Url = 'https://aitstest.jlbank.com.cn:7001'
-VITE_APP_BASE_H5_API_Url = 'http://25.18.122.65:7001'
+VITE_APP_BASE_H5_API_Url = 'https://aitstest.jlbank.com.cn:7001'
+
# VITE_APP_BASE_H5_API_Url_TRAAPP = 'http://25.64.16.130:9601'
# VITE_APP_BASE_H5_API_Url_TRASTUDY = 'http://25.64.16.130:9602'
# VITE_APP_BASE_H5_API_Url_TRAASK = 'http://25.64.16.144:9605'
+
# 王洋洋
# VITE_APP_BASE_H5_API_Url_TRAEXAM = 'http://25.64.16.140:9604'
# 于嘉文
# VITE_APP_BASE_H5_API_Url_TRAEXAM = 'http://25.64.16.143:9604'
+
diff --git a/src/api/examination.js b/src/api/examination.js
index e788a707..a137006c 100644
--- a/src/api/examination.js
+++ b/src/api/examination.js
@@ -32,7 +32,7 @@ export const queryPaperExamScore = (data) => {
});
};
-
+// ↑↑↑↑↑↑↑↑↑考试中心考试↑↑↑↑↑↑↑
// ↓↓↓↓↓↓↓↓↓课程考试↓↓↓↓↓↓↓↓
export const startExamByCrs = (data) => {
@@ -42,4 +42,26 @@ export const startExamByCrs = (data) => {
toastErrors: true,
data
});
-};
\ No newline at end of file
+};
+// 提交课程考试
+export const commitCrsExam = (data) => {
+ return request({
+ url: base_url + '/traCrsPapers/commitCrsExam',
+ method: 'post',
+ toastErrors: true,
+ data
+ });
+};
+// 试卷考试查分
+export const queryCrsExamScore = (data) => {
+ return request({
+ url: base_url + '/traCrsPapers/queryCrsExamScore',
+ method: 'post',
+ toastErrors: true,
+ data
+ });
+};
+
+
+
+
\ No newline at end of file
diff --git a/src/api/practice.js b/src/api/practice.js
index 562ce205..685afc9d 100644
--- a/src/api/practice.js
+++ b/src/api/practice.js
@@ -40,3 +40,13 @@ export const queryPracticeRecordByExrId = (data) => {
data
});
};
+
+// 5.联系时候查询问答题结果
+export const queryCrsPracticeAnswerResult = (data) => {
+ return request({
+ url: base_url + '/traCrsPractice/queryCrsPracticeAnswerResult',
+ method: 'post',
+ toastErrors: true,
+ data
+ });
+};
\ No newline at end of file
diff --git a/src/components/examination/question.vue b/src/components/examination/question.vue
index 775d2c4d..f77f9da1 100644
--- a/src/components/examination/question.vue
+++ b/src/components/examination/question.vue
@@ -1,6 +1,6 @@
-
+
{{voiceTime}}
@@ -14,9 +14,9 @@
-
- -->
+
@@ -30,8 +30,18 @@
{{ showContent }}
+
+
+
+
+ 重答
+
+
-
+
@@ -52,20 +62,39 @@
} from '@dcloudio/uni-app';
const props = defineProps({
dataInfo: {
- default: () => ({}),
+ default: () => ({
+ talkingText:'',
+ talkingVoice:'',
+
+ }),
type: Object
},
- activeVoiceId: {
+
+ text: { // 当前激活的语音
+ default: '',
+ type: String
+ },
+ voice: { // 当前激活的语音
+ default: '',
+ type: String
+ },
+ activeVoiceId: { // 当前激活的语音
+ default: '',
+ type: String
+ },
+ intrctWay: {
default: '',
type: String
},
})
const {
- activeVoiceId,
dataInfo
} = toRefs(props)
- const intrctWay = ref('02')
+ const intrctWay = computed(() => {
+ console.log('props.intrctWay', props.intrctWay);
+ return props.intrctWay
+ })
const emit = defineEmits(['changePlay'])
watch(() => props.dataInfo, () => {}, {
deep: true,
@@ -80,8 +109,10 @@
const voiceTime = ref('')
const itemVoice = ref('')
+
+ // 中间显示的文字
const showContent = computed(() => {
- return dataInfo.value.talkingText || ''
+ return props.text || ''
})
onMounted(() => {
initVoice()
@@ -97,6 +128,11 @@
deep: true,
immediate: true
})
+
+ // 按钮点击
+ const buutton_click = (type) => {
+
+ }
const pauseVoice = () => {
if (!talkVoiceObj.value) return
talkVoiceObj.value.pause()
diff --git a/src/components/examination/radio-subject-item.vue b/src/components/examination/radio-subject-item.vue
index 5f1b3cf4..260cd231 100644
--- a/src/components/examination/radio-subject-item.vue
+++ b/src/components/examination/radio-subject-item.vue
@@ -86,17 +86,19 @@
.option_item {
width: 100%;
- height: 108rpx;
+ min-height: 108rpx;
border-radius: 15rpx;
- margin-top: 32rpx;
font-family: PingFangSC;
font-weight: 500;
font-size: 30rpx;
text-align: left;
font-style: normal;
- padding-left: 52rpx;
display: flex;
align-items: center;
+
+
+ margin-top: 32rpx;
+ padding: 10rpx 10rpx 10rpx 52rpx;
// display: -webkit-box;
@@ -106,21 +108,18 @@
overflow: hidden;
.option_text {
flex: 1;
- white-space: nowrap;
+ // white-space: nowrap;
/* 强制不换行 */
overflow: hidden;
/* 超出部分隐藏 */
text-overflow: ellipsis;
-
-
-
-
}
.img {
+
width: 30rpx;
- // height: 30rpx;
- padding-right: 30rpx;
+ height: 30rpx;
+ padding-right: 20rpx;
}
}
\ No newline at end of file
diff --git a/src/components/examination/subject.vue b/src/components/examination/subject.vue
index a54138f6..d173fb47 100644
--- a/src/components/examination/subject.vue
+++ b/src/components/examination/subject.vue
@@ -6,8 +6,9 @@
-
+
-
+
-
+
正确答案:{{ correctResultLabel.join('') }}
@@ -67,6 +73,7 @@
@@ -202,7 +227,9 @@
padding: 4rpx;
}
}
-
+ .option_div{
+ padding-top: 20rpx;
+ }
.option_div_button {
width: 100%;
height: 84rpx;
diff --git a/src/components/examination/touchBtn.vue b/src/components/examination/touchBtn.vue
index aa4aea6c..0561e714 100644
--- a/src/components/examination/touchBtn.vue
+++ b/src/components/examination/touchBtn.vue
@@ -122,6 +122,8 @@
// #ifdef APP-PLUS
const recorderManager = uni.getRecorderManager();
// #endif
+
+
// const innerAudioContext = uni.createInnerAudioContext();
const startTimer = ref(null); // 延迟启动的定时器ID
const startFlag = ref(1);
diff --git a/src/pages/courseDetail/index.vue b/src/pages/courseDetail/index.vue
index c18d7a8c..39a606a0 100644
--- a/src/pages/courseDetail/index.vue
+++ b/src/pages/courseDetail/index.vue
@@ -222,7 +222,7 @@
setPageCache('practice', {
...res.body,
name: form.value.crsName,
- crsId: crsId.value,
+ crsId: crsId.value
});
common.navigateTo('/pages/practice/index');
})
diff --git a/src/pages/examination/index.vue b/src/pages/examination/index.vue
index 12048141..e3f4ff25 100644
--- a/src/pages/examination/index.vue
+++ b/src/pages/examination/index.vue
@@ -153,7 +153,7 @@
import { getPageCache } from '@/common/common';
import { commonUploadVoiceFile } from '@/api/common.js';
import { optionErrorIcon, examinationSheetIcon } from '@/common/imgSvg';
- import { commitPaperExam, queryPaperExamScore } from '@/api/examination.js';
+ import { commitPaperExam, queryPaperExamScore, startExamByCrs, commitCrsExam } from '@/api/examination.js';
const answerIsOver = ref(true);
const feedbackRef = ref(null);
@@ -218,7 +218,7 @@
const clikc_sheet_item = (index) => {
questionNumber.value = index;
};
-
+
const subject_click = (type, params) => {
if (type === 'mark') {
topicList[questionNumber.value]['mark'] = !topicList[questionNumber.value]['mark'];
@@ -237,7 +237,7 @@
} else if (type === 'text') {
}
};
-
+
// 发送语音
const uploadRecordNow = (voicePath) => {
commonUploadVoiceFile(voicePath, '/traask/traAskchat/voiceTrans', {})
@@ -393,26 +393,38 @@
console.log('answerDtoList', answerDtoList);
dialogRef.value.close();
common.loading('正在提交');
- commitPaperExam({
- examId: paperData.examId,
- execId: paperData.execId || '1',
- examLenTm: 1200,
- answerDtoStr: JSON.stringify(answerDtoList)
+ // 这里通过是否存在examId来判断是考试中心的考试还是课程的考试
+ let func;
+ if (paperData.examId) { // 这里是考试中心考试
+ func = commitPaperExam({
+ papersId: paperData.papersId,
+ examId: paperData.examId,
+ execId: paperData.execId,
+ examLenTm: 1200,
+ answerDtoStr: JSON.stringify(answerDtoList)
+ });
+ } else {
+ func = commitCrsExam({
+ papersId: paperData.papersId,
+ execId: paperData.execId,
+ examLenTm: 1200,
+ answerDtoStr: JSON.stringify(answerDtoList)
+ });
+ }
+ func.then((res) => {
+ console.log('提交成功', res);
+ // 判断是否需要查分
+ if (res.body.flagQuery === 'Y') {
+ // 需要查分
+ const examLenTm = 678;
+ common.redirectTo(
+ `/pages/examination/result?execId=${res.body.execId}&examLenTm=${examLenTm}&papersName=${paperData.papersName}`
+ );
+ } else {
+ // todo 此处应该有个弹窗交代下结果
+ common.navigateBack();
+ }
})
- .then((res) => {
- console.log('提交成功', res);
- // 判断是否需要查分
- if (res.body.flagQuery === 'Y') {
- // 需要查分
- const examLenTm = 678;
- common.redirectTo(
- `/pages/examination/result?execId=${res.body.execId}&examLenTm=${examLenTm}&papersName=${paperData.papersName}`
- );
- } else {
- // todo 此处应该有个弹窗交代下结果
- common.navigateBack();
- }
- })
.catch((res) => {
console.log('error', res);
})
diff --git a/src/pages/learningTasks/components/content-item.vue b/src/pages/learningTasks/components/content-item.vue
new file mode 100644
index 00000000..6b08a68a
--- /dev/null
+++ b/src/pages/learningTasks/components/content-item.vue
@@ -0,0 +1,171 @@
+
+
+
+
+ 未完成
+ 已完成
+
+
+
+ {{ item.taskName }}
+
+
+ 起止时间:
+ {{ item.startTm?.substr(0, 10) }}至{{ item.endTm?.substr(0, 10) }}
+
+
+
+ 完成人数:
+ {{ item.taskFinishSums ?? 0 }}/{{ item.taskSums ?? 0 }}
+
+
+ 进度:
+ {{ item.finishCrs ?? 0 }}/{{ item.sumCrs ?? 0 }}门课程
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/learningTasks/components/content.vue b/src/pages/learningTasks/components/content.vue
new file mode 100644
index 00000000..6992c118
--- /dev/null
+++ b/src/pages/learningTasks/components/content.vue
@@ -0,0 +1,87 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/learningTasks/components/list-item.vue b/src/pages/learningTasks/components/list-item.vue
deleted file mode 100644
index dc1240f8..00000000
--- a/src/pages/learningTasks/components/list-item.vue
+++ /dev/null
@@ -1,249 +0,0 @@
-
-
-
-
-
-
- 未完成
- 已完成
-
-
-
- {{ item.taskName }}
-
-
- 起止时间:
- {{ item.startTm?.substr(0, 10) }}至{{ item.endTm?.substr(0, 10) }}
-
-
-
- 完成人数:
- {{ item.taskFinishSums ?? 0 }}/{{ item.taskSums ?? 0 }}
-
-
- 进度:
- {{ item.finishCrs ?? 0 }}/{{ item.sumCrs ?? 0 }}门课程
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/pages/learningTasks/index.vue b/src/pages/learningTasks/index.vue
index db0e1675..98594b2f 100644
--- a/src/pages/learningTasks/index.vue
+++ b/src/pages/learningTasks/index.vue
@@ -27,13 +27,13 @@
-
+
-
+
-
+
@@ -43,7 +43,7 @@
+
+
diff --git a/src/pages/testingHall/components/content.vue b/src/pages/testingHall/components/content.vue
index 87288b26..cf0fdb58 100644
--- a/src/pages/testingHall/components/content.vue
+++ b/src/pages/testingHall/components/content.vue
@@ -1,246 +1,122 @@
-
+
- 下拉显示
-
- 未完成
- 已完成
-
- {{item.papersName}}
-
-
- 起止时间:{{item.examStartTm}}至{{item.examEndTm}}
-
-
- 完成人数:{{item.execPersionNumer}}/{{item.planPersionNumber}}
-
-
-
+
+
\ No newline at end of file
+
diff --git a/src/pages/testingHall/details.vue b/src/pages/testingHall/details.vue
index ae6c1b1d..e33d4806 100644
--- a/src/pages/testingHall/details.vue
+++ b/src/pages/testingHall/details.vue
@@ -7,169 +7,122 @@
考试详情
-
- 未完成
- 已完成
+
+ 未完成
+ 已完成
- {{detailData.papersName}}
+ {{ detailData.papersName }}
- 起止时间:{{detailData.examStartTm}}至{{detailData.examEndTm}}
+ 起止时间:
+ {{ detailData.examStartTm }}至{{ detailData.examEndTm }}
- 完成人数:{{detailData.execPersionNumer}}/{{detailData.planPersionNumber}}
+ 完成人数:
+ {{ detailData.execPersionNumer }}/{{ detailData.planPersionNumber }}
-
-
- 试卷信息
-
+
+ 试卷信息
- 考试时长:{{detailData.totalGrade}}分钟
+ 考试时长:
+ {{ detailData.limitTm }}
+ 分钟
- {{detailData.passGrade}}分
-
-
- 试卷总分
+ {{ detailData.totalGrade }}
+ 分
+ 试卷总分
- {{detailData.passGrade}}分
+ {{ detailData.passGrade }}
+ 分
-
- 通过分数
-
+ 通过分数
- 不限制
-
-
- 通过次数
+ {{ detailData.limitTypText }}
+ 通过次数
- 随机
-
-
- 试卷类型
+ {{ detailData.papersTypText || '随机' }}
+ 试卷类型
+ 题型
+
+ 数量
+ 分值
+
+
- 题型
+ {{ t.plateName }}
- 数量
+ {{ t.qnsNumber }}
- 分值
+ {{ t.tgtGrade }}
+
-
- 判断题
-
+ 总计
- {{detailData.judgeNumber}}
+ {{ allNumber }}
- {{detailData.judgeGrade}}
-
-
-
-
- 单选题
-
-
-
- {{detailData.singleNumber}}
-
-
- {{detailData.singleGrade}}
-
-
-
-
- 多选题
-
-
-
- {{detailData.multiNumber}}
-
-
- {{detailData.multiGrade}}
-
-
-
-
- 问答题
-
-
-
- {{detailData.essayNumber}}
-
-
- {{detailData.essayGrade}}
-
-
-
-
- 总计
-
-
-
- {{allNumber}}
-
-
- {{allGrade}}
+ {{ allGrade }}
-
- 开始考试
+
+ 开始考试
+
-
-
\ No newline at end of file
+
diff --git a/src/pages/testingHall/index.vue b/src/pages/testingHall/index.vue
index 9771a782..23233b85 100644
--- a/src/pages/testingHall/index.vue
+++ b/src/pages/testingHall/index.vue
@@ -50,24 +50,10 @@
setPageCache
} from '@/common/common';
import common from '@/common/common';
- const customStyle = {
- backgroundColor: "#F1F5FA",
- paddingLeft: "40rpx",
- height: '78rpx',
- paddingTop: "5px",
- paddingBottom: "5px",
- border: "none"
- }
- const suffixIconStyle = {
- color: "#2c8ef2",
- fontSize: "50rpx"
- }
-
- const statusBarHeight = uni.getSystemInfoSync().statusBarHeight;
+
import {
LineBg
} from '@/enum.js'
- const contentRef = ref(null);
const tabAct = ref(0);
const tabList = ref([{