File was renamed from src/views/home.vue |
| | |
| | | <span></span> |
| | | <div class="userInfoBox"> |
| | | <div class="userName" v-if="userInfo.name">{{ userInfo.name }}</div> |
| | | <div><div class="layout hover" @click="layoutBtn">退出</div></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> |
| | | </div> |
| | | <div class="contentBox"> |
| | | <!-- 菜单 --> |
| | | <div class="menuBox"> |
| | | <div v-for="(item, index) in menuData" :key="index" @click="menuItemClick(item.name)"> |
| | | <div |
| | | v-for="(item, index) in menuData" |
| | | :key="index" |
| | | @click="menuItemClick(item.name)" |
| | | :class="token ? '' : 'notClick'" |
| | | > |
| | | <div :class="['menuItem', activeMenu == item.name ? 'active' : '']" v-if="item.isShow"> |
| | | <div class="menuIcon imgBox"> |
| | | <img :src="item.icon" /> |
| | |
| | | placeholder="请输入内容" |
| | | v-model="searchText" |
| | | @keyup.enter="searchBook" |
| | | clearable |
| | | @clear="handleClear" |
| | | > |
| | | <template #prefix> |
| | | <el-icon><Search /></el-icon> |
| | | </template> |
| | | <template #suffix> |
| | | <svg |
| | | @click="searchBook" |
| | | xmlns="http://www.w3.org/2000/svg" |
| | | width="24" |
| | | height="24" |
| | | viewBox="0 0 24 24" |
| | | fill="none" |
| | | stroke="currentColor" |
| | | stroke-width="2" |
| | | stroke-linecap="round" |
| | | stroke-linejoin="round" |
| | | class="icon icon-tabler icons-tabler-outline icon-tabler-list-search hover" |
| | | > |
| | | <path stroke="none" d="M0 0h24v24H0z" fill="none" /> |
| | | <path d="M15 15m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0" /> |
| | | <path d="M18.5 18.5l2.5 2.5" /> |
| | | <path d="M4 6h16" /> |
| | | <path d="M4 12h4" /> |
| | | <path d="M4 18h4" /> |
| | | </svg> |
| | | <img :src="listSearch" @click="searchBook" class="hover"/> |
| | | </template> |
| | | </el-input> |
| | | </div> |
| | |
| | | </div> |
| | | </div> |
| | | <!-- 目录 --> |
| | | <div class="menuList" v-if="activeMenu == '目录'"> |
| | | <div class="menuList" v-if="activeMenu == '目录'" v-loading="listLoading"> |
| | | <el-tree |
| | | ref="catalogTree" |
| | | default-expand-all="true" |
| | | :expand-on-click-node="false" |
| | | highlight-current |
| | | node-key="start" |
| | | highlight-current |
| | | :data="catalogueData" |
| | | :props="defaultProps" |
| | | v-if="catalogueData.length > 0" |
| | | @node-click="handleNodeClick" |
| | | :filter-node-method="filterNode" |
| | | empty-text="暂无数据" |
| | | > |
| | | <template #default="{ node, data }"> |
| | | <div class="custom-tree-node"> |
| | |
| | | </el-tree> |
| | | <div v-else> |
| | | <el-empty :image-size="60" description="暂无数据" /> |
| | | </div> |
| | | </div> |
| | | <div class="allSearch" v-if="activeMenu == '检索'"> |
| | | <div class="list-box" v-loading="listLoading"> |
| | | <div v-if="allSearchReault.length > 0" class="allSearchList"> |
| | | <div v-for="(reault, index) in allSearchReault" :key="index"> |
| | | <div class="chapterName"> |
| | | <el-icon |
| | | @click="searchClose(index)" |
| | | v-if="searchReaultData.isShow && searchReaultData.openIndex == index" |
| | | class="hover" |
| | | ><ArrowDown |
| | | /></el-icon> |
| | | <el-icon @click="searchOpen(index)" v-else class="hover"><ArrowRight /></el-icon> |
| | | <span>{{ reault.chapterName }} ({{ reault.itemList.length }})</span> |
| | | </div> |
| | | <div v-for="(item, index1) in reault.itemList" :key="index1" class="searchItem" v-show="searchReaultData.isShow && searchReaultData.openIndex == index"> |
| | | <div class="index">{{ index1 + 1 }}.</div> |
| | | <div class="searchCon hover" @click="goSearchContent(item)" v-html="item.txt1" :title="item.txt"> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div v-else> |
| | | <el-empty :image-size="60" description="暂无数据" /> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <!-- 笔记 --> |
| | |
| | | ></div> |
| | | </div> |
| | | </div> |
| | | <div class="list-box"> |
| | | <div class="list-box" v-loading="listLoading"> |
| | | <div v-if="scribeData.noteList.length > 0"> |
| | | <div v-for="(noteItem, index) in scribeData.noteList" :key="noteItem"> |
| | | <div class="chapterName"> |
| | |
| | | </div> |
| | | </div> |
| | | <!-- 资源 --> |
| | | <div class="" v-if="activeMenu == '资源'"> |
| | | <div class="resourceBox" v-if="classifySelectList.length > 0"> |
| | | <div class="resourceBox" v-if="activeMenu == '资源'" v-loading="listLoading"> |
| | | <div class="resourceSearchBox" v-if="classifySelectList.length > 0"> |
| | | <div class="classification"> |
| | | <div |
| | | v-for="item in classifySelectList" |
| | |
| | | placeholder="请输入内容" |
| | | v-model="searchText" |
| | | @keyup.enter="searchBook" |
| | | clearable |
| | | @clear="handleClear" |
| | | > |
| | | <template #prefix> |
| | | <el-icon><Search /></el-icon> |
| | | </template> |
| | | <template #suffix> |
| | | <svg |
| | | @click="searchBook" |
| | | xmlns="http://www.w3.org/2000/svg" |
| | | width="20" |
| | | height="20" |
| | | viewBox="0 0 20 20" |
| | | fill="none" |
| | | stroke="currentColor" |
| | | stroke-width="2" |
| | | stroke-linecap="round" |
| | | stroke-linejoin="round" |
| | | class="icon icon-tabler icons-tabler-outline icon-tabler-list-search hover" |
| | | > |
| | | <path stroke="none" d="M0 0h24v24H0z" fill="none" /> |
| | | <path d="M15 15m-4 0a4 4 0 1 0 8 0a4 4 0 1 0 -8 0" /> |
| | | <path d="M18.5 18.5l2.5 2.5" /> |
| | | <path d="M4 6h16" /> |
| | | <path d="M4 12h4" /> |
| | | <path d="M4 18h4" /> |
| | | </svg> |
| | | <img :src="listSearch" @click="searchBook" class="hover"/> |
| | | </template> |
| | | </el-input> |
| | | </div> |
| | |
| | | @mouseleave="showHandle = null" |
| | | > |
| | | <img :src="item.resourcePath" mode="" v-if="activeClassify == 'image'"/> |
| | | <img :src="item.icon" mode="" v-else-if="item.icon && activeClassify != 'image'" /> |
| | | <img |
| | | :src="item.icon" |
| | | mode="" |
| | | v-else-if="item.icon && activeClassify != 'image'" |
| | | /> |
| | | <!-- <el-icon v-else-if="activeClassify == 'image'" size="30"></el-icon> --> |
| | | <el-icon v-else-if="activeClassify == 'audio'" size="30"><Headset /></el-icon> |
| | | <el-icon v-else-if="activeClassify == 'video'" size="30" |
| | |
| | | ><VideoPlay |
| | | /></el-icon> |
| | | <el-icon |
| | | @click="goPlay(item)" |
| | | @click="goPlay(item, index)" |
| | | size="20" |
| | | class="icon hover" |
| | | v-if="item.resourceType == '音频'" |
| | | ><Headset |
| | | v-if="item.resourceType == '音频' && playIndex != index" |
| | | ><VideoPlay |
| | | /></el-icon> |
| | | <el-icon |
| | | @click="goPause()" |
| | | size="20" |
| | | class="icon hover" |
| | | v-if="item.resourceType == '音频' && playIndex == index" |
| | | ><VideoPause |
| | | /></el-icon> |
| | | <el-icon |
| | | @click="getCapture(item, index)" |
| | |
| | | </div> |
| | | </div> |
| | | <!-- 截图 --> |
| | | <div class="" v-if="activeMenu == '截图'"> |
| | | <div class="list-box"> |
| | | <div class="screenshotList" v-if="activeMenu == '截图'"> |
| | | <div class="list-box" v-loading="listLoading"> |
| | | <div class="screenshot" v-if="screenshotList.length > 0"> |
| | | <div v-for="(item, index) in screenshotList" :key="item" class="captureItem"> |
| | | <div class="imgBox" @mouseover="showDelete = index" @mouseleave="showDelete = null"> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <!-- 标签 --> |
| | | <div class="" v-if="activeMenu == '书签'"> |
| | | <div class="list-box"> |
| | | <!-- 书签 --> |
| | | <div class="reMarkList" v-if="activeMenu == '书签'"> |
| | | <div class="list-box" v-loading="listLoading"> |
| | | <div v-if="reMarkList.length > 0"> |
| | | <div v-for="(item, index) in reMarkList" :key="index" class="reMarkItem"> |
| | | <div class="reMarkCon"> |
| | | <div class="reMarkCon hover" @click="goReMark(item)"> |
| | | <span class="con">{{ item.content }}</span> <span>P{{ item.page }}</span> |
| | | </div> |
| | | <div class="deleteReMarkImg"> |
| | |
| | | </div> |
| | | <div class="rightBox"> |
| | | <div class="pageSizeBox"> |
| | | <div><img :src="zoomOut" @click="changePageSize('reduce')" /></div> |
| | | <div class="hover"><img :src="zoomOut" @click="changePageSize('reduce')" /></div> |
| | | <div>{{ headerData.pageSize }}%</div> |
| | | <div><img :src="zoomIn" @click="changePageSize('add')" /></div> |
| | | <div class="hover"><img :src="zoomIn" @click="changePageSize('add')" /></div> |
| | | </div> |
| | | <!-- <div class="brushImgBox"> |
| | | <div @click="jumpContent('note' + index)"> |
| | |
| | | <ul class="menu" v-if="teachToolsMenuData.length > 0"> |
| | | <li v-for="item in teachToolsMenuData" :key="item.key"> |
| | | <div |
| | | :class="item.name === activeTool ? 'activeItem hover' : 'menuItem hover'" |
| | | :class="token ? 'hover' : 'notClick'" |
| | | :style="!toolState.open ? 'padding:10px 15px' : ''" |
| | | v-if="item.isShow" |
| | | @click="selectTeachTools(item)" |
| | |
| | | v-if="floatingToolBox.length > 0" |
| | | > |
| | | <div |
| | | class="hover" |
| | | :class="token ? 'hover' : 'notClick'" |
| | | v-for="item in floatingToolBox" |
| | | :key="item.name" |
| | | @click="floatItemHandle(item)" |
| | |
| | | </div> |
| | | </template> |
| | | </el-popover> |
| | | <div class="floatToolItem mark" |
| | | v-if="floatingToolData.activeToolData == '书签'" |
| | | > |
| | | <div class="floatToolItem mark" v-if="floatingToolData.activeBookmark == '书签'"> |
| | | <el-tooltip class="box-item" effect="dark" :content="item.name" placement="right"> |
| | | <div class="imgBox"> |
| | | <img :src="tagW" alt="" v-if="floatingToolData.activeToolData == item.name"/> |
| | | <img :src="tagW" alt="" v-if="floatingToolData.activeBookmark == item.name" /> |
| | | <img :src="item.icon" alt="" v-else/> |
| | | </div> |
| | | </el-tooltip> |
| | |
| | | ? 'floatToolActive floatToolItem' |
| | | : 'floatToolItem' |
| | | " |
| | | v-else |
| | | v-else-if=" |
| | | floatingToolData.activeToolData != '书签' && |
| | | floatingToolData.activeToolData != '标记' |
| | | " |
| | | > |
| | | <el-tooltip class="box-item" effect="dark" :content="item.name" placement="right"> |
| | | <div class="imgBox"> |
| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="toolSelectBox" v-show="!(toolActive == '高亮' || toolActive == '划线')"> |
| | | <div class="toolSelectBox" v-show="toolActive != '高亮' && toolActive != '划线'"> |
| | | <div v-for="item in dialogToolList" :key="item.icon" @click="dialogToolHandle(item)"> |
| | | <div |
| | | :class="item.name == toolActive ? 'dialogToolItem active' : 'dialogToolItem'" |
| | |
| | | <!-- <el-button @click="delUserKey">删除</el-button> --> |
| | | <div class="dialogToolItem"> |
| | | <el-tooltip class="box-item" effect="dark" content="删除" placement="bottom"> |
| | | <img :src="trash" @click="delUserKey" /> |
| | | <img :src="deleteIcon" @click="delUserKey" /> |
| | | </el-tooltip> |
| | | </div> |
| | | <div class="dialogToolItem"> |
| | | <el-tooltip class="box-item" effect="dark" content="笔记" placement="bottom" v-if="isUpdate"> |
| | | <img :src="noteUpdate" @click="updateNote" /> |
| | | <div class="dialogToolItem" v-if="isUpdate"> |
| | | <el-tooltip class="box-item" effect="dark" content="笔记" placement="bottom"> |
| | | <img :src="biji2" @click="updateNote" /> |
| | | </el-tooltip> |
| | | </div> |
| | | </div> |
| | |
| | | </div> |
| | | </div> |
| | | |
| | | <el-dialog title="资源" align-center v-model="resourVisble" width="845" class="resourDialog"> |
| | | <el-dialog |
| | | title="资源" |
| | | align-center |
| | | v-model="resourVisble" |
| | | width="845" |
| | | class="resourDialog" |
| | | :before-close="resourVisbleClose" |
| | | > |
| | | <div class="videoBox" v-if="resourType == '视频'"> |
| | | <video controls controlslist="nodownload" :src="testVideo"></video> |
| | | </div> |
| | | <div class="videoBox" v-if="resourType == '音频'"> |
| | | <!-- <video controls controlslist="nodownload" :src="testVideo"></video> --> |
| | | <audio ref="audioPlayer" :src="testVideo" controls></audio> |
| | | </div> |
| | | |
| | | <!-- <div class="wordBox" v-if="resourType == 'word'"> |
| | | <vue-office-docx :src="testWord" /> |
| | | </div> --> |
| | | </el-dialog> |
| | | <div class="audioBox" v-show="false"> |
| | | <!-- <video controls controlslist="nodownload" :src="testVideo"></video> --> |
| | | <audio ref="audioPlayer" :src="testAudio" controls @loadedmetadata="autoPlay"></audio> |
| | | </div> |
| | | <!-- 图片 --> |
| | | <el-image-viewer |
| | | v-if="confirmDialog" |
| | |
| | | <iframe src="https://adjam93.github.io/threejs-model-viewer/#" frameborder="0"></iframe> |
| | | </div> |
| | | </el-dialog> |
| | | <el-dialog title="生词卡片" align-center v-model="shengciVisble" width="800" class="myDialogs"> |
| | | <div class="wendabox"> |
| | | <newWord :resourceUrl="resourceUrl" /> |
| | | </div> |
| | | </el-dialog> |
| | | </template> |
| | | |
| | | <script setup lang="ts"> |
| | | import { ref, reactive, watch, onMounted, onBeforeMount, inject } from 'vue' |
| | | import { ctxUrl } from '@/assets/js/config' |
| | | import { useRouter, useRoute } from 'vue-router' |
| | | import useClipboard from 'vue-clipboard3' |
| | | const { toClipboard } = useClipboard() |
| | |
| | | let route = useRoute() |
| | | import moment from 'moment' |
| | | import dictionary from '@/views/components/dictionary.vue' |
| | | import newWord from '@/views/components/newWord.vue' |
| | | import { ElMessage, ElMessageBox, valueEquals } from 'element-plus' |
| | | import logo from '@/assets/images/header/logo.png' |
| | | import mulu from '@/assets/images/menu/mulu.png' |
| | |
| | | import zhishitupu from '@/assets/images/menu/zhishitupu.png' |
| | | import jietu from '@/assets/images/menu/jietu.png' |
| | | import biaoqian from '@/assets/images/menu/biaoqian.png' |
| | | import allSearch from '@/assets/images/menu/allSearch.svg' |
| | | import topbg from '@/assets/images/header/top-bg.png' |
| | | import setting from '@/assets/images/operation/setting.png' |
| | | import search from '@/assets/images/operation/search.png' |
| | | import search1 from '@/assets/images/operation/search1.png' |
| | | import sound from '@/assets/images/operation/sound.png' |
| | | import listSearch from '@/assets/images/operation/list-search.svg' |
| | | |
| | | import aIzhinengwenda from '@/assets/images/menu/AIzhinengwenda.png' |
| | | import aIyuyinyuedu from '@/assets/images/menu/AIyuyinyuedu.png' |
| | |
| | | import dati_charu_blue from '@/assets/images/operation/dati_charu_blue.png' |
| | | import xiake from '@/assets/images/operation/xiake.png' |
| | | |
| | | import huabi from '../assets/images/operation/huabi-w.png' |
| | | import wenzi2 from '../assets/images/operation/wenzi.png' |
| | | import biaoqianw from '../assets/images/operation/biaoqian-w.png' |
| | | import tagW from '../assets/images/operation/tag-w.svg' |
| | | import baiban from '../assets/images/operation/baiban-w.png' |
| | | import biaozhu from '../assets/images/operation/pencil-minus.svg' |
| | | import jieping from '../assets/images/operation/screenshot-w.png' |
| | | import clearPrevious from '../assets/images/operation/clearPrevious.png' |
| | | import hide from '../assets/images/operation/hide.png' |
| | | import show from '../assets/images/operation/show.png' |
| | | import tuichu from '../assets/images/operation/tuichu.png' |
| | | import tuxing from '../assets/images/operation/tuxing.png' |
| | | import chongzuo from '../assets/images/operation/chongzuo.png' |
| | | import qingchu2 from '../assets/images/operation/qingchu.png' |
| | | import huabi from '@/assets/images/operation/huabi-w.png' |
| | | import wenzi2 from '@/assets/images/operation/wenzi.png' |
| | | import biaoqianw from '@/assets/images/operation/biaoqian-w.png' |
| | | import tagW from '@/assets/images/operation/tag-w.svg' |
| | | import baiban from '@/assets/images/operation/baiban-w.png' |
| | | import biaozhu from '@/assets/images/operation/pencil-minus.svg' |
| | | import jieping from '@/assets/images/operation/screenshot-w.png' |
| | | import clearPrevious from '@/assets/images/operation/clearPrevious.png' |
| | | import hide from '@/assets/images/operation/hide.png' |
| | | import show from '@/assets/images/operation/show.png' |
| | | import tuichu from '@/assets/images/operation/tuichu.png' |
| | | import tuxing from '@/assets/images/operation/tuxing.png' |
| | | import chongzuo from '@/assets/images/operation/chongzuo.png' |
| | | import qingchu2 from '@/assets/images/operation/qingchu.png' |
| | | |
| | | import gaoliang from '../assets/images/operation/gaoliang.png' |
| | | import gaoliang1 from '../assets/images/operation/gaoliang-b.png' |
| | | import huaxian from '../assets/images/operation/huaxian.png' |
| | | import huaxian1 from '../assets/images/operation/huaxian1.png' |
| | | import biji2 from '../assets/images/operation/biji.png' |
| | | import biji1 from '../assets/images/operation/biji-b.png' |
| | | import biaozhu2 from '../assets/images/operation/biaozhu.png' |
| | | import biaozhu3 from '../assets/images/operation/biaozhu1.png' |
| | | import fuzhi from '../assets/images/operation/fuzhi.png' |
| | | import fuzhi1 from '../assets/images/operation/fuzhi-b.png' |
| | | import AIyuedu from '../assets/images/operation/AIyuedu.png' |
| | | import AIyuedu1 from '../assets/images/operation/AIyuedu-b.png' |
| | | import cidian2 from '../assets/images/operation/cidian.png' |
| | | import cidian1 from '../assets/images/operation/cidian-b.png' |
| | | import baidu from '../assets/images/operation/baidu.png' |
| | | import baidu1 from '../assets/images/operation/baidu-b.png' |
| | | import yuyinyuedu from '../assets/images/operation/yuyinyuedu.png' |
| | | import yuyinyuedu1 from '../assets/images/operation/yuyinyuedu-b.png' |
| | | import xuanzhong from '../assets/images/operation/xuanzhong.png' |
| | | import xuanzhong1 from '../assets/images/operation/xuanzhong1.png' |
| | | import gaoliang from '@/assets/images/operation/gaoliang.png' |
| | | import gaoliang1 from '@/assets/images/operation/gaoliang-b.png' |
| | | import huaxian from '@/assets/images/operation/huaxian.png' |
| | | import huaxian1 from '@/assets/images/operation/huaxian1.png' |
| | | import biji2 from '@/assets/images/operation/biji.png' |
| | | import biji1 from '@/assets/images/operation/biji-b.png' |
| | | import biaozhu2 from '@/assets/images/operation/biaozhu.png' |
| | | import biaozhu3 from '@/assets/images/operation/biaozhu1.png' |
| | | import fuzhi from '@/assets/images/operation/fuzhi.png' |
| | | import fuzhi1 from '@/assets/images/operation/fuzhi-b.png' |
| | | import AIyuedu from '@/assets/images/operation/AIyuedu.png' |
| | | import AIyuedu1 from '@/assets/images/operation/AIyuedu-b.png' |
| | | import cidian2 from '@/assets/images/operation/cidian.png' |
| | | import cidian1 from '@/assets/images/operation/cidian-b.png' |
| | | import baidu from '@/assets/images/operation/baidu.png' |
| | | import baidu1 from '@/assets/images/operation/baidu-b.png' |
| | | import yuyinyuedu from '@/assets/images/operation/yuyinyuedu.png' |
| | | import yuyinyuedu1 from '@/assets/images/operation/yuyinyuedu-b.png' |
| | | import xuanzhong from '@/assets/images/operation/xuanzhong.png' |
| | | import xuanzhong1 from '@/assets/images/operation/xuanzhong1.png' |
| | | |
| | | import zoomIn from '../assets/images/operation/zoomIn.png' |
| | | import zoomOut from '../assets/images/operation/zoomOut.png' |
| | | import huabi2 from '../assets/images/operation/huabi.svg' |
| | | import trash from '../assets/images/operation/trash.svg' |
| | | import noteUpdate from '../assets/images/operation/Note-b.svg' |
| | | import zoomIn from '@/assets/images/operation/zoomIn.png' |
| | | import zoomOut from '@/assets/images/operation/zoomOut.png' |
| | | import huabi2 from '@/assets/images/operation/huabi.svg' |
| | | import deleteIcon from '@/assets/images/operation/delete1.svg' |
| | | import noteUpdate from '@/assets/images/operation/Note-b.svg' |
| | | |
| | | 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 shanchu from '@/assets/images/operation/delete.png' |
| | | import bianji from '@/assets/images/operation/bianji.png' |
| | | import video from '@/assets/images/content/resource.png' |
| | | //引入VueOfficeDocx组件 |
| | | import VueOfficeDocx from '@vue-office/docx' |
| | | //引入相关样式 |
| | |
| | | |
| | | import { loadMicroApp } from 'qiankun' |
| | | import { microApps } from '@/child.ts' |
| | | let token = localStorage.getItem('token') |
| | | const canvasWith = ref(1000) |
| | | const canvasheight = ref(3000) |
| | | const screenWidth = ref( |
| | |
| | | const activeCatalog = ref() |
| | | const reMarResult = ref() |
| | | onMounted(() => { |
| | | if (token) { |
| | | getUserInfo() |
| | | } |
| | | setTimeout(() => { |
| | | canvasWith.value = document.querySelector('.content-box').offsetWidth |
| | | canvasheight.value = document.querySelector('.content-box').offsetHeight |
| | |
| | | } |
| | | |
| | | // 加载微应用 |
| | | microApp = loadMicroApp(microApps.book1, { |
| | | microApp = loadMicroApp(microApps[localStorage.getItem('bookId')], { |
| | | sandbox: { |
| | | strictStyleIsolation: true, |
| | | experimentalStyleIsolation: true |
| | |
| | | window.qiankunActions.onGlobalStateChange((state, prev) => { |
| | | console.log('父层state变化', state) |
| | | window.qiankunState = state |
| | | |
| | | if (window.qiankunState && window.qiankunState.initTestBook) { |
| | | window.qiankunState.initTestBook( |
| | | localStorage.getItem('bookId') + '', |
| | |
| | | |
| | | // 定义父层方法 |
| | | window.qiankunActions.setGlobalState({ |
| | | state: 1, // 加载子应用 |
| | | |
| | | state:1, |
| | | disableSign: false, |
| | | windowSelection: (data) => { |
| | | // 绑定子应用选择监听事件 |
| | | console.log(data, '子应用选择') |
| | |
| | | showToolBox.value = false |
| | | lineDelete.showLineDelete = false |
| | | dictionaryData.showContent = false |
| | | isUpdate.value = false |
| | | toolActive.value = '' |
| | | lineDelete.top = data.y + 20 |
| | | lineDelete.left = data.x |
| | |
| | | }, |
| | | chooseWords: (data) => { |
| | | console.log(data, '英语生词') |
| | | switch (data.type) { |
| | | case 'word': |
| | | if (data) { |
| | | dialogToolData.txt = data.word |
| | | dialogToolData.left = data.x |
| | | dialogToolData.top = data.y + 20 |
| | | getSearchResult() |
| | | } |
| | | break |
| | | case 'swdt': |
| | | console.log() |
| | | siweiVisble.value = true |
| | | break |
| | | case 'readText': |
| | | window.speechSynthesis.cancel() |
| | | const synth = window.speechSynthesis |
| | | const utterances = new SpeechSynthesisUtterance(data.data) |
| | | // utterances.lang = 'EN' // 设置语言为中文 |
| | | synth.speak(utterances) |
| | | |
| | | break |
| | | } |
| | | }, |
| | | getBookConfig: (data) => { |
| | |
| | | }, |
| | | catalogChange: (data) => { |
| | | activeCatalog.value = data.showCatalogList |
| | | if (!window.qiankunState.disableSign && token) { |
| | | getSignData() |
| | | } |
| | | console.log(data, '章节切换:目前显示的三个章节') |
| | | }, |
| | | pageChange: (data) => { |
| | |
| | | return item.chapterNum == data.catalog && item.page == data.page |
| | | }) |
| | | if (reMarResult.value) { |
| | | floatingToolData.activeBookmark = '书签' |
| | | floatingToolData.activeToolData = '书签' |
| | | } else { |
| | | floatingToolData.activeBookmark = '' |
| | | floatingToolData.activeToolData = '' |
| | | } |
| | | } |
| | | }) |
| | | // 调用子层方法 |
| | | // if (window.qiankunState && window.qiankunState.aa) window.qiankunState.aa(1) |
| | | // // 调用子层方法 |
| | | // if (window.qiankunState && window.qiankunState.getAnswers){ |
| | | // window.qiankunState.getAnswers(localStorage.getItem("")) |
| | | // } |
| | | }) |
| | | |
| | | // watch( |
| | |
| | | if (res) { |
| | | let teacherRole = res.roleLinks.find((item) => item.role.refCode == 'teacher') |
| | | let teacherInfos = res.infoList.find((item) => item.type == 'teacherInfo') |
| | | let wechatInfo = res.infoList.find((item) => item.type == 'WeChat') |
| | | let studentInfo = res.infoList.find((item) => item.type == 'Default') |
| | | let phoneInfo = res.secretList.find((item) => item.type == 'MobilePhone') |
| | | let nameAndPassword = res.secretList.find((item) => item.type == 'LoginNameAndPassword') |
| | | |
| | | if (nameAndPassword) { |
| | | if (teacherRole && teacherInfos) { |
| | | userInfo.value = { |
| | | name: nameAndPassword.credential |
| | | } |
| | | localStorage.setItem('userInfo', JSON.stringify(userInfo.value)) |
| | | } else if (teacherRole && teacherInfos) { |
| | | userInfo.value = { |
| | | ...teacherInfos, |
| | | name: teacherInfos.name, |
| | | role: 'Teacher', |
| | | roleId: teacherRole.role.id |
| | | } |
| | | localStorage.setItem('userInfo', JSON.stringify(userInfo.value)) |
| | | } else if (wechatInfo) { |
| | | userInfo.value = { |
| | | ...wechatInfo, |
| | | phoneNumber: phoneInfo?.credential, |
| | | Email: emailInfo?.credential, |
| | | role: 'Student' |
| | | } |
| | | } else if (phoneInfo) { |
| | | userInfo.value = { |
| | | name: phoneInfo.credential |
| | | |
| | | } |
| | | localStorage.setItem('userInfo', JSON.stringify(userInfo.value)) |
| | | } |
| | |
| | | name: '目录', |
| | | icon: mulu, |
| | | isShow: bookConfig.value.textbookComponents.indexOf('1E16353F') > -1 |
| | | }, |
| | | { |
| | | name: '检索', |
| | | icon: allSearch, |
| | | isShow: bookConfig.value.textbookComponents.indexOf('B7C5B45D') > -1 |
| | | }, |
| | | { |
| | | name: '笔记', |
| | |
| | | isShow: bookConfig.value.textbookComponents.indexOf('83FB80FD') > -1 |
| | | }, |
| | | { |
| | | name: '生字卡片', |
| | | name: '生词卡片', |
| | | icon: shengzikapian, |
| | | isShow: bookConfig.value.textbookComponents.indexOf('38D32EE3') > -1 |
| | | }, |
| | |
| | | ] |
| | | } |
| | | |
| | | const listLoading = ref(false) |
| | | //获取目录 |
| | | const catalogueData = ref([]) |
| | | |
| | | const getCatalogueData = () => { |
| | | listLoading.value = true |
| | | axios |
| | | .get(bookConfig.value.resourceUrl + '/information.json') |
| | | .then(function (response) { |
| | |
| | | console.log(json, '目录') |
| | | catalogueData.value = json.data |
| | | headerData.totlePage = json.data[json.data.length - 1].end |
| | | listLoading.value = false |
| | | }) |
| | | .catch(function (error) { |
| | | console.log(error) |
| | |
| | | |
| | | const handleNodeClick = (data) => { |
| | | console.log(data) |
| | | if (localStorage.getItem('tryPageCount')) { |
| | | if (data.start < localStorage.getItem('tryPageCount')) { |
| | | headerData.process = data.start |
| | | if (window.qiankunState && window.qiankunState.gotoPage) |
| | | window.qiankunState.gotoPage(data.chapter, data.start) |
| | | } else { |
| | | ElMessage({ |
| | | message: '试读已结束!', |
| | | type: 'warning' |
| | | }) |
| | | } |
| | | } else { |
| | | headerData.process = data.start |
| | | if (window.qiankunState && window.qiankunState.gotoPage) |
| | | window.qiankunState.gotoPage(data.chapter, data.start) |
| | | } |
| | | } |
| | | |
| | | //获取资源 |
| | |
| | | const resourVisble = ref(false) |
| | | const resourType = ref('') //资源类型图片/音频 |
| | | const testVideo = ref('') //视频链接 |
| | | const testAudio = ref('') //音频链接 |
| | | const testWord = ref('') //word链接 |
| | | const showHandle = ref(null) |
| | | |
| | | const playIndex = ref(null) //音频播放 |
| | | const audioPlayer = ref(null) |
| | | const getResourceData = () => { |
| | | imgPreviewList.value = [] |
| | | listLoading.value = true |
| | | axios |
| | | .get(bookConfig.value.resourceUrl + '/resource.json?t=12') |
| | | .then(function (response) { |
| | |
| | | if(resItem.resourcePath){ |
| | | resItem.resourcePath = bookConfig.value.resourceUrl + '/' + resItem.resourcePath |
| | | }else{ |
| | | resItem.resourcePath = bookConfig.value.requestCtx + '/file/GetPreViewImage?md5=' + resItem.md5 |
| | | resItem.resourcePath = |
| | | bookConfig.value.requestCtx + '/file/GetPreViewImage?md5=' + resItem.md5 |
| | | } |
| | | |
| | | imgPreviewList.value.push(resItem.resourcePath) |
| | |
| | | count: imgCount, |
| | | key: 'image' |
| | | }) |
| | | |
| | | } |
| | | if (audioCount > 0) { |
| | | classifySelectList.value.push({ |
| | |
| | | } |
| | | }) |
| | | } |
| | | console.log(resourceDataList.value,"图片") |
| | | // if(activeClassify.value == "video"){ |
| | | // resourceDataList.value.forEach((item,index)=>{ |
| | | // console.log(item,"item") |
| | |
| | | if(resItem.resourcePath){ |
| | | resItem.resourcePath = bookConfig.value.resourceUrl + '/' + resItem.resourcePath |
| | | }else{ |
| | | resItem.resourcePath = bookConfig.value.requestCtx + '/file/GetPreViewImage?md5=' + resItem.md5 |
| | | resItem.resourcePath = |
| | | bookConfig.value.requestCtx + '/file/GetPreViewImage?md5=' + resItem.md5 |
| | | } |
| | | imgPreviewList.value.push(resItem.resourcePath) |
| | | if (activeClassify.value == 'image') { |
| | |
| | | }) |
| | | } |
| | | } |
| | | |
| | | } |
| | | listLoading.value = false |
| | | }) |
| | | .catch(function (error) { |
| | | console.log(error) |
| | | }) |
| | | } |
| | | //资源播放视频 |
| | | const goPlay = (data) => { |
| | | const goPlay = (data, index) => { |
| | | resourType.value = data.resourceType |
| | | if (data.resourceType == '视频' || data.resourceType == '音频') { |
| | | resourVisble.value = true |
| | | if (data.resourceType == '视频') { |
| | | if (data.md5) { |
| | | testVideo.value = bookConfig.value.requestCtx + '/file/api/ApiDownload?md5=' + data.md5 |
| | | } else { |
| | | testVideo.value = bookConfig.value.resourceUrl + '/' + data.resourcePath |
| | | } |
| | | resourVisble.value = true |
| | | } else if (data.resourceType == '音频') { |
| | | playIndex.value = index |
| | | if (data.md5) { |
| | | testAudio.value = bookConfig.value.requestCtx + '/file/api/ApiDownload?md5=' + data.md5 |
| | | } else { |
| | | testAudio.value = bookConfig.value.resourceUrl + '/' + data.resourcePath |
| | | } |
| | | autoPlay() |
| | | } else { |
| | | if (data.md5) { |
| | | window.open(bookConfig.value.requestCtx + '/file/api/ApiDownload?md5=' + data.md5) |
| | |
| | | // testWord.value = bookConfig.value.resourceUrl + '/' + data.resourcePath |
| | | // } |
| | | } |
| | | // 关闭视频 |
| | | const resourVisbleClose = () => { |
| | | resourVisble.value = false |
| | | testVideo.value = '' |
| | | } |
| | | const autoPlay = () => { |
| | | if (audioPlayer.value) { |
| | | audioPlayer.value.play() |
| | | } |
| | | } |
| | | const goPause = () => { |
| | | playIndex.value = null |
| | | testAudio.value = '' |
| | | } |
| | | // |
| | | |
| | | //资源跳转到指定位置 |
| | | const JumpPosition = (data) => { |
| | | console.log(data,"跳转") |
| | | console.log(data, '跳转') |
| | | if (window.qiankunState && window.qiankunState.gotoPage) { |
| | | window.qiankunState.gotoPage(Number(data.chapterNum), Number(data.pagination)) |
| | | } |
| | |
| | | // 菜单点击 |
| | | const menuItemClick = (name) => { |
| | | searchText.value = '' |
| | | allSearchReault.value =[] |
| | | if (menuState.open && activeMenu.value == name) { |
| | | menuState.open = false |
| | | } else { |
| | |
| | | break |
| | | case '书签': |
| | | getReMarkList() |
| | | break |
| | | case '检索': |
| | | break |
| | | } |
| | | } |
| | |
| | | animation: false, |
| | | bgColorList: [ |
| | | { |
| | | lable: '白', |
| | | key: '#fff' |
| | | }, |
| | | { |
| | | lable: '黄', |
| | | key: '#FBF9F4' |
| | | }, |
| | |
| | | }) |
| | | } |
| | | const bgColorSelect = (item) => { |
| | | window.qiankunActions.setGlobalState({ |
| | | bgColor: item.key |
| | | }) |
| | | settingForm.bgColorActive = item.key |
| | | } |
| | | //笔记颜色筛选 |
| | |
| | | } |
| | | |
| | | const catalogTree = ref() |
| | | const allSearchReault = ref([]) |
| | | const searchReaultData = reactive({ |
| | | isShow: true, |
| | | openIndex: 0, |
| | | }) |
| | | const searchBook = async () => { |
| | | switch (activeMenu.value) { |
| | | case '目录': |
| | |
| | | case '书签': |
| | | getReMarkList() |
| | | break |
| | | case '检索': |
| | | listLoading.value = true |
| | | allSearchReault.value = [] |
| | | console.log(window.qiankunState.searchBookByKeyword) |
| | | if (window.qiankunState && window.qiankunState.searchBookByKeyword) { |
| | | let searchReault = window.qiankunState.searchBookByKeyword(searchText.value) |
| | | if (searchReault.length > 0) { |
| | | let catalogueList = sortArr(catalogueData.value, 'chapter') |
| | | if (catalogueList.length > 0) { |
| | | catalogueList.forEach((item) => { |
| | | let labels = '' |
| | | if (item.length > 1) { |
| | | labels = item.map((i) => i.label).join('/') |
| | | } |
| | | let itemList = [] |
| | | let text = searchText.value.replace(/^\s*|\s*$/g, '') |
| | | searchReault.forEach((item1) => { |
| | | if (item[0].chapter == item1.catalog) { |
| | | item1.txt1 = item1.txt |
| | | let replaceStr = "<span class='searchColor'>" + text + '</span>' |
| | | |
| | | let htmlStr = item1.txt1.split(text).join(replaceStr) |
| | | item1.txt1 = '<p>' + htmlStr + '</p>' |
| | | itemList.push(item1) |
| | | } |
| | | }) |
| | | if (itemList.length > 0) { |
| | | allSearchReault.value.push({ |
| | | chapter: item[0].chapter, |
| | | chapterName: labels ? labels : item[0].label, |
| | | itemList: itemList |
| | | }) |
| | | } |
| | | }) |
| | | } |
| | | console.log(allSearchReault.value, 444) |
| | | listLoading.value = false |
| | | } |
| | | |
| | | } |
| | | break |
| | | } |
| | | } |
| | | |
| | | function sortArr(arr, str) { |
| | | var _arr = [], |
| | | _t = [], |
| | | // 临时的变量 |
| | | _tmp |
| | | |
| | | // 按照特定的参数将数组排序将具有相同值得排在一起 |
| | | arr = arr.sort(function (a, b) { |
| | | var s = a[str], |
| | | t = b[str] |
| | | |
| | | return s < t ? -1 : 1 |
| | | }) |
| | | |
| | | if (arr.length) { |
| | | _tmp = arr[0][str] |
| | | } |
| | | // console.log( arr ); |
| | | // 将相同类别的对象添加到统一个数组 |
| | | for (var i in arr) { |
| | | if (arr[i][str] === _tmp) { |
| | | _t.push(arr[i]) |
| | | } else { |
| | | _tmp = arr[i][str] |
| | | _arr.push(_t) |
| | | _t = [arr[i]] |
| | | } |
| | | } |
| | | // 将最后的内容推出新数组 |
| | | _arr.push(_t) |
| | | return _arr |
| | | } |
| | | //检索章节收起 |
| | | const searchOpen = (index) => { |
| | | searchReaultData.isShow = true |
| | | searchReaultData.openIndex = index |
| | | } |
| | | //检索章节打开 |
| | | const searchClose = (index) => { |
| | | searchReaultData.isShow = false |
| | | searchReaultData.openIndex = index |
| | | } |
| | | |
| | | //检索跳转 |
| | | const goSearchContent = (item) => { |
| | | console.log(item,1111111111111111111111111111111111111111111111111111) |
| | | if (window.qiankunState && window.qiankunState.gotoPage) { |
| | | window.qiankunState.jumpSearchItem(item) |
| | | } |
| | | } |
| | | |
| | | const handleClear = () => { |
| | | switch (activeMenu.value) { |
| | | case '目录': |
| | | if (catalogTree) catalogTree.value.filter(searchText.value) |
| | | break |
| | | case '笔记': |
| | | getNotesList() |
| | | break |
| | | case '资源': |
| | | getResourceData() |
| | | break |
| | | case '知识图谱': |
| | | break |
| | | case '截图': |
| | | getScreenshotList() |
| | | break |
| | | case '书签': |
| | | getReMarkList() |
| | | break |
| | | case '检索': |
| | | allSearchReault.value = [] |
| | | break |
| | | } |
| | | } |
| | | |
| | |
| | | const functionVisible = ref(false) |
| | | const siweiVisble = ref(false) |
| | | const modelToolVisble = ref(false) |
| | | const shengciVisble = ref(false) |
| | | const activeTool = ref(0) |
| | | const toolState = reactive({ |
| | | open: true |
| | | }) |
| | | const resourceUrl = ref('') |
| | | |
| | | const selectTeachTools = (item) => { |
| | | activeTool.value = item.name |
| | |
| | | case '词典': |
| | | cidianVisible.value = true |
| | | break |
| | | case '生词卡片': |
| | | resourceUrl.value = bookConfig.value.resourceUrl |
| | | shengciVisble.value = true |
| | | } |
| | | } |
| | | |
| | |
| | | let canvas = null |
| | | const floatingToolData = reactive({ |
| | | activeToolData: '', //选中工具 |
| | | activeBookmark: '', //选中书签 |
| | | elLeft: 390, |
| | | startclientx: 0, |
| | | startclienty: 0 |
| | |
| | | console.log(floatingToolData.activeToolData, 'floatingToolData.activeToolData') |
| | | if (floatingToolData.activeToolData == '画笔') { |
| | | floatingToolData.activeToolData = '' |
| | | } else if (floatingToolData.activeToolData == '书签') { |
| | | delReMark() |
| | | floatingToolData.activeToolData = '' |
| | | } else { |
| | | floatingToolData.activeToolData = item.name |
| | | } |
| | |
| | | case '标记': |
| | | break |
| | | case '书签': |
| | | if(floatingToolData.activeBookmark != '书签' ){ |
| | | floatingToolData.activeBookmark = '书签' |
| | | reMark() |
| | | } |
| | | |
| | | break |
| | | case '截屏': |
| | | jitT() |
| | |
| | | console.log(str, '标记') |
| | | if (str == 'hide') { |
| | | if (window.qiankunState && window.qiankunState.delSign) { |
| | | window.qiankunState.delSign({ ids: [] }) |
| | | window.qiankunState.delSign({ type: 'Highlight' }) |
| | | window.qiankunState.delSign({ type: 'Dashing' }) |
| | | window.qiankunState.delSign({ type: 'Note' }) |
| | | } |
| | | window.qiankunActions.setGlobalState({ |
| | | disableSign: true |
| | | }) |
| | | } else { |
| | | window.qiankunActions.setGlobalState({ |
| | | disableSign: false |
| | | }) |
| | | getSignData() |
| | | } |
| | | } |
| | | |
| | |
| | | ] |
| | | }) |
| | | .then((res) => { |
| | | // floatingToolData.activeToolData = '' |
| | | floatingToolData.activeToolData = '' |
| | | |
| | | ElMessage({ |
| | | message: '添加书签成功!', |
| | | type: 'success' |
| | |
| | | const getReMarkList = () => { |
| | | reMarkList.value = [] |
| | | reMarkData.value = [] |
| | | listLoading.value = true |
| | | MG.identity |
| | | .getUserKey({ |
| | | domain: 'reMark', |
| | |
| | | list.forEach((item) => { |
| | | let text = searchText.value.replace(/^\s*|\s*$/g, '') |
| | | if (searchText.value) { |
| | | if (item.name.indexOf(text) > -1) { |
| | | if (item.content.indexOf(text) > -1) { |
| | | reMarkList.value.push(item) |
| | | } |
| | | } else { |
| | |
| | | } |
| | | }) |
| | | } |
| | | listLoading.value = false |
| | | }) |
| | | } |
| | | |
| | | //跳转 |
| | | const goReMark = (item) => { |
| | | console.log(item) |
| | | if (window.qiankunState && window.qiankunState.gotoPage) { |
| | | window.qiankunState.gotoPage(Number(item.chapterNum), Number(item.page)) |
| | | } |
| | | } |
| | | // 内容页删除书签 |
| | | const delReMark = () => { |
| | |
| | | function jitT() { |
| | | const screenShotHandler = new ScreenShort({ |
| | | enableWebRtc: false, // 是否显示选项框 |
| | | level: 99, // 层级级别 |
| | | level: 999, // 层级级别 |
| | | completeCallback: callback, //确认回调 |
| | | closeCallback: closeFn //取消回调 |
| | | } as any) |
| | |
| | | if (isUpdateImg.value) { |
| | | screenshotData.value = [] |
| | | screenshotList.value.forEach((itemNote) => { |
| | | if ((itemNote.id == screenshotId.value)) { |
| | | if (itemNote.id == screenshotId.value) { |
| | | itemNote.name = nameData.value |
| | | } |
| | | }) |
| | |
| | | screenshotData.value = [] |
| | | screenshotList.value = [] |
| | | imgPreviewList.value = [] |
| | | listLoading.value = true |
| | | MG.identity |
| | | .getUserKey({ |
| | | domain: 'screenshot', |
| | |
| | | } |
| | | }) |
| | | } |
| | | listLoading.value = false |
| | | }) |
| | | } |
| | | //查看截图 |
| | | const getCapture = (item, index) => { |
| | | imgUrl.value = item.imgUrl |
| | | imgUrl.value = item.imgUrl || item.resourcePath |
| | | previewIndex.value = index |
| | | confirmDialog.value = true |
| | | } |
| | | const closePreview = () => { |
| | | imgPreviewList.value = [] |
| | | confirmDialog.value = false |
| | | } |
| | | // 编辑截图名称 |
| | |
| | | |
| | | ///内容选中 |
| | | const getSelection = (data) => { |
| | | if (data.txt) { |
| | | if (data.txt && token) { |
| | | toolActive.value = '' |
| | | dialogToolData.txt = data.txt |
| | | dialogToolData.page = data.page |
| | |
| | | dialogToolData.left = data.x |
| | | dialogToolData.top = data.y |
| | | showToolBox.value = true |
| | | dictionaryData.showContent = false |
| | | lineDelete.showLineDelete = false |
| | | dictionaryData.showContent = false |
| | | } |
| | | } |
| | | |
| | |
| | | //菜单笔记列表 |
| | | const getNotesList = () => { |
| | | let chapterList = [] |
| | | listLoading.value = true |
| | | catalogueData.value.forEach((item) => { |
| | | chapterList.push(item.chapter + '') |
| | | }) |
| | |
| | | let text = searchText.value.replace(/^\s*|\s*$/g, '') |
| | | if (item.note.indexOf(text) > -1 || item.txt.indexOf(text) > -1) { |
| | | if (menuState.notesColor == 'all') { |
| | | itemList = list |
| | | itemList.push(item) |
| | | } else if (item.color == menuState.notesColor) { |
| | | itemList.push(item) |
| | | } |
| | | } |
| | | } else { |
| | | if (menuState.notesColor == 'all') { |
| | | itemList = list |
| | | itemList.push(item) |
| | | } else if (item.color == menuState.notesColor) { |
| | | itemList.push(item) |
| | | } |
| | |
| | | } |
| | | console.log(scribeData.noteList, 'scribeData.noteList') |
| | | } |
| | | listLoading.value = false |
| | | }) |
| | | } |
| | | |
| | |
| | | color: '' |
| | | }) |
| | | window.noteHover = (type, id, chapterNum) => { |
| | | console.log(type, 'typetype') |
| | | let list = dialogToolData.notesList[chapterNum] |
| | | let data = list.find((item) => item.id == id) |
| | | noteContent.note = data.note |
| | |
| | | if (window.qiankunState && window.qiankunState.delSign) { |
| | | window.qiankunState.delSign({ ids: [ids] }) |
| | | } |
| | | if (!window.qiankunState.disableSign) { |
| | | getSignData() |
| | | } |
| | | if (type == 'Note') { |
| | | getNotesList() |
| | | } |
| | |
| | | const updateUserKey = () => { |
| | | let data = scribeData.noteList.find((item1) => item1.chapter == dialogToolData.chapter) |
| | | data.noteList.forEach((itemNote) => { |
| | | if ((itemNote.id = formData.id)) { |
| | | if ((itemNote.id == formData.id)) { |
| | | itemNote.note = formData.desc |
| | | itemNote.color = noteColorActive.value |
| | | } |
| | |
| | | addNoteVisble.value = false |
| | | isUpdate.value = false |
| | | getNotesList() |
| | | if (!window.qiankunState.disableSign) { |
| | | getSignData() |
| | | } |
| | | }) |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | const layoutBtn = () => { |
| | | localStorage.clear() |
| | | localStorage.removeItem('token') |
| | | localStorage.removeItem("userInfo") |
| | | router.push('/login') |
| | | } |
| | | const goLogin = () => { |
| | | localStorage.removeItem("userInfo") |
| | | router.push('/login') |
| | | } |
| | | </script> |
| | |
| | | display: flex; |
| | | flex-direction: column; |
| | | padding: 0 15px; |
| | | |
| | | .headerBox { |
| | | height: 48px; |
| | | // background-image: url('@/assets/images/header/top-bg.png'); |
| | |
| | | box-shadow: 10px 0 10px -10px rgba(0, 0, 0, 0.07); |
| | | background: #fff; |
| | | border-radius: 16px 0px 0px 0px; |
| | | -moz-user-select: none; |
| | | -khtml-user-select: none; |
| | | user-select: none; |
| | | .notClick { |
| | | |
| | | pointer-events: none; |
| | | .name{ |
| | | color:#949494 !important; |
| | | } |
| | | |
| | | } |
| | | .menuItem { |
| | | text-align: center; |
| | | line-height: 1; |
| | |
| | | height: calc(100vh - 48px); |
| | | overflow-y: auto; |
| | | background: #e0f2ff; |
| | | -moz-user-select: none; |
| | | -khtml-user-select: none; |
| | | user-select: none; |
| | | .searchBox { |
| | | width: 100%; |
| | | height: 60px; |
| | |
| | | align-items: center; |
| | | border-bottom: 1px solid #efefef; |
| | | } |
| | | .resourceBox { |
| | | .resourceSearchBox { |
| | | padding: 10px 0; |
| | | margin: 0 20px; |
| | | border-bottom: 1px solid rgba(204, 204, 204, 0.32); |
| | |
| | | background: #fff; |
| | | height: 34px; |
| | | } |
| | | |
| | | .is-focus, |
| | | .el-input__wrapper { |
| | | box-shadow: none !important; |
| | |
| | | border: none !important; |
| | | height: 34px !important; |
| | | } |
| | | } |
| | | .el-input-group__append { |
| | | padding: 0 10px !important; |
| | | background: none !important; |
| | | } |
| | | } |
| | | .screenBox { |
| | |
| | | align-items: center; |
| | | } |
| | | } |
| | | |
| | | |
| | | .allSearchList { |
| | | .searchItem { |
| | | margin: 15px; |
| | | background: #fff; |
| | | border-radius: 10px; |
| | | padding: 10px; |
| | | display: flex; |
| | | .index{ |
| | | line-height: 24px; |
| | | margin-right:10px; |
| | | |
| | | } |
| | | .searchCon { |
| | | flex:1; |
| | | width: 240px; |
| | | overflow: hidden; |
| | | margin-right: 8px; |
| | | height: 45px; |
| | | line-height: 22px; |
| | | display: -webkit-box; |
| | | -webkit-box-orient: vertical; |
| | | -webkit-line-clamp: 2; |
| | | text-overflow: ellipsis; |
| | | .searchColor{ |
| | | background:rgb(245, 225, 42, 0.5) |
| | | } |
| | | } |
| | | |
| | | } |
| | | } |
| | | } |
| | | .allSearch,.notesBox,.resourceBox,.reMarkList,.screenshotList { |
| | | height: calc(100% - 60px); |
| | | overflow-y: auto; |
| | | } |
| | | } |
| | | .menuStateBox { |
| | |
| | | |
| | | div { |
| | | padding: 5px; |
| | | display: flex; |
| | | align-items: center; |
| | | img { |
| | | width: 18px; |
| | | height: 18px; |
| | |
| | | box-shadow: -3px 0px 6px 1px rgba(0, 0, 0, 0.07); |
| | | background: #fff; |
| | | border-radius: 0px 16px 0px 0px; |
| | | -moz-user-select: none; |
| | | -khtml-user-select: none; |
| | | user-select: none; |
| | | .notClick { |
| | | pointer-events: none; |
| | | color:#949494 !important; |
| | | } |
| | | .toolTitle { |
| | | height: 57px; |
| | | line-height: 53px; |
| | |
| | | border-radius: 10px; |
| | | padding: 6px; |
| | | overflow: hidden; |
| | | .notClick { |
| | | pointer-events: none; |
| | | } |
| | | .floatToolItem { |
| | | margin: 10px 0; |
| | | height: 30px; |
| | |
| | | width: 190px; |
| | | display: flex; |
| | | background: #ffffff; |
| | | |
| | | box-shadow: 0px 0px 10px 1px rgba(0, 0, 0, 0.16); |
| | | border-radius: 5px; |
| | | margin-bottom: 10px; |
| | |
| | | z-index: 2; |
| | | box-shadow: 0px 0px 6px 1px rgba(0, 0, 0, 0.3); |
| | | padding: 5px 10px; |
| | | background: #fff; |
| | | // background: #fff; |
| | | background-color: rgba(90, 90, 90, 0.9); |
| | | border-radius: 5px; |
| | | display: flex; |
| | | .dialogToolItem { |
| | | padding: 3px; |
| | | margin: 0 10px; |
| | | margin: 0 5px; |
| | | border-radius: 5px; |
| | | display: flex; |
| | | justify-content: center; |
| | | align-items: center; |
| | | } |
| | | .dialogToolItem:hover { |
| | | background-color: rgba(44, 44, 44, 0.2); |
| | | background-color: rgba(255, 255, 255, 0.3); |
| | | } |
| | | } |
| | | .noteContentBox { |
| | |
| | | } |
| | | .phone_con { |
| | | .per-phone { |
| | | min-width: 150px; |
| | | align-items: center; |
| | | // justify-content: space-between; |
| | | background: #f4f5f7; |
| | |
| | | } |
| | | .wendabox { |
| | | width: 100%; |
| | | height: 700px; |
| | | height: 80vh; |
| | | |
| | | iframe { |
| | | width: 100%; |
| | | height: 100%; |
| | |
| | | box-sizing: border-box; |
| | | } |
| | | } |
| | | .myDialogs { |
| | | height: 90vh; |
| | | } |
| | | .myAnserDialogs { |
| | | width: 628px; |
| | | width: 700px; |
| | | height: 90vh; |
| | | } |
| | | .myNoteDialogs { |
| | | width: 500px !important; |
| | |
| | | video { |
| | | width: 100%; |
| | | } |
| | | audio { |
| | | width: 100%; |
| | | } |
| | | .audioBox { |
| | | // display:none; |
| | | } |
| | | |
| | | .wordBox { |