bug
litian
2024-09-09 668c0a4058510a6022be06818540ba89778a5486
bug
6个文件已修改
62 ■■■■■ 已修改文件
packageBookService/pages/bookServices/detail/components/testResource/testResource.js 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageBookService/pages/bookServices/detail/index.js 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageDomain/pages/resourceDetails/myAudio/index.js 15 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageDomain/pages/resourceDetails/myVideo/index.js 18 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/digitalCourses/digitalCoursesDetails/index.js 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/digitalCourses/index.js 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageBookService/pages/bookServices/detail/components/testResource/testResource.js
@@ -94,6 +94,7 @@
            size: 999,
          },
        };
        console.log(value.childrenFolderCount, 1234578)
        if (value.childrenFolderCount == 0) {
          wx.hideLoading();
          return wx.showToast({
@@ -110,6 +111,7 @@
              type: item.type,
            });
          });
          console.log(idPathList, 123413456578)
        }
      }
      wx.hideLoading();
packageBookService/pages/bookServices/detail/index.js
@@ -229,14 +229,7 @@
      this.setData({
        tabValue: options.tabValue,
      });
      const checkData = this.data.cmsDatas.find(
        (item) => item.refCode == options.tabValue
      );
      if (this.data.tabValue == "questionBank") {
        this.getResourceData(checkData)
      } else {
        this.getResourceDataList(checkData)
      }
    }
  },
@@ -457,6 +450,16 @@
          await this.getBookClass(classData);
        }
      }
      if (this.data.tabValue == 'questionBank' || this.data.tabValue == 'jsek_cloudLearning' || this.data.tabValue == 'jsek_teachingResources') {
        const checkData = this.data.cmsDatas.find(
          (item) => item.refCode == this.data.tabValue
        );
        if (this.data.tabValue == "questionBank") {
          this.getResourceData(checkData)
        } else {
          this.getResourceDataList(checkData)
        }
      }
      // 获取组卷销售id
      if (res.datas.saleMethod && res.datas.saleMethod.length) {
packageDomain/pages/resourceDetails/myAudio/index.js
@@ -30,6 +30,7 @@
    parentProductLinkPath: '',
    productLinkPath: '',
    threeLeveData: [],
    source: "",
    showData: '',
    src: '',
    selectedId: null,
@@ -99,7 +100,8 @@
      cmsId: options.cmsId,
      parentProductLinkPath: options.parentProductLinkPath,
      productLinkPath: options.productLinkPath,
      formPath: options.formPath
      formPath: options.formPath,
      source: options.source,
    })
    if (options.parentName !== "教学资源" && options.parentName !== "云学习") {
@@ -282,9 +284,16 @@
      let titleName = '';
      res.datas.cmsDatas[0].datas.forEach((item, index) => {
        if (item.selectType === "audio" || item.learnSelectType === "audio") {
          this.data.threeLeveData.push(item);
        if (this.data.source == 'qrcode') {
          if (item.id == this.data.activeId) {
            this.data.threeLeveData.push(item);
          }
        } else {
          if (item.selectType === "audio" || item.learnSelectType === "audio") {
            this.data.threeLeveData.push(item);
          }
        }
      });
      this.data.threeLeveData.forEach((items, indexs) => {
        if (this.data.productLinkPath == items.productLinkPath) {
packageDomain/pages/resourceDetails/myVideo/index.js
@@ -26,6 +26,7 @@
    parentProductLinkPath: '',
    productLinkPath: '',
    threeLeveData: [],
    source: "",
    showData: '',
    showDataVod: '',
    src: '',
@@ -85,6 +86,7 @@
      productLinkPath: options.productLinkPath,
      formPath: options.formPath,
      flag: false,
      source: options.source,
    })
    if (options.parentName !== "教学资源" && options.parentName !== "云学习") {
      this.setData({
@@ -253,11 +255,17 @@
    }
    app.MG.store.getProductDetail(query).then(res => {
      res.datas.cmsDatas[0].datas.forEach((item) => {
        if (item.selectType === "video" || item.learnSelectType === "video") {
          this.data.threeLeveData.push(item)
          this.setData({
            threeLeveData: this.data.threeLeveData
          })
        if (this.data.source == 'qrcode') {
          if (item.id == this.data.activeId) {
            this.data.threeLeveData.push(item);
          }
        } else {
          if (item.selectType === "video" || item.learnSelectType === "video") {
            this.data.threeLeveData.push(item)
            this.setData({
              threeLeveData: this.data.threeLeveData
            })
          }
        }
      })
      this.data.threeLeveData.forEach((items, index) => { // 修改此处添加index参数
pages/digitalCourses/digitalCoursesDetails/index.js
@@ -281,7 +281,6 @@
      }
    }
    app.MG.store.getProductDetail(query).then(async res => {
      console.log('信息', res);
      if (res.datas.purchasedSaleMethodIdList.includes(res.datas.defaultSaleMethodId)) {
        this.setData({
          isBuy: true
@@ -873,7 +872,6 @@
        (data) => {
          let width = data.width
          let height = data.height
          console.log(width, height)
          that.setData({
            imageWidth: width,
            imageHeight: height,
@@ -893,7 +891,6 @@
        (data) => {
          let width = data.width
          let height = data.height
          console.log(width, height)
          that.setData({
            imageWidth: width,
            imageHeight: height,
@@ -911,13 +908,11 @@
      element: 'myCanvas',
      progress(percent) {},
      finish(url) {
        console.log("生成的图片地址", url)
        wx.getFileSystemManager().readFile({
          filePath: url,
          encoding: 'base64',
          success: (res) => {
            let MyImageBase64 = 'data:image/jpg;base64,' + res.data
            console.log('MyImageBase64', MyImageBase64)
            that.setData({
              cbzsImg: MyImageBase64,
              pubCertificateHide: false,
@@ -948,13 +943,11 @@
      element: 'myCanvas1',
      progress(percent) {},
      finish(url) {
        console.log("生成的图片地址", url)
        wx.getFileSystemManager().readFile({
          filePath: url,
          encoding: 'base64',
          success: (res) => {
            let MyImageBase641 = 'data:image/jpg;base64,' + res.data
            console.log('MyImageBase64', MyImageBase641)
            that.setData({
              rzzsImg: MyImageBase641,
              pubCertificateHide: false,
pages/digitalCourses/index.js
@@ -248,7 +248,6 @@
    this.setData({
      "sortActive": e.detail.value,
    });
    console.log(e)
    this.getCourseList(this.data.activeItem);
  },
  courseDetail(e) {