litian
2024-07-05 ea0592a7257ab7bb2036dabd8486d6a584d07704
pages/digitalCourses/digitalCoursesDetails/index.js
@@ -402,8 +402,8 @@
          }
        }
        //判断资源是否学习完成
        if (learnItemList.length == playerList.value.length) {
          let data = playerList.value.filter((ditem) => ditem.progress != '100')
        if (learnItemList.length == this.data.playerList.length) {
          let data = this.data.playerList.filter((ditem) => ditem.progress != '100')
          if (data) {
            this.setData({
              isLearn: false,
@@ -687,6 +687,15 @@
        icon: "none",
        duration: 1000,
      });
      return false
    }
    if (!this.data.isLearn) {
      wx.showToast({
        title: "您的学习任务还未完成,暂不能申请证书,加油哦!",
        icon: "none",
        duration: 1000,
      });
      return false
    }
    var page = getCurrentPages().pop(); // 获取当前页面实例