Registrazione con scelta se Telegram o Email.

(anche da link personale)
This commit is contained in:
Surya Paolo
2022-12-16 00:47:05 +01:00
parent b1ec0b6a67
commit 2b44dfbcb6
14 changed files with 111 additions and 33 deletions

View File

@@ -1,5 +1,5 @@
import { tools } from '@store/Modules/tools'
import { computed, defineComponent, reactive, ref, watch } from 'vue'
import { computed, defineComponent, onMounted, reactive, ref, watch } from 'vue'
import { useQuasar } from 'quasar'
import { useI18n } from '@/boot/i18n'
import { DefaultProfile, useUserStore } from '@store/UserStore'
@@ -10,7 +10,21 @@ import { useGlobalStore } from '@store/globalStore'
export default defineComponent({
name: 'CRegistration',
emits: ['regEventEmail'],
components: { },
props: {
invited: {
type: String,
required: false,
default: '',
},
regexpire: {
type: String,
required: false,
default: '',
},
},
setup(props, { emit }) {
const $q = useQuasar()
const { t } = useI18n()
@@ -36,6 +50,20 @@ export default defineComponent({
}
function mounted() {
if (props.invited) {
start.value = true
chooseReg.value = true
slide.value = 'second'
}
}
function regEventEmail() {
emit('regEventEmail', props.invited)
}
onMounted(mounted)
return {
tools,
site,
@@ -44,6 +72,7 @@ export default defineComponent({
start,
noInvited,
slide,
regEventEmail,
}
},
})