闫增涛
2025-02-14 093bb57203ae158aa371125d584e2bff372a344e
修改课程学习无法播放问题,学习进度待修
5个文件已修改
20 ■■■■■ 已修改文件
.vscode/settings.json 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageDomain/pages/resourceDetails/myAudio/index.js 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
packageDomain/pages/resourceDetails/myVideo/index.js 15 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/digitalCourses/digitalCoursesDetails/index.js 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/digitalCourses/index.js 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
.vscode/settings.json
@@ -32,7 +32,7 @@
  },
  "editor.tabSize": 2,
  "[wxml]": {
    "editor.defaultFormatter": "wechat.miniprogram.wxml-language-features"
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[css]": {
    "editor.defaultFormatter": "HookyQR.beautify"
packageDomain/pages/resourceDetails/myAudio/index.js
@@ -277,6 +277,7 @@
      },
      fields: {},
    };
    if (this.data.storeInfo) query['storeInfo'] = this.data.storeInfo
    app.MG.store.getProductDetail(query).then(async (res) => {
      console.log('图书详情', res);
      this.setData({
packageDomain/pages/resourceDetails/myVideo/index.js
@@ -224,12 +224,15 @@
      },
      fields: {},
    };
    if (this.data.storeInfo) query['storeInfo'] = this.data.storeInfo
    app.MG.store.getProductDetail(query).then(async (res) => {
      this.setData({
        bookDetail: res.datas,
        buyIdList: res.datas.purchasedSaleMethodIdList,
        learnClassData: res.datas.cmsDatas[0].datas.length > 0 ? res.datas.cmsDatas[0].datas.find(item => item.refCode == "jsek_cloudLearning") : null
      })
      try {
        this.setData({
          bookDetail: res.datas,
          buyIdList: res.datas.purchasedSaleMethodIdList,
          learnClassData: res.datas.cmsDatas[0].datas.length > 0 ? res.datas.cmsDatas[0].datas.find(item => item.refCode == "jsek_cloudLearning") : null
        })
      } catch (error) {}
      if (this.data.learnClassData) {
        this.getResourceDataList(this.data.learnClassData)
      } else {
@@ -491,9 +494,11 @@
      currentTime,
      duration
    } = e.detail
    this.setData({
      progress: ((currentTime / duration) * 100).toFixed(2)
    })
    console.log('进度', e);
  },
  //获取视频学习
  getPlayerList() {
pages/digitalCourses/digitalCoursesDetails/index.js
@@ -196,7 +196,6 @@
   */
  onShow() {
    if (this.data.tabValue == 2 && this.data.selectActive == 'learn') {
      console.log(12333)
      this.getPlayerList()
      this.getResource()
      this.getRelationBook()
pages/digitalCourses/index.js
@@ -237,6 +237,7 @@
      if (!res.datas.length) {
        return this.setData({
          noData: true,
          courseList: [],
          contentLoading: false
        })
      }