From 9cad6a832c786989be620573b09badccfe7e3b51 Mon Sep 17 00:00:00 2001 From: QYF-GitLab1 <1940665526@qq.com> Date: 星期一, 25 八月 2025 15:11:37 +0800 Subject: [PATCH] 首页头部,样式调整 --- src/views/personalCenter/myApply.vue | 27 ++++++++++++++++++++++++--- 1 files changed, 24 insertions(+), 3 deletions(-) diff --git a/src/views/personalCenter/myApply.vue b/src/views/personalCenter/myApply.vue index 1cf4c51..98f2497 100644 --- a/src/views/personalCenter/myApply.vue +++ b/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,10 +192,32 @@ }, }) } -const read = (pItem: any) => { + +// 鑾峰彇鏁欐潗璇︽儏 +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=' + pItem.refCode + '&token=' + token + const url = + config.textBookResourceUrl + '#/home' + '?bookId=' + detail.refCode + '&token=' + token window.open(url) // router.push({ // path: '/bookdetail', -- Gitblit v1.9.1