浏览代码

继续教育-二级建造师

xuqiaoying 3 年之前
父节点
当前提交
2dda3445d2
共有 2 个文件被更改,包括 22 次插入22 次删除
  1. 2 2
      src/components/buyCourseModal/index.vue
  2. 20 20
      src/pages/person-center/my-course/index.vue

+ 2 - 2
src/components/buyCourseModal/index.vue

@@ -106,8 +106,8 @@ export default {
   mounted() {},
   methods: {
     showModal(item) {
-      this.gradeId = ''
-      this.gradeList = []
+      // this.gradeId = ''
+      // this.gradeList = []
       this.selectClassModal = true;
       this.goodsDetail = item;
     },

+ 20 - 20
src/pages/person-center/my-course/index.vue

@@ -1273,30 +1273,30 @@ export default {
         return;
       }
 
-      // var confirmDetail = true;
-      // if (item.educationName == "继续教育") {
-      //   if (
-      //     item.officialName &&
-      //     item.businessName == "二级" &&
-      //     item.projectName == "建造师"
-      //   ) {
-      //     confirmDetail = await this.userConfirmInfoDetail();
-      //   }
-      // }
-
-      // // //内部系统
-      // // if (item.interfacePushId > 0 && item.officialStatus != 1) {
-      // //   this.$message({
-      // //     type: "warning",
-      // //     message: "机构正在为您报名中,请耐心等待,有疑问请联系020-87085982!",
-      // //   });
-      // //   return;
-      // // }
+      var confirmDetail = true;
+      if (item.educationName == "继续教育") {
+        if (
+          item.officialName &&
+          item.businessName == "二级" &&
+          item.projectName == "建造师"
+        ) {
+          confirmDetail = await this.userConfirmInfoDetail();
+        }
+      }
 
-      // if (!confirmDetail) {
+      // //内部系统
+      // if (item.interfacePushId > 0 && item.officialStatus != 1) {
+      //   this.$message({
+      //     type: "warning",
+      //     message: "机构正在为您报名中,请耐心等待,有疑问请联系020-87085982!",
+      //   });
       //   return;
       // }
 
+      if (!confirmDetail) {
+        return;
+      }
+
       let rebuildStatus = await this.courseGoodsRebuildStatus(
         item.goodsId,
         item.gradeId