y595705120 1 рік тому
батько
коміт
443a5ba423
1 змінених файлів з 6 додано та 4 видалено
  1. 6 4
      src/containers/center/market/index.vue

+ 6 - 4
src/containers/center/market/index.vue

@@ -493,7 +493,7 @@
         this.buyForm.buyImg = url;
       },
       hasPromise( type ){
-          return type == '施工现场专业人员' || type == '燃气经营企业'
+          return type == '施工现场专业人员'
       },
       testBuyOK(item){
         this.stage = 2;
@@ -509,6 +509,7 @@
         this.buyForm.company = this.userInfo.company;
         this.buyForm.temp = item;
         this.buyForm.courseName = item.name;
+        // console.log("goPay", item);
         let isEdu = this.hasPromise(item.type);
         // this.testBuyOK(item)
         // return;
@@ -522,11 +523,12 @@
             this.isCompanyPay = 0;
             this.isCommitment=''
             Object.assign( this.buyForm, res.data);
-
             if( isEdu){
-              this.buyCourseDialog = true;
-            }else{
+              this.buyCourseDialog = false;
               this.commitmentDialog = true;
+            }else{
+              this.buyCourseDialog = true;
+              this.commitmentDialog = false;
             }
           }else{
             console.log("payErr")