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