QYF-GitLab1
20 小时以前 cf7e71c6d0fb64eeb6b5deac540da843b4bb465c
src/views/personalCenter/myApply.vue
@@ -108,7 +108,6 @@
import { reactive, ref, onMounted, inject } from 'vue'
import { getPublicImage } from '@/assets/js/middleGround/tool'
import { useRouter } from 'vue-router'
import tool from '@/assets/js/toolClass'
import defaultImg from '@/assets/images/default-book-img.png'
const MG: any = inject('MG')
const config: any = inject('config')
@@ -193,17 +192,39 @@
    },
  })
}
const read = (pItem: any) => {
  /** 暂无教材阅读器,跳转至详情 */
  // let token = localStorage.getItem(config.tokenKey)
  // const url = config.textBookResourceUrl + '#/home' + '?bookId=' + pItem.id + '&token=' + token
  // window.open(url)
  router.push({
    path: '/bookdetail',
    query: {
      bookId: pItem.id,
// 获取教材详情
const getBookDetail = async (id: string) => {
  const query = {
    path: '*',
    queryType: '*',
    productId: id,
    coverSize: {
      height: 300,
      width: 210,
    },
  })
    fields: {
      author: [],
      isbn: [],
    },
  }
  const res = await MG.store.getProductDetail(query)
  return res.datas ?? null
}
const read = async (pItem: any) => {
  /** 暂无教材阅读器,跳转至详情 */
  const detail = await getBookDetail(pItem.id)
  let token = localStorage.getItem(config.tokenKey)
  const url =
    config.textBookResourceUrl + '#/home' + '?bookId=' + detail.refCode + '&token=' + token
  window.open(url)
  // router.push({
  //   path: '/bookdetail',
  //   query: {
  //     bookId: pItem.id,
  //   },
  // })
}
const handleSizeChange = (val: number) => {
  paginationData.limit = val