diff --git a/src/assets/inquiry/voice.gif b/src/assets/inquiry/voice.gif index 52a0231..9c79881 100644 Binary files a/src/assets/inquiry/voice.gif and b/src/assets/inquiry/voice.gif differ diff --git a/src/views/inquiry/evaluate/index.vue b/src/views/inquiry/evaluate/index.vue index c6db3d4..a5db8a9 100644 --- a/src/views/inquiry/evaluate/index.vue +++ b/src/views/inquiry/evaluate/index.vue @@ -132,9 +132,16 @@ onMounted(() => { .nodeList" :key="index" > - <div class="value"> + <div v-if="item.correct === 1" class="correct"> + <span>【正确】</span> + <span style="margin-left: 4px">{{ item.recordName }}</span> + </div> + <div v-if="item.correct === 0" class="error"> <span>{{ item.recordName }}</span> </div> + <div v-if="item.correct === 2" class="value"> + <span style="padding-left: 60px">{{ item.recordName }}</span> + </div> </div> </div> </div> @@ -195,95 +202,106 @@ onMounted(() => { </template> <style lang="scss" scoped> .evaluate { - background-image: url("@/assets/inquiry/main_bg.png"); - background-size: 100% 100%; flex: 1; padding: 24px; - margin: 0 12px 26px 0; padding: 52px 50px 32px 32px; + margin: 0 12px 26px 0; + background-image: url("@/assets/inquiry/main_bg.png"); + background-size: 100% 100%; + :deep(.el-collapse-item__header) { width: 100%; height: 40px; background-image: url("@/assets/inquiry/long_title.png"); background-size: 100% 100%; } + .evaluate_main { - overflow: auto; height: calc(100vh - 295px); + overflow: auto; } + .title { - margin-left: 34px; display: flex; align-items: center; + margin-left: 34px; + span { + margin-left: 10px; font-size: 16px; - font-family: Microsoft YaHei-Regular, Microsoft YaHei; font-weight: 400; color: #283c51; - margin-left: 10px; } } + :deep(.el-collapse-item__content) { padding: 0; } + .evaluate_content { - background: rgba(91, 139, 255, 0.05); padding: 16px; margin-top: 8px; + background: rgb(91 139 255 / 5%); } + :deep(.el-collapse-item) { margin-bottom: 24px; } + :deep(.el-collapse-item__wrap) { background-color: unset !important; } + :deep(.el-collapse) { border: 0; } + .evaluate_text { font-size: 14px; - font-family: Microsoft YaHei-Regular, Microsoft YaHei; font-weight: 400; color: #364c63; } + .evaluate_desc { .evaluate_desc_title { display: flex; height: 32px; + img { width: 20px; height: 20px; } + span { + margin-left: 8px; font-size: 12px; - font-family: Microsoft YaHei-Regular, Microsoft YaHei; font-weight: 400; color: #4287ff; - margin-left: 8px; } } } + .userDiagnosisResult { - border-radius: 6px 6px 6px 6px; - border: 1px solid #ffffff; padding: 16px; margin-top: 8px; + border: 1px solid #fff; + border-radius: 6px; + .correct { font-size: 14px; - font-family: Microsoft YaHei-Regular, Microsoft YaHei; font-weight: 400; color: #0db274; } + .error { + padding-left: 60px; font-size: 14px; - font-family: Microsoft YaHei-Regular, Microsoft YaHei; font-weight: 400; color: #ff3b39; - padding-left: 60px; } + .value { font-size: 14px; - font-family: Microsoft YaHei-Regular, Microsoft YaHei; font-weight: 400; } } @@ -291,9 +309,9 @@ onMounted(() => { </style> <style lang="scss"> .evaluate .el-collapse-item__header:hover { + box-sizing: border-box; + height: 40px; background-image: url("@/assets/inquiry/act_long_title.png"); background-size: 100% 100%; - height: 40px; - box-sizing: border-box; } </style> diff --git a/src/views/inquiry/mainContent/mindInquiry/components/voiceInquiry.vue b/src/views/inquiry/mainContent/mindInquiry/components/voiceInquiry.vue index aea144c..db98521 100644 --- a/src/views/inquiry/mainContent/mindInquiry/components/voiceInquiry.vue +++ b/src/views/inquiry/mainContent/mindInquiry/components/voiceInquiry.vue @@ -31,7 +31,7 @@ onMounted(() => { function checkSpeaking() { intervalId = setInterval(() => { const dataArray = audioRecorder.getRecordAnalyseData(); - const isSpeaking = Array.from(dataArray).some(value => value > 128); + const isSpeaking = Array.from(dataArray).some(value => value > 138); if (isSpeaking) { if (recordType.value === "0") { recordType.value = "1"; @@ -64,15 +64,16 @@ async function stopRecording() { const { data } = await receiveVoiceFile(params); text.value = data; recordType.value = "3"; + sendVoiceOption(); } const emit = defineEmits(["changeType", "save"]); -const reset = () => { - text.value = defultText; - recordType.value = "0"; - startRecording(); - checkSpeaking(); -}; +// const reset = () => { +// text.value = defultText; +// recordType.value = "0"; +// startRecording(); +// checkSpeaking(); +// }; onClickOutside(container, () => emit("changeType", 0)); const sendVoiceOption = () => { @@ -94,7 +95,7 @@ onBeforeUnmount(() => { <img v-show="recordType !== '3'" :src="tokeGifImg" alt="" /> <span>{{ text }}</span> </div> - <div v-show="recordType === '3'" class="btn_list"> + <!-- <div v-show="recordType === '3'" class="btn_list"> <span @click="reset">重置</span> <el-button class="btn" @@ -103,53 +104,56 @@ onBeforeUnmount(() => { type="primary" >发送</el-button > - </div> + </div> --> </div> </template> <style lang="scss" scoped> .voiceInquiry { - height: 104px; - background-image: url(@/assets/inquiry/voice_bg.png); - background-size: 100% 100%; position: fixed; - width: calc(100vw - 642px); bottom: 48px; display: flex; justify-content: center; + width: calc(100vw - 642px); + height: 104px; + background-image: url("@/assets/inquiry/voice_bg.png"); + background-size: 100% 100%; + .voice_footer_cotent { display: flex; flex-direction: column; align-items: center; + img { width: 300px; height: 40px; margin-top: 16px; cursor: pointer; } + span { + margin-top: 6px; font-size: 14px; - font-family: Microsoft YaHei-Regular, Microsoft YaHei; font-weight: 400; color: #364c63; - margin-top: 6px; } } .btn_list { position: absolute; + top: 15px; right: 16px; display: flex; - top: 15px; align-items: center; height: 104px; + span { + margin-right: 16px; font-size: 16px; - font-family: Inter-Regular, Inter; font-weight: 400; color: #4287ff; cursor: pointer; - margin-right: 16px; } + img { width: 24px; height: 24px;