| | |
| | | </div> |
| | | <!-- 题库底部收藏夹和错题集 --> |
| | | <ul class="question-bottom" v-if="activeMenu == '题库'"> |
| | | <li @click="selectExercisesType('collection')">收藏夹</li> |
| | | <li @click="selectExercisesType('wrong')">错题本</li> |
| | | <li @click="selectExercisesType('collection')" v-if="bookConfig.textbookComponents.indexOf('A434F2C0') > -1"> |
| | | <div><img :src="shouCang" class="hover" /></div> |
| | | <div>收藏夹</div> |
| | | </li> |
| | | <li @click="selectExercisesType('wrong')" v-if="bookConfig.textbookComponents.indexOf('AFC1A288') > -1"> |
| | | <div><img :src="cuoTi" class="hover" /></div> |
| | | <div>错题本</div> |
| | | |
| | | </li> |
| | | </ul> |
| | | <!-- 菜单内容收起 --> |
| | | <div class="menuStateBox" v-if="menuState.open"> |
| | |
| | | title="AI智能问答" |
| | | align-center |
| | | v-model="wendaVisible" |
| | | width="60%" |
| | | width="80%" |
| | | class="myAnserDialogs" |
| | | > |
| | | <div class="wendabox"> |
| | | <iframe src="https://yiyan.baidu.com/" frameborder="0"></iframe> |
| | | <iframe :src="aiQuestion" frameborder="0"></iframe> |
| | | </div> |
| | | </el-dialog> |
| | | <el-dialog title="词典" align-center v-model="cidianVisible" width="60%" class="myAnserDialogs"> |
| | |
| | | import shanchu from '@/assets/images/operation/delete.png' |
| | | import bianji from '@/assets/images/operation/bianji.png' |
| | | import video from '@/assets/images/content/resource.png' |
| | | |
| | | import shouCang from '@/assets/images/menu/shouCang.svg' |
| | | import cuoTi from '@/assets/images/menu/cuoTi.svg' |
| | | //引入VueOfficeDocx组件 |
| | | import VueOfficeDocx from '@vue-office/docx' |
| | | //引入相关样式 |
| | |
| | | import { loadMicroApp } from 'qiankun' |
| | | import { microApps } from '@/child.ts' |
| | | import { open } from 'fs' |
| | | let token = localStorage.getItem('token') |
| | | import { digitalTextbooks, tokenKey} from '@/assets/js/config.ts' |
| | | let token = localStorage.getItem(tokenKey) |
| | | const canvasWith = ref(800) |
| | | const canvasheight = ref(3000) |
| | | const screenWidth = ref( |
| | |
| | | |
| | | const getBookInfo = () => { |
| | | const obj = { |
| | | storeInfo: 'jsek_digitalTextbooks', |
| | | storeInfo: digitalTextbooks, |
| | | path: '*', |
| | | queryType: '*', |
| | | coverSize: { |
| | |
| | | } |
| | | } |
| | | MG.store.getProductList(obj).then((res) => { |
| | | console.log(res.datas, '图书信息') |
| | | if (!res.datas.length) return |
| | | if(res.datas.length > 0){ |
| | | bookInfo.value = res.datas[0] |
| | | if (res.datas[0].purchasedSaleMethodIdList.indexOf(res.datas[0].defaultSaleMethodId) > -1) { |
| | | isBuy.value = true |
| | |
| | | isBuy.value = false |
| | | } |
| | | tryPageCount.value = Number(res.datas[0].probationPage) |
| | | }else{ |
| | | tryPageCount.value = 0 |
| | | } |
| | | }) |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | const handleNodeClick = (data) => { |
| | | if (!isBuy.value) { |
| | | if (!isBuy.value && tryPageCount.value > 0) { |
| | | if (data.start < tryPageCount.value) { |
| | | headerData.process = data.start |
| | | if (window.qiankunState && window.qiankunState.gotoPage) |
| | |
| | | } else if (data.resourceType == '模型') { |
| | | console.log(data, 222) |
| | | let file = bookConfig.value.requestCtx + '/file/api/ApiDownload?md5=' + data.md5 |
| | | console.log(file.exd, 777) |
| | | const ctx = 'https://jsek.bnuic.com' |
| | | if (data.md5) { |
| | | sceneUrl.value = |
| | |
| | | open: true |
| | | }) |
| | | const resourceUrl = ref('') |
| | | |
| | | const aiQuestion = ref("") |
| | | const selectTeachTools = (item: any) => { |
| | | if (token) { |
| | | activeTool.value = item.name |
| | | switch (item.name) { |
| | | case 'AI智能问答': |
| | | aiQuestion.value = "" |
| | | wendaVisible.value = true |
| | | aiQuestion.value = bookConfig.value.aiQuestion ? bookConfig.value.aiQuestion : "https://yiyan.baidu.com/" |
| | | break |
| | | case 'GGB函数工具': |
| | | functionVisible.value = true |
| | |
| | | border: 1px solid #cfcfcf; |
| | | border-radius: 10px; |
| | | background-color: #f9f9f9; |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | text-align: center; |
| | | padding-top:10px; |
| | | // display: flex; |
| | | // justify-content: center; |
| | | // align-items: center; |
| | | img{ |
| | | width:20px; |
| | | height:20px; |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | } |
| | | |
| | | .myAnserDialogs { |
| | | width: 700px; |
| | | width: 80%; |
| | | height: 90vh; |
| | | } |
| | | |