diff --git a/.env.development b/.env.development index 781bd773..02c73bad 100644 --- a/.env.development +++ b/.env.development @@ -16,7 +16,7 @@ VITE_APP_BASE_API_Url = 'https://aitstest.jlbank.com.cn:7001' # h5专用地址 -VITE_APP_BASE_H5_API_Url = 'https://aitstest.jlbank.com.cn:7001' +VITE_APP_BASE_H5_API_Url = 'https://aitstest.jlbank.com.cn:7002' #VITE_APP_BASE_H5_API_Url = 'https://aitstest.jlbank.com.cn:7002' # sit #VITE_APP_BASE_H5_API_Url = 'http://25.18.122.91:9786' diff --git a/src/pages/examination/index.vue b/src/pages/examination/index.vue index 3f1c8108..c704e509 100644 --- a/src/pages/examination/index.vue +++ b/src/pages/examination/index.vue @@ -268,7 +268,7 @@ // 录音按钮提交 const touchBtnSubmit = (type, submitObj) => { - // const old_text = touchBtnRef.value?.clearinputText(); // 清除发送框数据 + touchBtnRef.value?.clearinputText(); // 清除发送框数据 if (type === 'voice') { topic.value.es_status = '00'; // 00转圈 const voicePath = submitObj; @@ -277,7 +277,6 @@ let _res = JSON.parse(res.data); if (_res.rtnCode === '0000') { const _content = _res.body.transContent.trim(); - console.log('_content', _content); if (_content === '') { topic.value.es_status = ''; // 取消转圈 return common.msg('未识别到文字'); @@ -294,8 +293,6 @@ }) .catch((err) => { topic.value.es_status = ''; // 取消转圈 - // 失败了再把发送框数据还原回去 - // touchBtnRef.value?.clearinputText(old_text); // 清除发送框数据 common.msg('系统异常,请联系管理员'); }); } else if (type === 'text') { diff --git a/src/pages/practice/index.vue b/src/pages/practice/index.vue index 7bee6a94..675d7473 100644 --- a/src/pages/practice/index.vue +++ b/src/pages/practice/index.vue @@ -4,7 +4,6 @@ {{ paperData.name }} - @@ -24,7 +23,7 @@ - + { - const old_text = touchBtnRef.value?.clearinputText(); // 清除发送框数据 - + const touchBtnSubmit = (type, submitObj) => {1 + touchBtnRef.value?.clearinputText(); // 清除发送框数据 if (type === 'voice') { topic.value.es_status = '00'; // 00转圈 const voicePath = submitObj; @@ -308,19 +306,23 @@ .then((res) => { let _res = JSON.parse(res.data); if (_res.rtnCode === '0000') { - topic.value.es_status = '02'; - topic.value.my_answer = { - anserResult: _res.body.transContent, - ossKey: _res.body.fileId, - ossAddr: _res.body.ossFileAddr, - voicePath: voicePath - }; + const _content = _res.body.transContent.trim(); + if (_content === '') { + topic.value.es_status = ''; // 取消转圈 + return common.msg('未识别到文字'); + } else { + topic.value.es_status = '02'; + topic.value.my_answer = { + anserResult: _res.body.transContent, + ossKey: _res.body.fileId, + ossAddr: _res.body.ossFileAddr, + voicePath: voicePath + }; + } } }) .catch((err) => { topic.value.es_status = ''; // 取消转圈 - // 失败了再把发送框数据还原回去 - touchBtnRef.value?.clearinputText(old_text); // 清除发送框数据 common.msg('系统异常,请联系管理员'); }); } else if (type === 'text') { @@ -370,11 +372,10 @@ // 中途退出 dialogRef.value.close(); common.loading(); - try{ + try { await practiceCommit({ exrId: paperData.exrId, examLenTm: practiceTime.value, stat: 'U' }); common.navigateBack(); - }catch(e){ - } + } catch (e) {} common.hideLoading(); } else if (key === 'revert') { // 返回 @@ -710,7 +711,7 @@ .grey { margin-right: 8rpx; } - .countdown_time{ + .countdown_time { white-space: nowrap; } color: #ffffff; diff --git a/src/pages/wrongQuestionRecord/correct.vue b/src/pages/wrongQuestionRecord/correct.vue index c75580cf..c617e422 100644 --- a/src/pages/wrongQuestionRecord/correct.vue +++ b/src/pages/wrongQuestionRecord/correct.vue @@ -79,17 +79,17 @@