resgitro cooperativa & bienvenida
This commit is contained in:
@@ -23,13 +23,13 @@
|
|||||||
<NuxtLink to="/" class="nuxt-link">
|
<NuxtLink to="/" class="nuxt-link">
|
||||||
<p class="nav-text">Inicio</p>
|
<p class="nav-text">Inicio</p>
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
<NuxtLink to="/catalogo" class="nuxt-link">
|
<NuxtLink to="/busqueda" class="nuxt-link">
|
||||||
<p class="nav-text">Catálogo</p>
|
<p class="nav-text">Catálogo</p>
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
<NuxtLink to="/productoras" class="nuxt-link">
|
<NuxtLink to="/productoras" class="nuxt-link">
|
||||||
<p class="nav-text">Productoras</p>
|
<p class="nav-text">Productoras</p>
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
<NuxtLink to="/" class="nuxt-link">
|
<NuxtLink to="/registro/cooperativa" class="nuxt-link">
|
||||||
<p class="nav-text">Únete</p>
|
<p class="nav-text">Únete</p>
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
<NuxtLink to="https://www.kit-eco.social/es" class="nuxt-link">
|
<NuxtLink to="https://www.kit-eco.social/es" class="nuxt-link">
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
<span class="section-text">Inicio</span>
|
<span class="section-text">Inicio</span>
|
||||||
</li>
|
</li>
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
<NuxtLink to="/catalogo">
|
<NuxtLink to="/busqueda">
|
||||||
<li class="section" @click="isMenuOpen = !isMenuOpen">
|
<li class="section" @click="isMenuOpen = !isMenuOpen">
|
||||||
<span class="section-text">Catálogo</span>
|
<span class="section-text">Catálogo</span>
|
||||||
</li>
|
</li>
|
||||||
@@ -34,12 +34,12 @@
|
|||||||
</li>
|
</li>
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
<!-- TODO: cambiar link -->
|
<!-- TODO: cambiar link -->
|
||||||
<NuxtLink to="/page/info">
|
<NuxtLink to="/registro/cooperativa">
|
||||||
<li class="section" @click="isMenuOpen = !isMenuOpen">
|
<li class="section" @click="isMenuOpen = !isMenuOpen">
|
||||||
<span class="section-text">Únete</span>
|
<span class="section-text">Únete</span>
|
||||||
</li>
|
</li>
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
<NuxtLink to="https://www.kit-eco.social/es">
|
<NuxtLink to="https://www.kit-eco.social/es/">
|
||||||
<li class="section" @click="isMenuOpen = !isMenuOpen">
|
<li class="section" @click="isMenuOpen = !isMenuOpen">
|
||||||
<span class="section-text">kit-eco.social</span>
|
<span class="section-text">kit-eco.social</span>
|
||||||
</li>
|
</li>
|
||||||
|
|||||||
@@ -42,8 +42,8 @@
|
|||||||
</div> -->
|
</div> -->
|
||||||
|
|
||||||
<p class="help" align="center">
|
<p class="help" align="center">
|
||||||
*¿Todavía no formas parte de Consumo Cuidado?
|
¿Todavía no formas parte de Consumo Cuidado?
|
||||||
<NuxtLink to="/registro"><b>Únete</b></NuxtLink
|
<NuxtLink to="/registro/cooperativa"><b>Únete</b></NuxtLink
|
||||||
>.
|
>.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="container">
|
<div class="container-fluid">
|
||||||
<div class="welcome">
|
<div class="welcome">
|
||||||
<div class="text-container">
|
<div class="text-container">
|
||||||
<h1>¡Bienvenida!</h1>
|
<h1>¡Bienvenida!</h1>
|
||||||
@@ -19,12 +19,30 @@ export default {}
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
.container-fluid {
|
||||||
|
margin-top: 5rem;
|
||||||
|
margin-bottom: 5rem;
|
||||||
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
background: linear-gradient($color-consumo-base-light, $color-bg-light);
|
||||||
|
border-radius: 1rem;
|
||||||
|
padding: 2rem;
|
||||||
|
gap: 3rem;
|
||||||
|
margin: 2rem 0 4rem;
|
||||||
|
color: $color-primary;
|
||||||
|
|
||||||
|
@include mobile {
|
||||||
|
margin-top: 7rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.welcome {
|
.welcome {
|
||||||
position: relative;
|
position: relative;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 600px;
|
height: 600px;
|
||||||
font-family: $font-primary;
|
color: $color-primary;
|
||||||
color: $color-navy;
|
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="container">
|
<div class="container-fluid">
|
||||||
<FormHeader title="Registro de Cooperativa" />
|
<FormHeader title="Registro de Cooperativa" />
|
||||||
<form class="form" @submit.prevent="userRegister">
|
<form class="form" @submit.prevent="userRegister">
|
||||||
<FormInput
|
<FormInput
|
||||||
@@ -64,22 +64,22 @@
|
|||||||
<!-- {{ register }} -->
|
<!-- {{ register }} -->
|
||||||
<SubmitButton text="registrar" image-url="" />
|
<SubmitButton text="registrar" image-url="" />
|
||||||
</form>
|
</form>
|
||||||
<p class="help" align="center">
|
<!-- <p class="help" align="center">
|
||||||
*Para más información sobre este proyecto, visita la siguiente
|
*Para más información sobre este proyecto, visita la siguiente
|
||||||
<NuxtLink to="/page/info"><b>página</b></NuxtLink
|
<NuxtLink to="/page/info"><b>página</b></NuxtLink
|
||||||
>.
|
>.
|
||||||
</p>
|
</p> -->
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import dataProcessing from '~/utils/dataProcessing'
|
import dataProcessing from '~/utils/dataProcessing'
|
||||||
export default {
|
export default {
|
||||||
setup() {
|
// setup() {
|
||||||
definePageMeta({
|
// definePageMeta({
|
||||||
layout: 'main',
|
// layout: 'main',
|
||||||
})
|
// })
|
||||||
},
|
// },
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
register: {
|
register: {
|
||||||
@@ -104,7 +104,21 @@ export default {
|
|||||||
error: null,
|
error: null,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
computed: {
|
||||||
|
isValidForm() {
|
||||||
|
if (
|
||||||
|
this.register.user.email &&
|
||||||
|
this.register.user.password &&
|
||||||
|
this.register.company.cif &&
|
||||||
|
this.register.company.company_name &&
|
||||||
|
this.register.company.short_name &&
|
||||||
|
this.register.company.web_link
|
||||||
|
) {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
},
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
isValidUrl: dataProcessing.isValidUrl,
|
isValidUrl: dataProcessing.isValidUrl,
|
||||||
getPlace(value) {
|
getPlace(value) {
|
||||||
@@ -113,7 +127,7 @@ export default {
|
|||||||
async userRegister() {
|
async userRegister() {
|
||||||
const config = useRuntimeConfig()
|
const config = useRuntimeConfig()
|
||||||
this.error = null
|
this.error = null
|
||||||
if (this.place.address && this.place.city) {
|
if (this.isValidForm) {
|
||||||
this.register.company = { ...this.register.company, ...this.place }
|
this.register.company = { ...this.register.company, ...this.place }
|
||||||
this.register.user.full_name = this.register.company.short_name
|
this.register.user.full_name = this.register.company.short_name
|
||||||
try {
|
try {
|
||||||
@@ -140,9 +154,19 @@ export default {
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.container {
|
.container-fluid {
|
||||||
margin-top: 5rem;
|
margin-top: 5rem;
|
||||||
margin-bottom: 5rem;
|
margin-bottom: 5rem;
|
||||||
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
background: linear-gradient($color-consumo-base-light, $color-bg-light);
|
||||||
|
border-radius: 1rem;
|
||||||
|
padding: 2rem;
|
||||||
|
gap: 3rem;
|
||||||
|
margin: 2rem 0 4rem;
|
||||||
|
color: $color-primary;
|
||||||
|
|
||||||
@include mobile {
|
@include mobile {
|
||||||
margin-top: 7rem;
|
margin-top: 7rem;
|
||||||
@@ -153,7 +177,9 @@ export default {
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
gap: 1rem;
|
||||||
margin-bottom: 80px;
|
margin-bottom: 80px;
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.checkbox-container {
|
.checkbox-container {
|
||||||
@@ -164,15 +190,15 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.googleaddress-container {
|
// .googleaddress-container {
|
||||||
margin-top: 1rem;
|
// margin-top: 1rem;
|
||||||
margin-bottom: 2rem;
|
// margin-bottom: 2rem;
|
||||||
width: 45%;
|
// width: 45%;
|
||||||
@include mobile {
|
// @include mobile {
|
||||||
width: 80%;
|
// width: 80%;
|
||||||
font-size: $s;
|
// font-size: $s;
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
.error {
|
.error {
|
||||||
color: $color-error;
|
color: $color-error;
|
||||||
@@ -180,7 +206,7 @@ export default {
|
|||||||
|
|
||||||
.help {
|
.help {
|
||||||
color: $color-navy;
|
color: $color-navy;
|
||||||
margin-bottom: 80px;
|
// margin-bottom: 80px;
|
||||||
font-size: $m;
|
font-size: $m;
|
||||||
@include mobile {
|
@include mobile {
|
||||||
font-size: $s;
|
font-size: $s;
|
||||||
|
|||||||
Reference in New Issue
Block a user