QYF-GitLab1
14 小时以前 e1f87494b737169c412ca723baf3085cb0c5706e
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 {