From afe2fbc5b0375c7c06853fc981deec74e04fd630 Mon Sep 17 00:00:00 2001 From: 杨磊 <505174330@qq.com> Date: 星期日, 24 八月 2025 11:30:40 +0800 Subject: [PATCH] Merge branch 'master' of http://182.92.203.7:2001/r/xiehe_website --- src/views/courseManage/index.vue | 34 +++++++++++++++++++++++++++------- 1 files changed, 27 insertions(+), 7 deletions(-) diff --git a/src/views/courseManage/index.vue b/src/views/courseManage/index.vue index 087f50e..9cc7fb0 100644 --- a/src/views/courseManage/index.vue +++ b/src/views/courseManage/index.vue @@ -15,7 +15,9 @@ <img v-if="detailData?.linkProduct?.icon != 'default'" :src=" - detailData.linkProduct?.icon ? getPublicImage(detailData.linkProduct.icon, 80) : defaultImg + detailData.linkProduct?.icon + ? getPublicImage(detailData.linkProduct.icon, 80) + : defaultImg " /> </div> @@ -85,10 +87,10 @@ size: 999, sort: { type: 'Desc', - field: 'CreateDate' + field: 'CreateDate', }, filterList: [], - searchList: [] + searchList: [], }) .then((res: any) => { numClass.value = res.datas.length @@ -99,7 +101,7 @@ const getData = () => { MG.edu .getCourseById({ - courseId: query.courseId + courseId: query.courseId, }) .then((res: any) => { detailData.value = res @@ -118,14 +120,14 @@ productId: String(shopId), coverSize: { height: 300, - width: 210 + width: 210, }, fields: { seriesName: [], author: [], isbn: [], - publicationDate: [] - } + publicationDate: [], + }, } MG.store.getProductDetail(query).then(async (res: any) => { bookDetail.value = res.datas @@ -138,6 +140,24 @@ </script> <style lang="less" scoped> +.autoImgBox { + width: 120px; + height: 130px; + margin-bottom: 10px; + position: relative; + img { + width: auto; + height: auto; + max-width: 100%; + max-height: 100%; + position: absolute; + top: 0; + right: 0; + bottom: 0; + left: 0; + margin: auto; + } +} .courseManage { padding: 0 20px; .backBox { -- Gitblit v1.9.1