| | |
| | | <!-- 菜单 --> |
| | | <div class="menuBox"> |
| | | <div v-for="(item, index) in menuData" :key="index"> |
| | | <div :class="['menuItem', activeMenu == item.name ? 'active' : '']" @click="menuItemClick(item.name)" |
| | | v-if="item.isShow"> |
| | | <div |
| | | :class="['menuItem', activeMenu == item.name ? 'active' : '']" |
| | | @click="menuItemClick(item.name)" |
| | | v-if="item.isShow" |
| | | > |
| | | <div class="menuIcon imgBox"> |
| | | <img :src="item.icon" /> |
| | | </div> |
| | |
| | | <el-form-item label="字体大小"> |
| | | <div class="lineStyle"> |
| | | <div class="lineTypeBox"> |
| | | <div v-for="item in settingForm.fontSizeList" :key="item.key" :class="settingForm.fontSizeActive == item.key |
| | | ? 'typeItem lineTypeActive' |
| | | : 'typeItem' |
| | | " @click="fontSizeSelect(item)"> |
| | | <div |
| | | v-for="item in settingForm.fontSizeList" |
| | | :key="item.key" |
| | | :class=" |
| | | settingForm.fontSizeActive == item.key |
| | | ? 'typeItem lineTypeActive' |
| | | : 'typeItem' |
| | | " |
| | | @click="fontSizeSelect(item)" |
| | | > |
| | | {{ item.lable }} |
| | | <div class="activeIcon" v-if="settingForm.fontSizeActive == item.key"> |
| | | <img :src="xuanzhong" /> |
| | |
| | | </div> --> |
| | | <el-form-item label="底色"> |
| | | <div class="bgColor"> |
| | | <div v-for="item in settingForm.bgColorList" :key="item.key" class="flex1 hover" |
| | | @click="bgColorSelect(item)"> |
| | | <div :style="{ |
| | | background: item.key, |
| | | 'border-color': |
| | | item.key == settingForm.bgColorActive ? '#0093FF' : '#EBEBEB' |
| | | }" class="scribeItem"> |
| | | <div |
| | | v-for="item in settingForm.bgColorList" |
| | | :key="item.key" |
| | | class="flex1 hover" |
| | | @click="bgColorSelect(item)" |
| | | > |
| | | <div |
| | | :style="{ |
| | | background: item.key, |
| | | 'border-color': |
| | | item.key == settingForm.bgColorActive ? '#0093FF' : '#EBEBEB' |
| | | }" |
| | | class="scribeItem" |
| | | > |
| | | <img :src="xuanzhong1" v-if="item.key == settingForm.bgColorActive" /> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="menuContent" v-if="menuState.open"> |
| | | <div class="searchBox"> |
| | | <div class="inputBox" v-if="activeMenu !== '资源' && activeMenu !== '题库'"> |
| | | <el-input class="custom-input" placeholder="请输入内容" v-model="searchText" @keyup.enter="searchBook" clearable |
| | | @clear="handleClear"> |
| | | <el-input |
| | | class="custom-input" |
| | | placeholder="请输入内容" |
| | | v-model="searchText" |
| | | @keyup.enter="searchBook" |
| | | clearable |
| | | @clear="handleClear" |
| | | > |
| | | <template #prefix> |
| | | <img :src="listSearch" @click="searchBook" class="hover" /> |
| | | </template> |
| | |
| | | </div> |
| | | </div> |
| | | <div v-if="activeMenu == '题库'" class="resourceTab"> |
| | | <div class="tabItem hover" @click="selectExercisesType('exercises')" |
| | | v-if="bookConfig.textbookComponents.indexOf('3D3B4F55') > -1"> |
| | | <div |
| | | class="tabItem hover" |
| | | @click="selectExercisesType('exercises')" |
| | | v-if="bookConfig.textbookComponents.indexOf('3D3B4F55') > -1" |
| | | > |
| | | <div>习题</div> |
| | | <div :class="exercisesType == 'exercises' ? 'text' : 'line'"></div> |
| | | </div> |
| | | <hr class="hr" v-if="bookConfig.textbookComponents.indexOf('A4821F71') > -1" /> |
| | | <div class="tabItem hover" @click="selectExercisesType('additional')" |
| | | v-if="bookConfig.textbookComponents.indexOf('A4821F71') > -1"> |
| | | <div |
| | | class="tabItem hover" |
| | | @click="selectExercisesType('additional')" |
| | | v-if="bookConfig.textbookComponents.indexOf('A4821F71') > -1" |
| | | > |
| | | <div>附加题</div> |
| | | <div :class="exercisesType == 'additional' ? 'text' : 'line'"></div> |
| | | </div> |
| | |
| | | </div> |
| | | <!-- 目录 --> |
| | | <div class="menuList" v-if="activeMenu == '目录'" v-loading="listLoading"> |
| | | <el-tree ref="catalogTree" default-expand-all="true" :expand-on-click-node="false" node-key="start" |
| | | highlight-current :data="catalogueData" :props="defaultProps" v-if="catalogueData.length > 0" |
| | | @node-click="handleNodeClick" :filter-node-method="filterNode"> |
| | | <el-tree |
| | | ref="catalogTree" |
| | | default-expand-all="true" |
| | | :expand-on-click-node="false" |
| | | node-key="start" |
| | | highlight-current |
| | | :data="catalogueData" |
| | | :props="defaultProps" |
| | | v-if="catalogueData.length > 0" |
| | | @node-click="handleNodeClick" |
| | | :filter-node-method="filterNode" |
| | | > |
| | | <template #default="{ node, data }"> |
| | | <div class="custom-tree-node"> |
| | | <div class="catalogueLabel" :title="node.label">{{ node.label }}</div> |
| | |
| | | <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"> |
| | | <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"> |
| | |
| | | </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 |
| | | 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 |
| | | class="searchCon hover" |
| | | @click="goSearchContent(item)" |
| | | v-html="item.txt1" |
| | | :title="item.txt" |
| | | ></div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="flex1 hover" @click="searchClick('all')"> |
| | | <div :class="menuState.notesColor == 'all' ? ' allActive' : 'all'">全部</div> |
| | | </div> |
| | | <div v-for="item in colorSelectList" :key="item.key" class="flex1 hover" @click="searchClick(item)"> |
| | | <div :style="{ background: item.key }" |
| | | :class="item.key == menuState.notesColor ? 'activeScribe scribeItem' : 'scribeItem'"></div> |
| | | <div |
| | | v-for="item in colorSelectList" |
| | | :key="item.key" |
| | | class="flex1 hover" |
| | | @click="searchClick(item)" |
| | | > |
| | | <div |
| | | :style="{ background: item.key }" |
| | | :class="item.key == menuState.notesColor ? 'activeScribe scribeItem' : 'scribeItem'" |
| | | ></div> |
| | | </div> |
| | | </div> |
| | | <div class="list-box"> |
| | | <div v-if="scribeData.noteList.length > 0"> |
| | | <div v-for="(noteItem, index) in scribeData.noteList" :key="noteItem"> |
| | | <div class="chapterName"> |
| | | <el-icon @click="noteClose(index)" v-if="scribeData.isShow && scribeData.openIndex == index" |
| | | class="hover"> |
| | | <el-icon |
| | | @click="noteClose(index)" |
| | | v-if="scribeData.isShow && scribeData.openIndex == index" |
| | | class="hover" |
| | | > |
| | | <ArrowDown /> |
| | | </el-icon> |
| | | <el-icon @click="noteOpen(index)" v-else class="hover"> |
| | |
| | | </el-icon> |
| | | <span>{{ noteItem.chapterName }}</span> |
| | | </div> |
| | | <div v-for="(item, index1) in noteItem.noteList" :key="item.key" class="listItem" |
| | | v-show="scribeData.isShow && scribeData.openIndex == index"> |
| | | <div |
| | | v-for="(item, index1) in noteItem.noteList" |
| | | :key="item.key" |
| | | class="listItem" |
| | | v-show="scribeData.isShow && scribeData.openIndex == index" |
| | | > |
| | | <div class="textBox"> |
| | | <div class="title"> |
| | | <div class="title-con"> |
| | | <div class="border-left" :style="{ 'border-right-color': item.color }"></div> |
| | | <div |
| | | class="border-left" |
| | | :style="{ 'border-right-color': item.color }" |
| | | ></div> |
| | | <span>{{ moment(item.createDate).format('YYYY-MM-DD') }}</span> |
| | | </div> |
| | | <div> |
| | |
| | | <img :src="shanchu" @click="deleteBtn(item)" class="hover" /> |
| | | </div> |
| | | </div> |
| | | <div class="noteText hover 123456" @click="jumpContent(item)" :style="{ |
| | | background: |
| | | item.color == '#F5E12A' |
| | | ? 'rgba(255,234,41,0.1)' |
| | | : item.color == '#76F0AE' |
| | | ? 'rgba(83,255,162,0.1)' |
| | | : item.color == '#59CFF5' |
| | | ? 'rgba(93,216,255,0.1)' |
| | | : item.color == '#CAA5FC' |
| | | ? 'rgba(205,167,255,0.1)' |
| | | : item.color == '#F5A0B9' |
| | | ? 'rgba(255,167,193,0.1)' |
| | | : item.color |
| | | }"> |
| | | <div |
| | | class="noteText hover 123456" |
| | | @click="jumpContent(item)" |
| | | :style="{ |
| | | background: |
| | | item.color == '#F5E12A' |
| | | ? 'rgba(255,234,41,0.1)' |
| | | : item.color == '#76F0AE' |
| | | ? 'rgba(83,255,162,0.1)' |
| | | : item.color == '#59CFF5' |
| | | ? 'rgba(93,216,255,0.1)' |
| | | : item.color == '#CAA5FC' |
| | | ? 'rgba(205,167,255,0.1)' |
| | | : item.color == '#F5A0B9' |
| | | ? 'rgba(255,167,193,0.1)' |
| | | : item.color |
| | | }" |
| | | > |
| | | <div class="con hover"> |
| | | {{ item.note }} |
| | | </div> |
| | |
| | | <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" :key="item.key" class="flex1 hover" @click="classifyClick(item)"> |
| | | <div :class="item.key == activeClassify ? 'activeClassify classifyItem' : 'classifyItem' |
| | | "> |
| | | <div |
| | | v-for="item in classifySelectList" |
| | | :key="item.key" |
| | | class="flex1 hover" |
| | | @click="classifyClick(item)" |
| | | > |
| | | <div |
| | | :class=" |
| | | item.key == activeClassify ? 'activeClassify classifyItem' : 'classifyItem' |
| | | " |
| | | > |
| | | <div class="title">{{ item.title }}</div> |
| | | <div class="count">{{ item.count }}</div> |
| | | </div> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="inputBox" v-if="!searchShow"> |
| | | <el-input class="custom-input" placeholder="请输入内容" v-model="searchText" @keyup.enter="searchBook" |
| | | clearable @clear="handleClear"> |
| | | <el-input |
| | | class="custom-input" |
| | | placeholder="请输入内容" |
| | | v-model="searchText" |
| | | @keyup.enter="searchBook" |
| | | clearable |
| | | @clear="handleClear" |
| | | > |
| | | <template #prefix> |
| | | <img :src="listSearch" @click="searchBook" class="hover" /> |
| | | </template> |
| | |
| | | <el-row :gutter="20"> |
| | | <el-col :span="12" v-for="(item, index) in resourceDataList" :key="item"> |
| | | <div class="resourceItem"> |
| | | <div class="resourceImg" @mouseover="showHandle = index" @mouseleave="showHandle = null"> |
| | | <div |
| | | class="resourceImg" |
| | | @mouseover="showHandle = index" |
| | | @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" |
| | | ><VideoCamera |
| | | /></el-icon> --> |
| | | <!-- <el-icon v-else-if="activeClassify == 'other'" size="30"><Files /></el-icon> --> |
| | | <img src="@/assets/images/resource/yp-mr.png" v-else-if="activeClassify == 'audio'" /> |
| | | <img src="@/assets/images/resource/sp-mr.png" v-else-if="activeClassify == 'video'" /> |
| | | <img src="@/assets/images/resource/qt-mr.png" v-else-if="activeClassify == 'other'" /> |
| | | <img |
| | | src="@/assets/images/resource/yp-mr.png" |
| | | v-else-if="activeClassify == 'audio'" |
| | | /> |
| | | <img |
| | | src="@/assets/images/resource/sp-mr.png" |
| | | v-else-if="activeClassify == 'video'" |
| | | /> |
| | | <img |
| | | src="@/assets/images/resource/qt-mr.png" |
| | | v-else-if="activeClassify == 'other'" |
| | | /> |
| | | <div class="handleBox" v-if="showHandle == index"> |
| | | <div class="delImg"> |
| | | <el-icon class="icon hover" size="20" @click="JumpPosition(item)" |
| | | v-if="resourceType == 'default'"> |
| | | <el-icon |
| | | class="icon hover" |
| | | size="20" |
| | | @click="JumpPosition(item)" |
| | | v-if="resourceType == 'default'" |
| | | > |
| | | <LocationInformation /> |
| | | </el-icon> |
| | | <el-icon @click="goPlay(item)" size="20" class="icon hover" v-if="item.resourceType == '视频'"> |
| | | <el-icon |
| | | @click="goPlay(item)" |
| | | size="20" |
| | | class="icon hover" |
| | | v-if="item.resourceType == '视频'" |
| | | > |
| | | <VideoPlay /> |
| | | </el-icon> |
| | | <el-icon @click="goPlay(item, index)" size="20" class="icon hover" |
| | | v-if="item.resourceType == '音频' && playIndex != index"> |
| | | <el-icon |
| | | @click="goPlay(item, index)" |
| | | size="20" |
| | | class="icon hover" |
| | | v-if="item.resourceType == '音频' && playIndex != index" |
| | | > |
| | | <VideoPlay /> |
| | | </el-icon> |
| | | <el-icon @click="goPause()" size="20" class="icon hover" |
| | | v-if="item.resourceType == '音频' && playIndex == index"> |
| | | <el-icon |
| | | @click="goPause()" |
| | | size="20" |
| | | class="icon hover" |
| | | v-if="item.resourceType == '音频' && playIndex == index" |
| | | > |
| | | <VideoPause /> |
| | | </el-icon> |
| | | <el-icon @click="getCapture(item, index)" size="20" class="icon hover" |
| | | v-if="item.resourceType == '图片'"> |
| | | <el-icon |
| | | @click="getCapture(item, index)" |
| | | size="20" |
| | | class="icon hover" |
| | | v-if="item.resourceType == '图片'" |
| | | > |
| | | <View /> |
| | | </el-icon> |
| | | <el-icon size="20" class="icon hover" @click="goPlay(item)" v-if=" |
| | | !( |
| | | item.resourceType == '视频' || |
| | | item.resourceType == '音频' || |
| | | item.resourceType == '习题' || |
| | | item.resourceType == '图片' |
| | | ) && item.isDownload == '是' |
| | | "> |
| | | <el-icon |
| | | size="20" |
| | | class="icon hover" |
| | | @click="goPlay(item)" |
| | | v-if=" |
| | | !( |
| | | item.resourceType == '视频' || |
| | | item.resourceType == '音频' || |
| | | item.resourceType == '习题' || |
| | | item.resourceType == '图片' |
| | | ) && item.isDownload == '是' |
| | | " |
| | | > |
| | | <Download /> |
| | | </el-icon> |
| | | <!-- 收藏按钮 --> |
| | | <img |
| | | :src="collectResourceList.findIndex(citem => citem.id == item.id) > -1 ? isHeart : heart" |
| | | class="icon hover" style="width: 15px;" |
| | | @click="handleCollectResource(item.id, item.md5 ? item.md5 : '', item.resourcePath ? item.resourcePath : '', item.resourceType, item.resourceType == '视频' || '音频' ? 'bits' : 'json', item.resourceName)" /> |
| | | :src=" |
| | | collectResourceList.findIndex((citem) => citem.id == item.id) > -1 |
| | | ? isHeart |
| | | : heart |
| | | " |
| | | class="icon hover" |
| | | style="width: 15px" |
| | | @click=" |
| | | handleCollectResource( |
| | | item.id, |
| | | item.md5 ? item.md5 : '', |
| | | item.resourcePath ? item.resourcePath : '', |
| | | item.resourceType, |
| | | item.resourceType == '视频' || '音频' ? 'bits' : 'json', |
| | | item.resourceName |
| | | ) |
| | | " |
| | | /> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="questionList" v-if="activeMenu == '题库'" v-loading="listLoading"> |
| | | <div class="resourceSearchBox" v-if="exercisesType !== 'collection' && exercisesType !== 'wrong'"> |
| | | <div |
| | | class="resourceSearchBox" |
| | | v-if="exercisesType !== 'collection' && exercisesType !== 'wrong'" |
| | | > |
| | | <div class="inputBox"> |
| | | <el-input class="custom-input" placeholder="请输入内容" v-model="searchText" @keyup.enter="searchBook" |
| | | clearable @clear="handleClear"> |
| | | <el-input |
| | | class="custom-input" |
| | | placeholder="请输入内容" |
| | | v-model="searchText" |
| | | @keyup.enter="searchBook" |
| | | clearable |
| | | @clear="handleClear" |
| | | > |
| | | <template #prefix> |
| | | <img :src="listSearch" @click="searchBook" class="hover" /> |
| | | </template> |
| | |
| | | <div class="list-box" v-loading="listLoading"> |
| | | <div v-if="questionList.length > 0"> |
| | | <div v-for="(item, index) in questionList" :key="index" class="reMarkItem"> |
| | | <div class="questionCon hover" @click="clickQuestion(exercisesType, item)" :title="item.resourceName"> |
| | | <div |
| | | class="questionCon hover" |
| | | @click="clickQuestion(exercisesType, item)" |
| | | :title="item.resourceName" |
| | | > |
| | | {{ item.resourceName }} |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div v-if=" |
| | | questionList.length == 0 && |
| | | exercisesType !== 'collection' && |
| | | exercisesType !== 'wrong' |
| | | "> |
| | | <div |
| | | v-if=" |
| | | questionList.length == 0 && |
| | | exercisesType !== 'collection' && |
| | | exercisesType !== 'wrong' |
| | | " |
| | | > |
| | | <el-empty :image-size="60" description="暂无数据" /> |
| | | </div> |
| | | </div> |
| | |
| | | </ul> |
| | | <!-- 菜单内容收起 --> |
| | | <div class="menuStateBox" v-if="menuState.open"> |
| | | <svg @click="menuState.open = false" 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-arrow-bar-to-left"> |
| | | <svg |
| | | @click="menuState.open = false" |
| | | 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-arrow-bar-to-left" |
| | | > |
| | | <path stroke="none" d="M0 0h24v24H0z" fill="none" /> |
| | | <path d="M10 12l10 0" /> |
| | | <path d="M10 12l4 4" /> |
| | |
| | | <div class="popinnerBox"> |
| | | <div class="brush"> |
| | | <div class="thickness"> |
| | | <div :class="toolSelectData.thicknessActive == '1' ? 'small active' : 'small'" |
| | | @click="selectThickness('1')"></div> |
| | | <div :class="toolSelectData.thicknessActive == '3' ? 'middle active' : 'middle'" |
| | | @click="selectThickness('3')"></div> |
| | | <div :class="toolSelectData.thicknessActive == '5' ? 'large active' : 'large'" |
| | | @click="selectThickness('5')"></div> |
| | | <div |
| | | :class="toolSelectData.thicknessActive == '1' ? 'small active' : 'small'" |
| | | @click="selectThickness('1')" |
| | | ></div> |
| | | <div |
| | | :class="toolSelectData.thicknessActive == '3' ? 'middle active' : 'middle'" |
| | | @click="selectThickness('3')" |
| | | ></div> |
| | | <div |
| | | :class="toolSelectData.thicknessActive == '5' ? 'large active' : 'large'" |
| | | @click="selectThickness('5')" |
| | | ></div> |
| | | </div> |
| | | <div class="lineStyle"> |
| | | <div class="lineTypeBox"> |
| | | <div :class="toolSelectData.lineTypeActive == 'solid' |
| | | ? 'typeItem lineTypeActive' |
| | | : 'typeItem' |
| | | " @click="selectLineType('solid')"> |
| | | <div |
| | | :class=" |
| | | toolSelectData.lineTypeActive == 'solid' |
| | | ? 'typeItem lineTypeActive' |
| | | : 'typeItem' |
| | | " |
| | | @click="selectLineType('solid')" |
| | | > |
| | | <div class="solid"></div> |
| | | <div class="activeIcon" v-if="toolSelectData.lineTypeActive == 'solid'"> |
| | | <img :src="xuanzhong" /> |
| | | </div> |
| | | </div> |
| | | <div :class="toolSelectData.lineTypeActive == 'dashed' |
| | | ? 'typeItem lineTypeActive' |
| | | : 'typeItem' |
| | | " @click="selectLineType('dashed')"> |
| | | <div |
| | | :class=" |
| | | toolSelectData.lineTypeActive == 'dashed' |
| | | ? 'typeItem lineTypeActive' |
| | | : 'typeItem' |
| | | " |
| | | @click="selectLineType('dashed')" |
| | | > |
| | | <div class="dashed"></div> |
| | | <div class="activeIcon" v-if="toolSelectData.lineTypeActive == 'dashed'"> |
| | | <img :src="xuanzhong" /> |
| | |
| | | </div> |
| | | </div> |
| | | <div class="colorSelectBox"> |
| | | <div v-for="item in colorSelectList" :key="item.key" class="flex1 hover" |
| | | @click="lineColorSelect(item)"> |
| | | <div |
| | | v-for="item in colorSelectList" |
| | | :key="item.key" |
| | | class="flex1 hover" |
| | | @click="lineColorSelect(item)" |
| | | > |
| | | <div :style="{ background: item.key }" class="scribeItem"> |
| | | <img :src="xuanzhong" v-if="item.key == toolSelectData.lineColorActive" /> |
| | | </div> |
| | |
| | | <div class="popinnerBox"> |
| | | <div class="lineStyle"> |
| | | <div class="lineTypeBox"> |
| | | <div :class="toolSelectData.fontSizeActive == '14' |
| | | ? 'typeItem lineTypeActive' |
| | | : 'typeItem' |
| | | " @click="selectfontSize('14')"> |
| | | <div |
| | | :class=" |
| | | toolSelectData.fontSizeActive == '14' |
| | | ? 'typeItem lineTypeActive' |
| | | : 'typeItem' |
| | | " |
| | | @click="selectfontSize('14')" |
| | | > |
| | | 小 |
| | | <div class="activeIcon" v-if="toolSelectData.fontSizeActive == '14'"> |
| | | <img :src="xuanzhong" /> |
| | | </div> |
| | | </div> |
| | | <div :class="toolSelectData.fontSizeActive == '16' |
| | | ? 'typeItem lineTypeActive' |
| | | : 'typeItem' |
| | | " @click="selectfontSize('16')"> |
| | | <div |
| | | :class=" |
| | | toolSelectData.fontSizeActive == '16' |
| | | ? 'typeItem lineTypeActive' |
| | | : 'typeItem' |
| | | " |
| | | @click="selectfontSize('16')" |
| | | > |
| | | 中 |
| | | <div class="activeIcon" v-if="toolSelectData.fontSizeActive == '16'"> |
| | | <img :src="xuanzhong" /> |
| | | </div> |
| | | </div> |
| | | <div :class="toolSelectData.fontSizeActive == '18' |
| | | ? 'typeItem lineTypeActive' |
| | | : 'typeItem' |
| | | " @click="selectfontSize('18')"> |
| | | <div |
| | | :class=" |
| | | toolSelectData.fontSizeActive == '18' |
| | | ? 'typeItem lineTypeActive' |
| | | : 'typeItem' |
| | | " |
| | | @click="selectfontSize('18')" |
| | | > |
| | | 大 |
| | | <div class="activeIcon" v-if="toolSelectData.fontSizeActive == '18'"> |
| | | <img :src="xuanzhong" /> |
| | |
| | | </div> |
| | | <div class="lineStyle"> |
| | | <div class="colorSelectBox"> |
| | | <div v-for="item in colorSelectList" :key="item.key" class="flex1 hover" |
| | | @click="lineColorSelect(item)"> |
| | | <div |
| | | v-for="item in colorSelectList" |
| | | :key="item.key" |
| | | class="flex1 hover" |
| | | @click="lineColorSelect(item)" |
| | | > |
| | | <div :style="{ background: item.key }" class="scribeItem"> |
| | | <img :src="xuanzhong" v-if="item.key == toolSelectData.lineColorActive" /> |
| | | </div> |
| | |
| | | </div> |
| | | <div class="lineStyle"> |
| | | <div class="colorSelectBox"> |
| | | <div v-for="item in colorSelectList" :key="item.key" class="flex1 hover" |
| | | @click="lineColorSelect(item)"> |
| | | <div |
| | | v-for="item in colorSelectList" |
| | | :key="item.key" |
| | | class="flex1 hover" |
| | | @click="lineColorSelect(item)" |
| | | > |
| | | <div :style="{ background: item.key }" class="scribeItem"> |
| | | <img :src="xuanzhong" v-if="item.key == toolSelectData.lineColorActive" /> |
| | | </div> |
| | |
| | | <div class="menuList"> |
| | | <ul class="menu" v-if="teachToolsMenuData.length > 0"> |
| | | <li v-for="item in teachToolsMenuData" :key="item.key" class="hover"> |
| | | <div :style="!toolState.open ? 'padding:10px 15px' : ''" v-if="item.isShow" |
| | | @click="selectTeachTools(item)"> |
| | | <div |
| | | :style="!toolState.open ? 'padding:10px 15px' : ''" |
| | | v-if="item.isShow" |
| | | @click="selectTeachTools(item)" |
| | | > |
| | | <img :src="item.icon" alt="" /> |
| | | <span v-if="toolState.open">{{ item.name }}</span> |
| | | </div> |
| | | </li> |
| | | </ul> |
| | | </div> |
| | | <div :class="['openBox', toolState.open ? 'right' : '']" v-if="teachToolsMenuData.length > 0"> |
| | | <div |
| | | :class="['openBox', toolState.open ? 'right' : '']" |
| | | v-if="teachToolsMenuData.length > 0" |
| | | > |
| | | <!-- <img :src="shouqiR" v-if="toolState.open" @click="toolState.open = false" /> --> |
| | | <!-- <img :src="shouqiL" v-if="!toolState.open" @click="toolState.open = true" /> --> |
| | | <svg v-if="!toolState.open" @click="toolState.open = true" 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-arrow-bar-to-left"> |
| | | <svg |
| | | v-if="!toolState.open" |
| | | @click="toolState.open = true" |
| | | 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-arrow-bar-to-left" |
| | | > |
| | | <path stroke="none" d="M0 0h24v24H0z" fill="none" /> |
| | | <path d="M10 12l10 0" /> |
| | | <path d="M10 12l4 4" /> |
| | | <path d="M10 12l4 -4" /> |
| | | <path d="M4 4l0 16" /> |
| | | </svg> |
| | | <svg v-if="toolState.open" @click="toolState.open = false" 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-arrow-bar-to-right"> |
| | | <svg |
| | | v-if="toolState.open" |
| | | @click="toolState.open = false" |
| | | 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-arrow-bar-to-right" |
| | | > |
| | | <path stroke="none" d="M0 0h24v24H0z" fill="none" /> |
| | | <path d="M14 12l-10 0" /> |
| | | <path d="M14 12l-4 4" /> |
| | |
| | | <el-tab-pane label="备课组件" name="first"> |
| | | <div class="tabBox"> |
| | | <div class="insertSelect"> |
| | | <div :class="selectType == 'resource' ? 'typeActive' : 'selectItem hover'" |
| | | @click="selectTypeClick('resource')"> |
| | | <div |
| | | :class="selectType == 'resource' ? 'typeActive' : 'selectItem hover'" |
| | | @click="selectTypeClick('resource')" |
| | | > |
| | | <img :src="selectType == 'resource' ? charuziyuan_blue : charuziyuan" /> |
| | | <div>插入资源</div> |
| | | </div> |
| | | <div :class="selectType == 'answer' ? 'typeActive' : 'selectItem hover'" |
| | | @click="selectTypeClick('answer')"> |
| | | <div |
| | | :class="selectType == 'answer' ? 'typeActive' : 'selectItem hover'" |
| | | @click="selectTypeClick('answer')" |
| | | > |
| | | <img :src="selectType == 'answer' ? dati_charu_blue : dati_charu" /> |
| | | <div>插入答题</div> |
| | | </div> |
| | |
| | | </div> |
| | | </div> |
| | | <!-- 画笔工具栏 --> |
| | | <div draggable="true" class="draggableBox" :style="`left:${floatingToolData.elLeft}px`" |
| | | v-if="floatingToolBox.length > 0"> |
| | | <div |
| | | draggable="true" |
| | | class="draggableBox" |
| | | :style="`left:${floatingToolData.elLeft}px`" |
| | | v-if="floatingToolBox.length > 0" |
| | | > |
| | | <div v-for="item in floatingToolBox" :key="item.name" @click="floatItemHandle(item)"> |
| | | <div v-if="item.isShow"> |
| | | <el-popover placement="right" width="120" trigger="click" v-if="floatingToolData.activeToolData == '标记'"> |
| | | <el-popover |
| | | placement="right" |
| | | width="120" |
| | | trigger="click" |
| | | v-if="floatingToolData.activeToolData == '标记'" |
| | | > |
| | | <div class="popinnerBox"> |
| | | <div class="label" v-if="floatingToolData.activeToolData == '标记'"> |
| | | <div class="labelItem hover" @click="labelShow('hide')"> |
| | |
| | | </div> |
| | | </div> |
| | | <template #reference> |
| | | <div :class="floatingToolData.activeToolData == item.name |
| | | ? 'floatToolActive floatToolItem' |
| | | : 'floatToolItem' |
| | | "> |
| | | <div |
| | | :class=" |
| | | floatingToolData.activeToolData == item.name |
| | | ? 'floatToolActive floatToolItem' |
| | | : 'floatToolItem' |
| | | " |
| | | > |
| | | <el-tooltip class="box-item" effect="dark" :content="item.name" placement="right"> |
| | | <div class="imgBox"> |
| | | <img :src="item.icon" alt="" /> |
| | |
| | | </div> |
| | | </el-tooltip> |
| | | </div> |
| | | <div :class="floatingToolData.activeToolData == item.name |
| | | ? 'floatToolActive floatToolItem' |
| | | : 'floatToolItem' |
| | | " v-else-if=" |
| | | <div |
| | | :class=" |
| | | floatingToolData.activeToolData == item.name |
| | | ? 'floatToolActive floatToolItem' |
| | | : 'floatToolItem' |
| | | " |
| | | v-else-if=" |
| | | floatingToolData.activeToolData != '书签' && |
| | | floatingToolData.activeToolData != '标记' |
| | | "> |
| | | " |
| | | > |
| | | <el-tooltip class="box-item" effect="dark" :content="item.name" placement="right"> |
| | | <div class="imgBox"> |
| | | <img :src="item.icon" alt="" /> |
| | |
| | | </div> |
| | | |
| | | <!-- 选中工具栏 --> |
| | | <div class="dialogToolBox" id="dialogToolBox" v-show="showToolBox" |
| | | :style="{ top: `${dialogToolData.top}px`, left: `${dialogToolData.left}px` }"> |
| | | <div |
| | | class="dialogToolBox" |
| | | id="dialogToolBox" |
| | | v-show="showToolBox" |
| | | :style="{ top: `${dialogToolData.top}px`, left: `${dialogToolData.left}px` }" |
| | | > |
| | | <div class="colorSelectBox" v-show="toolActive == '高亮' || toolActive == '划线'"> |
| | | <div v-for="item in colorSelectList" :key="item.key" class="flex1 hover" @click="clickSelect(item)"> |
| | | <div |
| | | v-for="item in colorSelectList" |
| | | :key="item.key" |
| | | class="flex1 hover" |
| | | @click="clickSelect(item)" |
| | | > |
| | | <div :style="{ background: item.key }" class="scribeItem"> |
| | | <img :src="xuanzhong1" v-if="item.key == colorActive" /> |
| | | </div> |
| | |
| | | </div> |
| | | <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'" v-if="item.isShow"> |
| | | <div |
| | | :class="item.name == toolActive ? 'dialogToolItem active' : 'dialogToolItem'" |
| | | v-if="item.isShow" |
| | | > |
| | | <el-tooltip class="box-item" effect="dark" :content="item.name" placement="bottom"> |
| | | <img :src="item.icon" alt="" /> |
| | | </el-tooltip> |
| | |
| | | </div> |
| | | </div> |
| | | <!-- 划线,高亮删除 --> |
| | | <div class="lineDeleteBox" v-show="lineDelete.showLineDelete" |
| | | :style="{ top: `${lineDelete.top}px`, left: `${lineDelete.left}px` }"> |
| | | <div |
| | | class="lineDeleteBox" |
| | | v-show="lineDelete.showLineDelete" |
| | | :style="{ top: `${lineDelete.top}px`, left: `${lineDelete.left}px` }" |
| | | > |
| | | <!-- <el-button @click="delUserKey">删除</el-button> --> |
| | | <div class="dialogToolItem"> |
| | | <el-tooltip class="box-item" effect="dark" content="删除" placement="bottom"> |
| | |
| | | </div> |
| | | </div> |
| | | <!-- 笔记悬浮框 --> |
| | | <div class="noteContentBox" v-show="noteContent.show" :style="{ |
| | | top: `${noteContent.top}px`, |
| | | left: `${noteContent.left}px`, |
| | | background: noteContent.color |
| | | }"> |
| | | <div |
| | | class="noteContentBox" |
| | | v-show="noteContent.show" |
| | | :style="{ |
| | | top: `${noteContent.top}px`, |
| | | left: `${noteContent.left}px`, |
| | | background: noteContent.color |
| | | }" |
| | | > |
| | | <div>{{ noteContent.note }}</div> |
| | | </div> |
| | | <!-- 英文书选中单词词典内容 --> |
| | | <div class="dictionaryDataBox" v-if="dictionaryData.showContent" |
| | | :style="{ top: `${dialogToolData.top}px`, left: `${dialogToolData.left}px` }"> |
| | | <div |
| | | class="dictionaryDataBox" |
| | | v-if="dictionaryData.showContent" |
| | | :style="{ top: `${dialogToolData.top}px`, left: `${dialogToolData.left}px` }" |
| | | > |
| | | <div class="content"> |
| | | <div class="word">{{ dictionaryData.data.word }}</div> |
| | | <div class="phone_con"> |
| | | <div class="per-phone"> |
| | | 英 <span>/{{ dictionaryData.data.ukPhone }}/</span><img :src="sound" class="soundBtn hover" |
| | | @click="soundWord(dictionaryData.data.word, 'en-UK')" /> |
| | | 英 <span>/{{ dictionaryData.data.ukPhone }}/</span |
| | | ><img |
| | | :src="sound" |
| | | class="soundBtn hover" |
| | | @click="soundWord(dictionaryData.data.word, 'en-UK')" |
| | | /> |
| | | </div> |
| | | <div class="per-phone"> |
| | | 美 <span>/{{ dictionaryData.data.usPhone }}/</span><img :src="sound" class="soundBtn hover" |
| | | @click="soundWord(dictionaryData.data.word, 'en-US')" /> |
| | | 美 <span>/{{ dictionaryData.data.usPhone }}/</span |
| | | ><img |
| | | :src="sound" |
| | | class="soundBtn hover" |
| | | @click="soundWord(dictionaryData.data.word, 'en-US')" |
| | | /> |
| | | </div> |
| | | </div> |
| | | <div class="trans"> |
| | |
| | | </div> |
| | | </div> |
| | | |
| | | <el-dialog title="资源" align-center v-model="resourVisble" width="845" class="resourDialog" |
| | | :before-close="resourVisbleClose"> |
| | | <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> |
| | |
| | | <audio ref="audioPlayer" :src="testAudio" controls @loadedmetadata="autoPlay"></audio> |
| | | </div> |
| | | <!-- 图片 --> |
| | | <el-image-viewer v-if="confirmDialog" :zoom-rate="1.2" @close="closePreview" :initial-index="previewIndex" |
| | | :url-list="imgPreviewList" /> |
| | | <el-dialog title="添加笔记" align-center v-model="addNoteVisble" :before-close="handleClose" class="myNoteDialogs"> |
| | | <el-image-viewer |
| | | v-if="confirmDialog" |
| | | :zoom-rate="1.2" |
| | | @close="closePreview" |
| | | :initial-index="previewIndex" |
| | | :url-list="imgPreviewList" |
| | | /> |
| | | <el-dialog |
| | | title="添加笔记" |
| | | align-center |
| | | v-model="addNoteVisble" |
| | | :before-close="handleClose" |
| | | class="myNoteDialogs" |
| | | > |
| | | <div class="formBox"> |
| | | <el-input type="textarea" :rows="4" v-model="formData.desc" placeholder="请输入笔记内容"></el-input> |
| | | <el-input |
| | | type="textarea" |
| | | :rows="4" |
| | | v-model="formData.desc" |
| | | placeholder="请输入笔记内容" |
| | | ></el-input> |
| | | </div> |
| | | <div class="noteColorSelectBox"> |
| | | <div v-for="item in colorSelectList" :key="item.key" class="flex1 hover" @click="clickSelectColor(item)"> |
| | | <div |
| | | v-for="item in colorSelectList" |
| | | :key="item.key" |
| | | class="flex1 hover" |
| | | @click="clickSelectColor(item)" |
| | | > |
| | | <div :style="{ background: item.key }" class="scribeItem"> |
| | | <img :src="xuanzhong" v-if="item.key == noteColorActive" /> |
| | | </div> |
| | |
| | | </span> |
| | | </template> |
| | | </el-dialog> |
| | | <el-dialog title="保存截图" align-center v-model="screenshotVisble" :before-close="screenshotClose" width="400" |
| | | class="resourDialog screenshotDialog"> |
| | | <el-dialog |
| | | title="保存截图" |
| | | align-center |
| | | v-model="screenshotVisble" |
| | | :before-close="screenshotClose" |
| | | width="400" |
| | | class="resourDialog screenshotDialog" |
| | | > |
| | | <div class="formBox"> |
| | | <el-input v-model="nameData" placeholder="请输入截图名称"></el-input> |
| | | </div> |
| | | <template #footer> |
| | | <span class="dialog-footer"> |
| | | <el-button @click="screenshotClose">取 消</el-button> |
| | | <el-button type="primary" @click="addScreenshot" :loading="screenshotLoading">确 定</el-button> |
| | | <el-button type="primary" @click="addScreenshot" :loading="screenshotLoading" |
| | | >确 定</el-button |
| | | > |
| | | </span> |
| | | </template> |
| | | </el-dialog> |
| | |
| | | <iframe :src="'https://baike.baidu.com/item/' + dialogToolData.txt" frameborder="0"></iframe> |
| | | </div> |
| | | </el-dialog> |
| | | <el-dialog title="AI智能问答" align-center v-model="wendaVisible" width="60%" class="myAnserDialogs"> |
| | | <el-dialog |
| | | title="AI智能问答" |
| | | align-center |
| | | v-model="wendaVisible" |
| | | width="60%" |
| | | class="myAnserDialogs" |
| | | > |
| | | <div class="wendabox"> |
| | | <iframe src="https://yiyan.baidu.com/" frameborder="0"></iframe> |
| | | </div> |
| | |
| | | <dictionary /> |
| | | </div> |
| | | </el-dialog> |
| | | <el-dialog title="GGB函数工具" align-center v-model="functionVisible" width="80%" class="myDialogs"> |
| | | <el-dialog |
| | | title="GGB函数工具" |
| | | align-center |
| | | v-model="functionVisible" |
| | | width="80%" |
| | | class="myDialogs" |
| | | > |
| | | <div class="wendabox"> |
| | | <iframe src="https://www.geogebra.org/calculator" frameborder="0"></iframe> |
| | | </div> |
| | |
| | | <newWord :resourceUrl="resourceUrl" /> |
| | | </div> |
| | | </el-dialog> |
| | | <el-dialog title="错题本" align-center v-model="wrongQuestionVisble" width="800" class="myDialogs"> |
| | | <el-dialog |
| | | title="错题本" |
| | | align-center |
| | | v-model="wrongQuestionVisble" |
| | | width="800" |
| | | class="myDialogs" |
| | | > |
| | | <div class="wendabox"> |
| | | <wrongQuestion /> |
| | | </div> |
| | | </el-dialog> |
| | | <!-- 答题器 --> |
| | | <examination ref="examinationRef" :activeBook="bookConfig" :info="examinationData.info" :type="examinationData.type" |
| | | :infoType="examinationData.infoType" /> |
| | | <examination |
| | | ref="examinationRef" |
| | | :activeBook="bookConfig" |
| | | :info="examinationData.info" |
| | | :type="examinationData.type" |
| | | :infoType="examinationData.infoType" |
| | | /> |
| | | <!-- 计算器 --> |
| | | <el-dialog title="计算器" align-center v-model="calculatorVisble" width="850" class="myDialogs"> |
| | | <calculatorNew></calculatorNew> |
| | | <el-dialog title="计算器" align-center v-model="calculatorVisble" width="850" class="myDialogs"> |
| | | <!-- <calculatorNew></calculatorNew> --> |
| | | <iframe src="https://www.geogebra.org/scientific" frameborder="0" class="iframe-box"></iframe> |
| | | </el-dialog> |
| | | </template> |
| | | <script setup lang="ts"> |
| | | import examination from '@/views/examination/index.vue' |
| | | import { ref, reactive, watch, onMounted, onBeforeMount, onBeforeUnmount, inject } from 'vue' |
| | | import { useRouter, useRoute } from 'vue-router' |
| | | import { ElMessage, ElMessageBox, valueEquals } from 'element-plus' |
| | | import useClipboard from 'vue-clipboard3' |
| | | const { toClipboard } = useClipboard() |
| | | const MG: any = inject('MG') |
| | | const toolClass = inject('toolClass') |
| | | //获取路由器 |
| | |
| | | import newWord from '@/views/components/newWord.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' |
| | | import biji from '@/assets/images/menu/biji.png' |
| | |
| | | const bookInfo = ref() |
| | | const isBuy = ref(false) |
| | | const tryPageCount = ref(0) |
| | | const searchText = ref() |
| | | onMounted(() => { |
| | | if (token) { |
| | | getUserInfo() |
| | |
| | | window.qiankunState.initTestBook(localStorage.getItem('bookId') + '', tryPageCount.value) |
| | | } |
| | | } |
| | | |
| | | }) |
| | | |
| | | // 定义父层方法 |
| | |
| | | // if (window.qiankunState && window.qiankunState.getAnswers){ |
| | | // window.qiankunState.getAnswers(localStorage.getItem("")) |
| | | // } |
| | | |
| | | }) |
| | | |
| | | onBeforeUnmount(() => { |
| | |
| | | icon: huabi, |
| | | name: '画笔', |
| | | // isShow: bookConfig.value.textbookComponents.indexOf('800109C0') > -1 |
| | | isShow:true |
| | | isShow: true |
| | | }, |
| | | { |
| | | icon: baiban, |
| | |
| | | catalogueData.value = json.data |
| | | headerData.totlePage = json.data[json.data.length - 1].end |
| | | listLoading.value = false |
| | | if (localStorage.getItem('chapter') && localStorage.getItem('startPage')) { |
| | | let chapter = Number(localStorage.getItem('chapter')) |
| | | let start = Number(localStorage.getItem('startPage')) |
| | | |
| | | if (window.qiankunState && window.qiankunState.gotoPage) { |
| | | window.qiankunState.gotoPage(chapter,start) |
| | | localStorage.removeItem('chapter') |
| | | localStorage.removeItem('startPage') |
| | | } |
| | | } |
| | | }) |
| | | .catch(function (error) { |
| | | listLoading.value = false |
| | | console.log(error) |
| | | |
| | | }) |
| | | } |
| | | const defaultProps = { |
| | |
| | | } |
| | | |
| | | const handleNodeClick = (data) => { |
| | | console.log(data) |
| | | if (!isBuy.value) { |
| | | if (data.start < tryPageCount.value) { |
| | | headerData.process = data.start |
| | |
| | | }) |
| | | } |
| | | }) |
| | | .catch(() => { }) |
| | | .catch(() => {}) |
| | | } |
| | | } |
| | | //资源播放视频 |
| | |
| | | } else { |
| | | getResourceData() |
| | | } |
| | | <<<<<<< HEAD |
| | | ======= |
| | | |
| | | >>>>>>> bcee5cd49c38973e2c6c316e1405f27ab1b74db7 |
| | | } |
| | | const searchBtn = () => { |
| | | if (searchShow.value) { |
| | |
| | | }) |
| | | } |
| | | }) |
| | | .catch(() => { }) |
| | | .catch(() => {}) |
| | | } |
| | | } |
| | | // 收藏按钮 |
| | | const handleCollectResource = (id, md5, resourcePath, resourceType, source, resourceName) => { |
| | | <<<<<<< HEAD |
| | | if (collectResourceList.value.findIndex((item) => item.id == id) > -1) { |
| | | collectResourceList.value = collectResourceList.value.filter((item) => item.id != id) |
| | | ======= |
| | | if (collectResourceList.value.findIndex(item => item.id == id) > -1) { |
| | | collectResourceList.value = collectResourceList.value.filter(item => item.id != id) |
| | | >>>>>>> bcee5cd49c38973e2c6c316e1405f27ab1b74db7 |
| | | } else { |
| | | collectResourceList.value.push({ |
| | | id, |
| | |
| | | MG.identity.setUserKey({ |
| | | setKeyRequests: [ |
| | | { |
| | | <<<<<<< HEAD |
| | | domain: 'collectResource', |
| | | key: bookConfig.value.bookId, |
| | | value: JSON.stringify(collectResourceList.value) |
| | | } |
| | | ] |
| | | }, |
| | | ], |
| | | }) |
| | | } |
| | | |
| | |
| | | }) |
| | | } |
| | | }) |
| | | .catch(() => { }) |
| | | .catch(() => {}) |
| | | } |
| | | } |
| | | |
| | |
| | | .then(() => { |
| | | router.push('/login') |
| | | }) |
| | | .catch(() => { }) |
| | | .catch(() => {}) |
| | | } |
| | | } |
| | | |
| | |
| | | // } |
| | | } |
| | | |
| | | const searchText = ref<string>('') //筛选 |
| | | const menuState = reactive({ |
| | | open: true, |
| | | notesColor: 'all' //笔记颜色 |
| | |
| | | }) |
| | | } |
| | | }) |
| | | .catch(() => { }) |
| | | .catch(() => {}) |
| | | } |
| | | } |
| | | |
| | |
| | | }) |
| | | getReMarkList() |
| | | }) |
| | | .catch(function (error) { }) |
| | | .catch(function (error) {}) |
| | | } |
| | | } else { |
| | | ElMessageBox.confirm('请先登录!', { |
| | |
| | | }) |
| | | } |
| | | }) |
| | | .catch(() => { }) |
| | | .catch(() => {}) |
| | | } |
| | | } |
| | | const getReMarkList = () => { |
| | |
| | | }) |
| | | } |
| | | }) |
| | | .catch(() => { }) |
| | | .catch(() => {}) |
| | | } |
| | | } |
| | | |
| | |
| | | }) |
| | | } |
| | | }) |
| | | .catch(() => { }) |
| | | .catch(() => {}) |
| | | } |
| | | } |
| | | //确认回调 |
| | |
| | | }) |
| | | } |
| | | }) |
| | | .catch(() => { }) |
| | | .catch(() => {}) |
| | | } |
| | | } |
| | | //查看截图 |
| | |
| | | getScreenshotList() |
| | | }) |
| | | }) |
| | | .catch(() => { }) |
| | | .catch(() => {}) |
| | | } |
| | | |
| | | //选中文字工具栏 |
| | |
| | | }) |
| | | } |
| | | }) |
| | | .catch(() => { }) |
| | | .catch(() => {}) |
| | | } |
| | | } |
| | | |
| | |
| | | }) |
| | | } |
| | | }) |
| | | .catch(() => { }) |
| | | .catch(() => {}) |
| | | } |
| | | } |
| | | |
| | |
| | | }) |
| | | } |
| | | }) |
| | | .catch(() => { }) |
| | | .catch(() => {}) |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | }) |
| | | }) |
| | | .catch(() => { }) |
| | | .catch(() => {}) |
| | | } |
| | | |
| | | //获取选中英文词典 |
| | |
| | | } |
| | | |
| | | .questionList { |
| | | <<<<<<< HEAD |
| | | height: 83%; |
| | | ======= |
| | | height: 83% |
| | | >>>>>>> bcee5cd49c38973e2c6c316e1405f27ab1b74db7 |
| | | } |
| | | |
| | | .question-bottom { |
| | |
| | | width: 300px; |
| | | padding: 20px 0; |
| | | background-color: #fff; |
| | | <<<<<<< HEAD |
| | | ======= |
| | | |
| | | >>>>>>> bcee5cd49c38973e2c6c316e1405f27ab1b74db7 |
| | | li { |
| | | cursor: pointer; |
| | | width: 65px; |
| | |
| | | .menu { |
| | | padding-top: 20px; |
| | | |
| | | li>div { |
| | | li > div { |
| | | // height: 50px; |
| | | padding: 10px 36px; |
| | | font-size: 16px; |
| | |
| | | bottom: 30px; |
| | | left: 50px; |
| | | } |
| | | .iframe-box { |
| | | width:100%; |
| | | height: 800px; |
| | | } |
| | | </style> |