From 4e201651d4a5ca76b66faba9e00f5ee2f9ae484f Mon Sep 17 00:00:00 2001 From: YM <479443481@qq.com> Date: 星期三, 20 十一月 2024 15:27:54 +0800 Subject: [PATCH] 1 --- src/views/readerPages/webHome.vue | 37 +++++++++++++++++++++++++++++++++++++ 1 files changed, 37 insertions(+), 0 deletions(-) diff --git a/src/views/readerPages/webHome.vue b/src/views/readerPages/webHome.vue index b96fab7..3ba1680 100644 --- a/src/views/readerPages/webHome.vue +++ b/src/views/readerPages/webHome.vue @@ -8,6 +8,7 @@ <div class="userName" v-if="userInfo.name">{{ userInfo.name }}</div> <div v-if="token"><div class="layout hover" @click="layoutBtn">閫�鍑�</div></div> <div v-else><div class="layout hover" @click="goLogin">鐧诲綍</div></div> + <div @click="openFormulaDialog">鍏紡</div> </div> </div> <div class="contentBox"> @@ -815,6 +816,10 @@ </div> </div> </div> + <!-- 璇煶闃呰缁勪欢 --> + <!-- <div class="voice-reader"> + <voiceReader /> + </div> --> </div> <!-- 鏁欏缁勪欢 --> <div class="toolBox"> @@ -1234,6 +1239,16 @@ <wrongQuestion /> </div> </el-dialog> + <el-dialog + title="鍏紡缂栬緫" + align-center + v-model="formulaDialog" + class="myDialogs" + > + <div class="wendabox"> + <formula /> + </div> + </el-dialog> <!-- 绛旈鍣� --> <examination ref="examinationRef" @@ -1242,6 +1257,10 @@ :type="examinationData.type" :infoType="examinationData.infoType" /> + <!-- 璁$畻鍣� --> + <el-dialog title="璁$畻鍣�" align-center v-model="calculatorVisble" width="550" style="height:548px"> + <calculator /> + </el-dialog> </template> <script setup lang="ts"> @@ -1251,6 +1270,7 @@ import { useRouter, useRoute } from 'vue-router' import useClipboard from 'vue-clipboard3' import examination from '../examination/index.vue' +import calculator from '../components/calculator.vue' const { toClipboard } = useClipboard() const MG: any = inject('MG') const toolClass = inject('toolClass') @@ -1262,7 +1282,9 @@ import moment from 'moment' import dictionary from '@/views/components/dictionary.vue' import newWord from '@/views/components/newWord.vue' +import formula from '@/views/components/formula.vue' import wrongQuestion from '@/views/components/wrongQuestion.vue' +import voiceReader from '@/views/components/voiceReader.vue' import { ElMessage, ElMessageBox, valueEquals } from 'element-plus' import logo from '@/assets/images/header/logo.png' import mulu from '@/assets/images/menu/mulu.png' @@ -2698,6 +2720,7 @@ const siweiVisble = ref(false) const modelToolVisble = ref(false) const shengciVisble = ref(false) +const calculatorVisble = ref(false) const activeTool = ref(0) const toolState = reactive({ open: true @@ -2726,6 +2749,10 @@ case '鐢熻瘝鍗$墖': resourceUrl.value = bookConfig.value.resourceUrl shengciVisble.value = true + break + case '璁$畻鍣�': + calculatorVisble.value = true + break } } else { ElMessageBox.confirm('璇峰厛鐧诲綍锛�', { @@ -4013,6 +4040,11 @@ }) } } + +const formulaDialog = ref(false) +const openFormulaDialog = () => { + formulaDialog.value = true +} </script> <style lang="less"> @@ -5129,4 +5161,9 @@ width: 100%; } } +.voice-reader { + position:absolute; + bottom:30px; + left:50px; +} </style> -- Gitblit v1.9.1