| | |
| | | <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> |
| | |
| | | size: 999, |
| | | sort: { |
| | | type: 'Desc', |
| | | field: 'CreateDate' |
| | | field: 'CreateDate', |
| | | }, |
| | | filterList: [], |
| | | searchList: [] |
| | | searchList: [], |
| | | }) |
| | | .then((res: any) => { |
| | | numClass.value = res.datas.length |
| | |
| | | const getData = () => { |
| | | MG.edu |
| | | .getCourseById({ |
| | | courseId: query.courseId |
| | | courseId: query.courseId, |
| | | }) |
| | | .then((res: any) => { |
| | | detailData.value = res |
| | |
| | | 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 |
| | |
| | | </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 { |