zhongshujie
2024-12-18 5dcba93841a0dadb81a74b55062e440af20ad9d3
packageCourse/pages/course/index.js
@@ -114,7 +114,7 @@
            ...item,
            name: item.name,
            id: item.id,
            icon: item.icon && item.icon != 'default' ? getPublicImage(item.icon, 80) : '',
            icon: item.icon && item.icon != 'default' ? getPublicImage(item.icon, 200) : '',
            introduction: item.description,
            reason: item.applyReturnMsg ? JSON.parse(item.applyReturnMsg).reason : '-'
          }
@@ -162,7 +162,7 @@
        const list = res.datas.map((item) => {
          return {
            ...item,
            icon: item.product.icon ? getPublicImage(item.product.icon, 80) : ''
            icon: item.product.icon ? getPublicImage(item.product.icon, 200) : ''
          }
        })
        this.setData({
@@ -209,8 +209,11 @@
  // 单选选择课本
  onChange(e) {
    const {
      index
    } = e.currentTarget.dataset
    this.setData({
      radioVal: e.detail.value
      radioVal: index
    });
  },
@@ -275,7 +278,10 @@
      .then((res) => {
        if (res) {
          this.setData({
            visible: false
            visible: false,
            selectedBook: null,
            courseDesc: '',
            courseName: ''
          })
          this.getData()
        }