Browse Source

优惠活动修改

wolyshaw 3 năm trước cách đây
mục cha
commit
7a8723f748
1 tập tin đã thay đổi với 4 bổ sung4 xóa
  1. 4 4
      src/views/teacher/VIP00Apply.vue

+ 4 - 4
src/views/teacher/VIP00Apply.vue

@@ -520,7 +520,7 @@ export default {
   name: "vipapply",
   components: {
     MHeader,
-    MEmpty, 
+    MEmpty,
   },
   data() {
     return {
@@ -1331,8 +1331,8 @@ export default {
       if(this.courseTypePractice) {
         oncn = parseInt(form.totalClassTime || 0)
       }
-      // 优惠活动(如果没有则原价)
-      const discount = Number(vas.discount || 100) / 100
+      // 优惠活动(如果没有则原价),可以为0,之前可以为空
+      const discount = (typeof vas.discount !== 'number' ? 100 : vas.discount) / 100
       // 重置老师默认网管课金额
       if(this.courseTypePractice) {
         //老师课酬
@@ -2125,7 +2125,7 @@ export default {
 .courseStudent {
   .van-cell__value {
     color: #b2b2b2;
-	font-size: 0.16rem; 
+	font-size: 0.16rem;
   }
 }
 /deep/.studentChiose {