hgh vor 1 Jahr
Ursprung
Commit
7542160f71

+ 1 - 1
src/components/Widgets/Event/ShowEventInfo/ShowEventInfo.vue

@@ -80,7 +80,7 @@
                    class="btn-register q-ml-md"
                    :loading="dropLoading"
                    @click="onDropping">
-              انصراف۳
+              انصراف
             </q-btn>
             <q-btn outline
                    color="primary"

+ 12 - 1
src/components/Widgets/Other/Shop/ShopApplyDiscount/ShopApplyDiscount.vue

@@ -127,7 +127,7 @@
           </div>
         </div>
         <discount :target-id="classroom.id"
-                  :target="'TRAINING'"
+                  :target="getTarget"
                   @set-discount="setDiscount" />
       </div>
       <div class="step1__sidebar">
@@ -192,6 +192,17 @@ export default {
       } else {
         return 'مشاهده جزییات و قوانین دوره'
       }
+    },
+    getTarget () {
+      if (this.$route.query.source === 'event') {
+        return 'EVENT'
+      } else if (this.$route.query.source === 'classroom') {
+        return 'TRAINING'
+      } else if (this.$route.query.source === 'store') {
+        return 'STORE'
+      } else {
+        return 'NAV'
+      }
     }
   },
   watch: {