| | |
| | | <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"><ArrowDown /></el-icon> |
| | | <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"><ArrowRight /></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"> |
| | | <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 class="textBox"> |
| | | <div class="title"> |
| | | <div class="title-con"> |
| | |
| | | // 加载微应用 |
| | | microApp = loadMicroApp(microApps.book1, { |
| | | sandbox: { |
| | | strictStyleIsolation: true |
| | | // experimentalStyleIsolation: true |
| | | strictStyleIsolation: true, |
| | | experimentalStyleIsolation: true |
| | | }, |
| | | singular: true |
| | | }) |
| | |
| | | console.log('父层state变化', state) |
| | | window.qiankunState = state |
| | | if (window.qiankunState && window.qiankunState.initTestBook) { |
| | | window.qiankunState.initTestBook(localStorage.getItem('bookId') + '',localStorage.getItem('tryPageCount')) |
| | | window.qiankunState.initTestBook( |
| | | localStorage.getItem('bookId') + '', |
| | | localStorage.getItem('tryPageCount') |
| | | ) |
| | | } |
| | | }) |
| | | |
| | |
| | | }, |
| | | chooseWords: (data) => { |
| | | console.log(data, '英语生词') |
| | | if(data){ |
| | | if (data) { |
| | | dialogToolData.txt = data.word |
| | | dialogToolData.left = data.x |
| | | dialogToolData.top = data.y + 20 |
| | | getSearchResult() |
| | | } |
| | | |
| | | |
| | | }, |
| | | getBookConfig: (data) => { |
| | | console.log(data.bookConfig, '图书配置') |
| | |
| | | getNotesList() |
| | | } |
| | | //笔记章节收起 |
| | | const noteOpen =(index)=>{ |
| | | console.log(scribeData.isShow,index) |
| | | const noteOpen = (index) => { |
| | | console.log(scribeData.isShow, index) |
| | | scribeData.isShow = true |
| | | scribeData.openIndex = index |
| | | } |
| | | //笔记章节打开 |
| | | const noteClose =(index)=>{ |
| | | const noteClose = (index) => { |
| | | scribeData.isShow = false |
| | | scribeData.openIndex = index |
| | | } |
| | |
| | | // 渲染 |
| | | for (let j = 0; j < data.length; j++) { |
| | | const citem = data[j] |
| | | console.log(citem.type, citem) |
| | | if (window.qiankunState && window.qiankunState.renderSign) |
| | | window.qiankunState.renderSign(citem.type, citem) |
| | | } |
| | |
| | | let data = catalogueData.value.find((item1) => item1.chapter == Number(item.key)) |
| | | // console.log(data,'666') |
| | | let dataList = [] |
| | | if(catalogueData.value.length > 0 ){ |
| | | catalogueData.value.forEach(item1 =>{ |
| | | if(item1.chapter == Number(item.key)){ |
| | | if (catalogueData.value.length > 0) { |
| | | catalogueData.value.forEach((item1) => { |
| | | if (item1.chapter == Number(item.key)) { |
| | | dataList.push(item1) |
| | | } |
| | | }) |
| | | } |
| | | let labels = "" |
| | | if(dataList.length > 1) |
| | | labels = dataList.map(item => item.label).join('/'); |
| | | |
| | | let labels = '' |
| | | if (dataList.length > 1) labels = dataList.map((item) => item.label).join('/') |
| | | |
| | | let list = JSON.parse(item.value) |
| | | let itemList = [] |
| | | if (list.length > 0) { |
| | |
| | | } |
| | | ]) |
| | | .then((res) => { |
| | | console.log(res[0][0],"cid") |
| | | console.log(res[0][0], 'cid') |
| | | if (res.length > 0 && res[0].length > 0) { |
| | | res[0].map((item) => { |
| | | item.trans = JSON.parse(item.trans) |
| | | }) |
| | | dictionaryData.data = res[0][0] |
| | | console.log(dictionaryData.data,"14") |
| | | console.log(dictionaryData.data, '14') |
| | | dictionaryData.showContent = true |
| | | } |
| | | }) |
| | |
| | | margin: 15px; |
| | | display: flex; |
| | | align-items: center; |
| | | span{ |
| | | margin-left:5px; |
| | | span { |
| | | margin-left: 5px; |
| | | } |
| | | } |
| | | .reMarkItem { |
| | |
| | | video { |
| | | width: 100%; |
| | | } |
| | | audio{ |
| | | audio { |
| | | width: 100%; |
| | | } |
| | | } |