YM
2024-05-29 f84c3f1d77f798eb17dc48bba29fef1015536935
src/views/home.vue
@@ -182,10 +182,21 @@
            <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">
@@ -1213,8 +1224,8 @@
  // 加载微应用
  microApp = loadMicroApp(microApps.book1, {
    sandbox: {
      strictStyleIsolation: true
      // experimentalStyleIsolation: true
      strictStyleIsolation: true,
      experimentalStyleIsolation: true
    },
    singular: true
  })
@@ -1223,7 +1234,10 @@
    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')
      )
    }
  })
@@ -1253,8 +1267,6 @@
        dialogToolData.top = data.y + 20
        getSearchResult()
      }
    },
    getBookConfig: (data) => {
      console.log(data.bookConfig, '图书配置')
@@ -2670,6 +2682,7 @@
          // 渲染
          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)
          }
@@ -2743,15 +2756,14 @@
          // console.log(data,'666')
          let dataList = []
          if(catalogueData.value.length > 0 ){
            catalogueData.value.forEach(item1 =>{
            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 = []
@@ -2981,13 +2993,13 @@
        }
      ])
      .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
        }
      })