thx for regist page add

This commit is contained in:
ogerly 2021-02-26 17:41:03 +01:00
parent b3879f0708
commit 52d816a897
4 changed files with 49 additions and 14 deletions

View File

@ -17,9 +17,9 @@ const routes = [
component: () => import(/* webpackChunkName: "demo" */ '../views/Pages/Login.vue')
},
{
path: '/Landing',
name: 'Landing',
component: () => import(/* webpackChunkName: "demo" */ '../views/Landing.vue')
path: '/thx',
name: 'Thanks',
component: () => import(/* webpackChunkName: "demo" */ '../views/thx.vue')
},
{
path: '/register',

View File

@ -21,7 +21,8 @@ export const store = new Vuex.Store({
target_date:"2021-02-19T13:25:36+00:00",
memo:"AGE",
auto_sign: true
}
},
modals: false
},
// Retrieve a state variable
getters: {
@ -61,6 +62,7 @@ export const store = new Vuex.Store({
},
createUser: async ({ dispatch }, data) => {
console.log('action: createUser')
console.log('data ', data)
const result = await loginAPI.create(data.email,data.first_name,data.last_name,data.password)
if( result.success ){
// TODO We are not logged in, we need to do that manually.

View File

@ -92,11 +92,10 @@
</div>
<div>
<b-button v-b-modal.modal-1 variant="primary">Launch demo modal</b-button>
<b-modal id="modal-1" title="New message to undefined">
<p class="my-4">...</p>
</b-modal>
<!--Notice modal-->
<notifications></notifications>
</div>
</b-container>
</div>
@ -112,15 +111,26 @@
lastname: '',
email: '',
password: '',
agree: false
}
agree: false
},
modals: false
}
},
created() {
console.log("this.modals =>", this.modals)
},
methods: {
onSubmit() {
this.$store.dispatch('creatUser', {"email":this.model.email, "first_name":this.model.firstname, "last_name":this.model.lastname , "emailType": 2, "password":this.model.password})
}
console.log("this.modals =>", this.modals)
//this.$store.dispatch('createUser', {"email":this.model.email, "first_name":this.model.firstname, "last_name":this.model.lastname , "emailType": 2, "password":this.model.password})
this.$notify({type: 'danger', message: 'Danger Notification'})
this.model.email = ""
this.model.firstname = ""
this.model.lastname = ""
this.model.password = ""
this.$router.push('/thx')
}
}
};
</script>

View File

@ -0,0 +1,23 @@
<template>
<div>
<!-- Header -->
<div class="header bg-gradient-info py-7 py-lg-8 pt-lg-9">
<b-container>
<div class="header-body text-center mb-7">
<p class="h1">Danke für die Anmeldung</p>
<p class="h4">Bitte prüfe deine Mail und bestäige diese Anmeldung letztmalig. Dann kannst du dich in deiner Gradido Wallet einloggen. </p>
<b-button to="/login"> zum Login</b-button>
</div>
</b-container>
<div class="separator separator-bottom separator-skew zindex-100">
<svg x="0" y="0" viewBox="0 0 2560 100" preserveAspectRatio="none" version="1.1" xmlns="http://www.w3.org/2000/svg">
<polygon class="fill-default" points="2560 0 2560 100 0 100"></polygon>
</svg>
</div>
</div>
<!-- Page content -->
</div>
</template>