diff --git a/client/src/components/onboarding/PaymentMethod.vue b/client/src/components/onboarding/PaymentMethod.vue new file mode 100644 index 00000000..6271f57e --- /dev/null +++ b/client/src/components/onboarding/PaymentMethod.vue @@ -0,0 +1,36 @@ + + + + + + + + {{ pm.label }} + + + + + + + + {{ $t("shop.paymentCembraByjunoMessage") }} + + + diff --git a/client/src/components/onboarding/PersonalAddress.vue b/client/src/components/onboarding/PersonalAddress.vue index 9cbf1d9f..ddbfc7dd 100644 --- a/client/src/components/onboarding/PersonalAddress.vue +++ b/client/src/components/onboarding/PersonalAddress.vue @@ -2,42 +2,22 @@ import ItDatePicker from "@/components/ui/ItDatePicker.vue"; import { useEntities } from "@/services/entities"; import "@vuepic/vue-datepicker/dist/main.css"; -import { t } from "i18next"; -import { computed } from "vue"; -const props = defineProps<{ - modelValue: { - first_name: string; - last_name: string; - street: string; - street_number: string; - postal_code: string; - city: string; - country_code: string; - payment_method: string; +const model = defineModel<{ + first_name: string; + last_name: string; + street: string; + street_number: string; + postal_code: string; + city: string; + country_code: string; + payment_method: string; - phone_number: string; - birth_date: string; - }; -}>(); - -const emit = defineEmits(["update:modelValue"]); + phone_number: string; + birth_date: string; +}>({ required: true }); const { countries } = useEntities(); - -const paymentMethods = [ - { value: "credit_card", label: t("a.Debit-/Kreditkarte/Twint") }, - { value: "cembra_byjuno", label: t("a.Rechnung") }, -]; - -const address = computed({ - get() { - return props.modelValue; - }, - set(value) { - emit("update:modelValue", value); - }, -}); @@ -49,7 +29,7 @@ const address = computed({ - - - {{ $t("a.Zahlungsart") }} - - - - - {{ pm.label }} - - - - - - - - {{ $t("shop.paymentCembraByjunoMessage") }} - - - - + {{ $t("a.Telefonnummer") }} - + {{ $t("a.Geburtsdatum") }} - + diff --git a/client/src/pages/onboarding/vv/CheckoutAddress.vue b/client/src/pages/onboarding/vv/CheckoutAddress.vue index df9e3122..89d71557 100644 --- a/client/src/pages/onboarding/vv/CheckoutAddress.vue +++ b/client/src/pages/onboarding/vv/CheckoutAddress.vue @@ -1,6 +1,7 @@
+ {{ $t("shop.paymentCembraByjunoMessage") }} +
- {{ $t("shop.paymentCembraByjunoMessage") }} -