ssfg 5 лет назад
Родитель
Сommit
4d955bf30a
3 измененных файлов с 7 добавлено и 5 удалено
  1. 1 0
      pages/Identity/Identity.js
  2. 1 0
      pages/myClass/myClass.js
  3. 5 5
      pages/myMission/myMission.js

+ 1 - 0
pages/Identity/Identity.js

@@ -59,6 +59,7 @@ Page({
     })
     // let _this = this;
     if (this.data.isRz == 0) {
+      wx.hideLoading()
       const params = e.detail.value
       if (!this.WxValidate.checkForm(params)) {
         const error = this.WxValidate.errorList[0]

+ 1 - 0
pages/myClass/myClass.js

@@ -282,6 +282,7 @@ Page({
           kcArr: res.data.list,
           istask2: res.data.allDone
         });
+        console.log(this.data.kcArr,"9999999999999999")
         for (let i = 0; i < res.data.list.length; i++) {
           if (res.data.list[i].isStudyDone == 0) {
             this.setData({

+ 5 - 5
pages/myMission/myMission.js

@@ -205,14 +205,14 @@ Page({
   //第六个任务 领取结业证
   checkTaskList6(sessionKey) {
     wx.request({
-      url: app.globalData.publicUrl + '/wx/student/wxGraduation',
+      url: app.globalData.publicUrl + '/wx/student/selStudentSessionKey',
       method: "post",
       data: {
         sessionKey: sessionKey
       },
       success: (res) => {
         console.log(res.data, "我是第六个任务的检查状态")
-        if (res.data.code == 0 && res.data.code == 0) {
+        if (res.data.code == 0 &&res.data.data.graduation == 0 ) {
           this.setData({
             istask6: true
           })
@@ -340,7 +340,7 @@ Page({
   },
   // 去学习
   goStudy(e) {
-    if (this.data.istask1 == false) {
+    if (this.data.istask2 == false) {
       wx.showModal({
         showCancel: false,
         content: "请按照任务顺序执行哦!"
@@ -397,7 +397,7 @@ Page({
   },
   // 去考试
   gokhAnswer(e) {
-    if (this.data.istask1 == false) {
+    if (this.data.istask2 == false) {
       wx.showModal({
         showCancel: false,
         content: "请按照任务顺序执行哦!"
@@ -443,7 +443,7 @@ Page({
   },
   //去评价
   gopjClass(e) {
-    if (this.data.istask1 == false) {
+    if (this.data.istask2 == false) {
       wx.showModal({
         showCancel: false,
         content: "请按照任务顺序执行哦!"