| | |
| | | <div class="personalPage-content"> |
| | | <div class="tipsText"> |
| | | <div> |
| | | 如您在教材试用申请过程中遇到问题,请于工作时间联系我们。<span class="phone"> |
| | | QQ号:3565269931 / 咨询电话010-65778403(工作时间:9:00~17:00) |
| | | </span> |
| | | {{ description }} |
| | | </div> |
| | | </div> |
| | | <div class="stageBtm" v-for="(item, index) in listData" :key="index"> |
| | |
| | | layout="total, prev, pager, next, slot" |
| | | :total="paginationData.totalCount" |
| | | > |
| | | <div style="display: inline-block"> |
| | | <div style="display: flex; align-items: center"> |
| | | <span class="el-pagination__jump" |
| | | >前往 |
| | | <div class="el-input el-pagination__editor is-in-pagination"> |
| | |
| | | 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') |
| | |
| | | totalPage: 0, |
| | | }) |
| | | let inputPage = ref(1) |
| | | let description = ref('') |
| | | |
| | | const getTextBookList = () => { |
| | | loading.value = true |
| | |
| | | listData.value = res.datas |
| | | }) |
| | | } |
| | | |
| | | const getType = () => { |
| | | const data = { |
| | | refCodes: ['sampleBook'], |
| | | } |
| | | MG.resource |
| | | .getCmsTypeByRefCode(data) |
| | | .then((res) => { |
| | | if (res?.length) { |
| | | description.value = res[0]?.description |
| | | } |
| | | }) |
| | | .catch(() => { |
| | | description.value = '' |
| | | }) |
| | | } |
| | | |
| | | onMounted(() => { |
| | | getType() |
| | | getTextBookList() |
| | | }) |
| | | |
| | | const toDetail = (item: any) => { |
| | | router.push({ |
| | | name: 'digitalTextbooks-textbooksDetail', |
| | | path: '/bookdetail', |
| | | query: { |
| | | id: item.id, |
| | | rootCmsItemId: item.rootCmsItemId, |
| | | bookId: item.id, |
| | | }, |
| | | }) |
| | | } |
| | | const read = (pItem: any) => { |
| | | let token = MG.tool.getCookie(config.tokenKey) |
| | | window.open(config.textReaderUrl + '?bookId=' + pItem.refCode + '&token=' + token) |
| | | // let token = tool.getCookie(config.tokenKey) |
| | | // const url = config.textReaderUrl + '#/home' + '?bookId=' + pItem.id + '&token=' + token |
| | | // debugger |
| | | // window.open(url) |
| | | router.push({ |
| | | path: '/bookdetail', |
| | | query: { |
| | | bookId: pItem.id, |
| | | }, |
| | | }) |
| | | } |
| | | const handleSizeChange = (val: number) => { |
| | | paginationData.limit = val |
| | |
| | | } |
| | | |
| | | .pageBox { |
| | | display: flex; |
| | | justify-content: center; |
| | | background-color: #fff; |
| | | margin-top: 50px; |
| | | } |
| | | .stageBtm { |
| | | border: 1px solid #dcdcdc; |
| | |
| | | padding: 15px; |
| | | box-sizing: border-box; |
| | | .listImg { |
| | | display: inline-block; |
| | | display: flex; |
| | | flex-direction: column; |
| | | align-items: center; |
| | | justify-content: space-between; |
| | | margin-right: 60px; |
| | | width: 120px; |
| | | img { |
| | | width: 120px; |
| | | cursor: pointer; |
| | | box-shadow: 0px 0px 20px 1px #ccc; |
| | | } |
| | | .name { |
| | | line-height: 27px; |
| | | line-height: 30px; |
| | | font-size: 15px; |
| | | color: #333; |
| | | overflow: hidden; |
| | | text-overflow: ellipsis; |
| | | white-space: nowrap; |
| | | padding: 5px 0; |
| | | box-sizing: border-box; |
| | | } |
| | | } |
| | | } |