y595705120 il y a 2 jours
Parent
commit
d84bbe00b8

+ 1 - 0
src/containers/center/market/index.vue

@@ -590,6 +590,7 @@
         this.buyForm.temp = item;
         this.buyForm.courseName = item.name;
         this.matchPromise(item);
+        this.matchType(item.type)
         // this.testBuyOK(item)
         // return;
         // 检查

+ 10 - 0
src/containers/center/market/trainIndex.vue

@@ -494,6 +494,15 @@
           }
         }
       },
+      matchType(type) {
+        for (let i in this.typeList) {
+          let item = this.typeList[i];
+          if(item.name == type) {
+            this.typeInfo = Object.assign(this.typeInfo, item);
+            return;
+          }
+        }
+      },
       goPay( item ) {
         this.buyForm = Object.assign(this.buyForm, item)
         this.buyForm.company = this.userInfo.company;
@@ -501,6 +510,7 @@
         this.buyForm.courseName = item.name;
         let isEdu = this.type == '施工现场专业人员';
         this.matchPromise(item);
+        this.matchType(item.type)
         // 绕开检查
         // this.stage = 2;
         // this.isCompanyPay = 1;