Browse Source

修改课酬取值方式

lex-xin 4 years ago
parent
commit
b4ea6a5c72

File diff suppressed because it is too large
+ 0 - 0
dist/app.f28d11c5d9e65bd49a20.js


File diff suppressed because it is too large
+ 0 - 0
dist/css/VIPApply.975e2f95.css


File diff suppressed because it is too large
+ 0 - 0
dist/index.html


File diff suppressed because it is too large
+ 0 - 0
dist/js/VIPApply.2821fdde.js


File diff suppressed because it is too large
+ 0 - 0
dist/js/VIPApply.cd3d1c74.js


+ 1 - 4
src/views/teacher/VIPApply.vue

@@ -427,7 +427,6 @@ export default {
                 formName.vipGroupActivityIndex = index
                 loadData.vipGroupActivitySelect = value
 
-                // console.log(loadData.vipGroupCategorySelect)
                 // 换活动之后单价重置
                 form.onlineClassesUnitPrice = Math.ceil(loadData.vipGroupCategorySelect.onlineClassesUnitPrice)
                 form.offlineClassesUnitPrice = Math.ceil(loadData.vipGroupCategorySelect.offlineClassesUnitPrice)
@@ -743,14 +742,13 @@ export default {
                     if(vas.type == 'DISCOUNT') {
                         tempPrice = tempPrice * (vas.attribute1 ? Number(vas.attribute1) : 100) / 100
                     }
-                    console.log(tempPrice)
                 }
                 // 课程按课来计算
                 if (obj && obj.onlineSalarySettlement) {
                     let onss = obj.onlineSalarySettlement
                     // 有线上课
                     if(onss.salarySettlementType == 'TEACHER_DEFAULT') {
-                        form.onlineTeacherSalary = Math.round(tc.onlineClassesSalary) // 线上课酬
+                        form.onlineTeacherSalary = Math.round(tc.offlineClassesSalary) // 线上课酬
                     } else if(onss.salarySettlementType == 'RATIO_DISCOUNT') {
                         // 老师课酬的折扣 如果有则不打折
                         // form.onlineTeacherSalary = Math.round(vcs.onlineClassesUnitPrice * (onss.settlementValue ? onss.settlementValue : 100) / 100)
@@ -769,7 +767,6 @@ export default {
                     } else if(offss.salarySettlementType == 'RATIO_DISCOUNT') {
                         // 老师课酬的折扣
                         // form.offlineTeacherSalary = Math.round((vcs.offlineClassesUnitPrice * (offss.settlementValue ? offss.settlementValue : 100) / 100))
-                        
                         form.offlineTeacherSalary =  Math.round(tempPrice ? (tempPrice * (offss.settlementValue ? offss.settlementValue : 100) / 100) : 0)
                     } else if(offss.salarySettlementType == 'FIXED_SALARY') {
                         form.offlineTeacherSalary = Math.round(offss.settlementValue)

+ 2 - 2
vue.config.js

@@ -1,5 +1,5 @@
-// let targetUrl = 'http://mteadev.dayaedu.com'
-let targetUrl = 'http://192.168.3.139:8000' // 箭河
+let targetUrl = 'http://mteadev.dayaedu.com'
+// let targetUrl = 'http://192.168.3.139:8000' // 箭河
 // let targetUrl = 'https://online.dayaedu.com'
 // let targetUrl = 'http://dev.dayaedu.com/'
 // let targetUrl = 'http://192.168.3.151:8080'

Some files were not shown because too many files changed in this diff