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