|
@@ -1676,11 +1676,9 @@ export default {
|
|
|
let singleClassMinutes = this.leftForm.classTime;
|
|
|
if (this.hotType == "GIVE_CLASS") {
|
|
|
if (this.centerForm.radio == "ONLINE") {
|
|
|
- onlineClassesNum =
|
|
|
- parseInt(onlineClassesNum) + parseInt(this.giveNum);
|
|
|
+ onlineClassesNum = parseInt(onlineClassesNum);
|
|
|
} else if (this.centerForm.radio == "OFFLINE") {
|
|
|
- offlineClassesNum =
|
|
|
- parseInt(offlineClassesNum) + parseInt(this.giveNum);
|
|
|
+ offlineClassesNum = parseInt(offlineClassesNum);
|
|
|
}
|
|
|
}
|
|
|
let onlineTeacherSalary = this.rightForm.onlineCourse || null;
|
|
@@ -1730,9 +1728,7 @@ export default {
|
|
|
this.rightForm.offlineCourse = res.data.offlineTeacherSalary;
|
|
|
this.rightForm.allPrice = res.data.totalPrice;
|
|
|
this.activeStudentList.forEach((stu) => {
|
|
|
- if (res.data.hasOwnProperty(stu.studentId)) {
|
|
|
- stu.paymentPrice = res.data[stu.studentId];
|
|
|
- }
|
|
|
+ stu.paymentPrice = res.data.totalPrice;
|
|
|
});
|
|
|
}
|
|
|
});
|