hgh 1 rok temu
rodzic
commit
f640cc8da8

+ 11 - 2
src/components/Widgets/Other/Shop/ShopApplyDiscount/ShopApplyDiscount.vue

@@ -60,7 +60,7 @@
           بازبینی
         </span>
       </div>
-      <div v-if="$route.query.type !== 'enrollment'"
+      <div v-if="showPayStage"
            class="apply-discount-step">
         <svg xmlns="http://www.w3.org/2000/svg"
              width="20.639"
@@ -127,7 +127,7 @@
             </div>
           </div>
         </div>
-        <discount v-if="$route.query.type !== 'enrollment' && classroom.price !== 0"
+        <discount v-if="showDiscountSection"
                   :target-id="classroom.id"
                   :target="getTarget"
                   @set-discount="setDiscount" />
@@ -205,6 +205,15 @@ export default {
       } else {
         return 'NAV'
       }
+    },
+    usageIcon () {
+      return 'inventory_2'
+    },
+    showDiscountSection () {
+      return this.$route.query.type !== 'enrollment' && this.classroom.price !== 0
+    },
+    showPayStage () {
+      return this.$route.query.type !== 'enrollment'
     }
   },
   watch: {

+ 4 - 1
src/components/Widgets/Other/Shop/ShopCompleteInfo/ShopCompleteInfo.vue

@@ -40,7 +40,7 @@
           بازبینی
         </span>
       </div>
-      <div v-if="$route.query.type !== 'enrollment'"
+      <div v-if="showPayStage"
            class="complete-info-step">
         <svg xmlns="http://www.w3.org/2000/svg"
              width="20.639"
@@ -308,6 +308,9 @@ export default {
     },
     selectedLivingProvince () {
       return FormBuilderAssist.getInputsByName(this.inputs, 'living_province').value
+    },
+    showPayStage () {
+      return this.$route.query.type !== 'enrollment'
     }
   },
   watch: {