Browse Source

修改课酬问题

lex-xin 5 years ago
parent
commit
84450e7e93

File diff suppressed because it is too large
+ 0 - 0
dist/css/VIPApply.321a7b11.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.5a57c29d.js


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


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


+ 8 - 5
src/views/teacher/VIPApply.vue

@@ -898,18 +898,21 @@ export default {
                 this.$toast('请输入线下课单价')
                 return false
             }
-            if(!form.onlineTeacherSalary) {
-                this.$toast('请输入线上课课酬')
-                return false
+            if(!onlineClassesStatus) {
+                if(!form.onlineTeacherSalary) {
+                    this.$toast('请输入线上课课酬')
+                    return false
+                }
             }
+            
 
             // 如果只有线上课,则可以不需要地址
-            // if(this.statusList.hasOffline) {
+            if(!offlineClassesStatus) {
                 if(!form.offlineTeacherSalary) {
                     this.$toast('请输入线下课课酬')
                     return false
                 }
-            // }
+            }
             
             if(form.giveTeachMode == 'ONLINE') {
                 form.onlineClassesNum = Number(form.onlineClassesNums) + Number(this.other.giveNum)

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