Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 291ba23569 | |||
| 0e23f1ebbe | |||
| 98604916c9 | |||
| 77f7ffd5f6 |
Generated
+85
-71
@@ -1796,17 +1796,6 @@
|
|||||||
"integrity": "sha512-+G7P8jJmCHr+S+cLfQxygbWhXy+8YTVGzAkpEbcLo2mLoL7tij/VG41QSHACSf5QgYRhMZYHuNc6drJaO0Da+w==",
|
"integrity": "sha512-+G7P8jJmCHr+S+cLfQxygbWhXy+8YTVGzAkpEbcLo2mLoL7tij/VG41QSHACSf5QgYRhMZYHuNc6drJaO0Da+w==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"ansi-styles": {
|
|
||||||
"version": "4.2.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz",
|
|
||||||
"integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==",
|
|
||||||
"dev": true,
|
|
||||||
"optional": true,
|
|
||||||
"requires": {
|
|
||||||
"@types/color-name": "^1.1.1",
|
|
||||||
"color-convert": "^2.0.1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"cacache": {
|
"cacache": {
|
||||||
"version": "13.0.1",
|
"version": "13.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/cacache/-/cacache-13.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/cacache/-/cacache-13.0.1.tgz",
|
||||||
@@ -1833,34 +1822,6 @@
|
|||||||
"unique-filename": "^1.1.1"
|
"unique-filename": "^1.1.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"chalk": {
|
|
||||||
"version": "3.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz",
|
|
||||||
"integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==",
|
|
||||||
"dev": true,
|
|
||||||
"optional": true,
|
|
||||||
"requires": {
|
|
||||||
"ansi-styles": "^4.1.0",
|
|
||||||
"supports-color": "^7.1.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"color-convert": {
|
|
||||||
"version": "2.0.1",
|
|
||||||
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
|
|
||||||
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
|
|
||||||
"dev": true,
|
|
||||||
"optional": true,
|
|
||||||
"requires": {
|
|
||||||
"color-name": "~1.1.4"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"color-name": {
|
|
||||||
"version": "1.1.4",
|
|
||||||
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
|
|
||||||
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
|
|
||||||
"dev": true,
|
|
||||||
"optional": true
|
|
||||||
},
|
|
||||||
"find-cache-dir": {
|
"find-cache-dir": {
|
||||||
"version": "3.3.1",
|
"version": "3.3.1",
|
||||||
"resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-3.3.1.tgz",
|
"resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-3.3.1.tgz",
|
||||||
@@ -1882,13 +1843,6 @@
|
|||||||
"path-exists": "^4.0.0"
|
"path-exists": "^4.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"has-flag": {
|
|
||||||
"version": "4.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
|
|
||||||
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
|
|
||||||
"dev": true,
|
|
||||||
"optional": true
|
|
||||||
},
|
|
||||||
"locate-path": {
|
"locate-path": {
|
||||||
"version": "5.0.0",
|
"version": "5.0.0",
|
||||||
"resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz",
|
||||||
@@ -1953,16 +1907,6 @@
|
|||||||
"minipass": "^3.1.1"
|
"minipass": "^3.1.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"supports-color": {
|
|
||||||
"version": "7.2.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
|
|
||||||
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
|
|
||||||
"dev": true,
|
|
||||||
"optional": true,
|
|
||||||
"requires": {
|
|
||||||
"has-flag": "^4.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"terser-webpack-plugin": {
|
"terser-webpack-plugin": {
|
||||||
"version": "2.3.8",
|
"version": "2.3.8",
|
||||||
"resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-2.3.8.tgz",
|
"resolved": "https://registry.npmjs.org/terser-webpack-plugin/-/terser-webpack-plugin-2.3.8.tgz",
|
||||||
@@ -1979,21 +1923,6 @@
|
|||||||
"terser": "^4.6.12",
|
"terser": "^4.6.12",
|
||||||
"webpack-sources": "^1.4.3"
|
"webpack-sources": "^1.4.3"
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"vue-loader-v16": {
|
|
||||||
"version": "npm:vue-loader@16.0.0-beta.7",
|
|
||||||
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.0.0-beta.7.tgz",
|
|
||||||
"integrity": "sha512-xQ8/GZmRPdQ3EinnE0IXwdVoDzh7Dowo0MowoyBuScEBXrRabw6At5/IdtD3waKklKW5PGokPsm8KRN6rvQ1cw==",
|
|
||||||
"dev": true,
|
|
||||||
"optional": true,
|
|
||||||
"requires": {
|
|
||||||
"@types/mini-css-extract-plugin": "^0.9.1",
|
|
||||||
"chalk": "^3.0.0",
|
|
||||||
"hash-sum": "^2.0.0",
|
|
||||||
"loader-utils": "^1.2.3",
|
|
||||||
"merge-source-map": "^1.1.0",
|
|
||||||
"source-map": "^0.6.1"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -6830,6 +6759,11 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"jquery": {
|
||||||
|
"version": "3.5.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/jquery/-/jquery-3.5.1.tgz",
|
||||||
|
"integrity": "sha512-XwIBPqcMn57FxfT+Go5pzySnm4KWkT1Tv7gjrpT1srtf8Weynl6R273VJ5GjkRb51IzMp5nbaPjJXMWeju2MKg=="
|
||||||
|
},
|
||||||
"js-message": {
|
"js-message": {
|
||||||
"version": "1.0.5",
|
"version": "1.0.5",
|
||||||
"resolved": "https://registry.npmjs.org/js-message/-/js-message-1.0.5.tgz",
|
"resolved": "https://registry.npmjs.org/js-message/-/js-message-1.0.5.tgz",
|
||||||
@@ -11043,6 +10977,86 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"vue-loader-v16": {
|
||||||
|
"version": "npm:vue-loader@16.0.0-beta.7",
|
||||||
|
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.0.0-beta.7.tgz",
|
||||||
|
"integrity": "sha512-xQ8/GZmRPdQ3EinnE0IXwdVoDzh7Dowo0MowoyBuScEBXrRabw6At5/IdtD3waKklKW5PGokPsm8KRN6rvQ1cw==",
|
||||||
|
"dev": true,
|
||||||
|
"optional": true,
|
||||||
|
"requires": {
|
||||||
|
"@types/mini-css-extract-plugin": "^0.9.1",
|
||||||
|
"chalk": "^3.0.0",
|
||||||
|
"hash-sum": "^2.0.0",
|
||||||
|
"loader-utils": "^1.2.3",
|
||||||
|
"merge-source-map": "^1.1.0",
|
||||||
|
"source-map": "^0.6.1"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"ansi-styles": {
|
||||||
|
"version": "4.2.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz",
|
||||||
|
"integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==",
|
||||||
|
"dev": true,
|
||||||
|
"optional": true,
|
||||||
|
"requires": {
|
||||||
|
"@types/color-name": "^1.1.1",
|
||||||
|
"color-convert": "^2.0.1"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"chalk": {
|
||||||
|
"version": "3.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/chalk/-/chalk-3.0.0.tgz",
|
||||||
|
"integrity": "sha512-4D3B6Wf41KOYRFdszmDqMCGq5VV/uMAB273JILmO+3jAlh8X4qDtdtgCR3fxtbLEMzSx22QdhnDcJvu2u1fVwg==",
|
||||||
|
"dev": true,
|
||||||
|
"optional": true,
|
||||||
|
"requires": {
|
||||||
|
"ansi-styles": "^4.1.0",
|
||||||
|
"supports-color": "^7.1.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"color-convert": {
|
||||||
|
"version": "2.0.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
|
||||||
|
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
|
||||||
|
"dev": true,
|
||||||
|
"optional": true,
|
||||||
|
"requires": {
|
||||||
|
"color-name": "~1.1.4"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"color-name": {
|
||||||
|
"version": "1.1.4",
|
||||||
|
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
|
||||||
|
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
|
||||||
|
"dev": true,
|
||||||
|
"optional": true
|
||||||
|
},
|
||||||
|
"has-flag": {
|
||||||
|
"version": "4.0.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
|
||||||
|
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
|
||||||
|
"dev": true,
|
||||||
|
"optional": true
|
||||||
|
},
|
||||||
|
"source-map": {
|
||||||
|
"version": "0.6.1",
|
||||||
|
"resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
|
||||||
|
"integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",
|
||||||
|
"dev": true,
|
||||||
|
"optional": true
|
||||||
|
},
|
||||||
|
"supports-color": {
|
||||||
|
"version": "7.2.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
|
||||||
|
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
|
||||||
|
"dev": true,
|
||||||
|
"optional": true,
|
||||||
|
"requires": {
|
||||||
|
"has-flag": "^4.0.0"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"vue-router": {
|
"vue-router": {
|
||||||
"version": "3.4.3",
|
"version": "3.4.3",
|
||||||
"resolved": "https://registry.npmjs.org/vue-router/-/vue-router-3.4.3.tgz",
|
"resolved": "https://registry.npmjs.org/vue-router/-/vue-router-3.4.3.tgz",
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
"bootstrap": "^4.5.2",
|
"bootstrap": "^4.5.2",
|
||||||
"bootstrap-vue": "^2.17.1",
|
"bootstrap-vue": "^2.17.1",
|
||||||
"core-js": "^3.6.5",
|
"core-js": "^3.6.5",
|
||||||
|
"jquery": "^3.5.1",
|
||||||
"sweetalert2": "^10.1.0",
|
"sweetalert2": "^10.1.0",
|
||||||
"vue": "^2.6.11",
|
"vue": "^2.6.11",
|
||||||
"vue-router": "^3.4.3"
|
"vue-router": "^3.4.3"
|
||||||
|
|||||||
+8
-13
@@ -1,14 +1,11 @@
|
|||||||
<template>
|
<template>
|
||||||
<div id="app">
|
<div id="app">
|
||||||
<Header />
|
|
||||||
<router-view></router-view>
|
<router-view></router-view>
|
||||||
<Footer />
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Header from './components/Header'
|
|
||||||
import Footer from './components/Footer'
|
|
||||||
|
|
||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
import BootstrapVue from 'bootstrap-vue'
|
import BootstrapVue from 'bootstrap-vue'
|
||||||
@@ -20,18 +17,16 @@ import 'bootstrap/dist/css/bootstrap.css'
|
|||||||
import 'bootstrap-vue/dist/bootstrap-vue.css'
|
import 'bootstrap-vue/dist/bootstrap-vue.css'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'app',
|
name: 'app'
|
||||||
components: {
|
|
||||||
Header,
|
|
||||||
Footer
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
|
||||||
|
|
||||||
#app {
|
<style>
|
||||||
|
|
||||||
|
.row {
|
||||||
|
margin: 0 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
|
||||||
|
</style>
|
||||||
@@ -0,0 +1,70 @@
|
|||||||
|
<template>
|
||||||
|
<div id="BotonesShopping" class="row ">
|
||||||
|
<div class="col-sm-3 col-md-3 col-lg-3 col-xl-3 col-12 mt-1 d-flex align-items-center navshop "> <router-link to="/datosPersonales" class="btn colores gris prueba text-white"> Datos Personales </router-link></div>
|
||||||
|
<div class="col-sm-3 col-md-3 col-lg-3 col-xl-3 col-12 mt-1 d-flex align-items-center navshop "> <router-link to="/datosPersonales" class="btn colores gris text-white"> Direcciones </router-link></div>
|
||||||
|
<div class="col-sm-3 col-md-3 col-lg-3 col-xl-3 col-12 mt-1 d-flex align-items-center navshop "> <router-link to="/datosPersonales" class="btn colores gris text-white"> Envio </router-link></div>
|
||||||
|
<div class="col-sm-3 col-md-3 col-lg-3 col-xl-3 col-12 mt-1 d-flex align-items-center navshop "> <router-link to="/datosPersonales" class="btn colores gris text-white"> Pago </router-link></div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
const $ = require('jquery')
|
||||||
|
|
||||||
|
|
||||||
|
export default {
|
||||||
|
props:['currentStep'],
|
||||||
|
data(){
|
||||||
|
return{
|
||||||
|
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods:{
|
||||||
|
|
||||||
|
color(etapa){
|
||||||
|
|
||||||
|
var result = $(".colores:first")
|
||||||
|
|
||||||
|
result.removeClass("gris").toggleClass("azul")
|
||||||
|
|
||||||
|
console.log(result)
|
||||||
|
console.log(etapa)
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
created(){
|
||||||
|
|
||||||
|
this.color(this.currentStep)
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<style >
|
||||||
|
|
||||||
|
.verde{
|
||||||
|
background-color: #29B026 !important;
|
||||||
|
}
|
||||||
|
.azul{
|
||||||
|
background-color: #1B3D70 !important;
|
||||||
|
}
|
||||||
|
.gris{
|
||||||
|
background-color: #C4C4C4 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navshop a {
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width:1023px ) and (min-width: 760px) {
|
||||||
|
.navshop a {
|
||||||
|
font-size: .6rem !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</style>
|
||||||
@@ -0,0 +1,104 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
|
||||||
|
<div class="card">
|
||||||
|
<div class="card-body">
|
||||||
|
|
||||||
|
|
||||||
|
<h2 class="card-title">Mi Compra</h2>
|
||||||
|
<div class="my-5">
|
||||||
|
<div>
|
||||||
|
<div v-if="detalles == false">
|
||||||
|
<p class="card-text ">Tienes {{articulos.length}} Articulo(s)</p>
|
||||||
|
<a @click="detalle()" class="text-primary">mostrar detalles</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div v-if="detalles == true">
|
||||||
|
<ul class="productos">
|
||||||
|
<li v-for="articulo in articulos" :key="articulo.id" >
|
||||||
|
<p>{{articulo.nombre}}</p>
|
||||||
|
<div class="d-flex justify-content-between">
|
||||||
|
<p>{{articulo.cantidad}}pz.</p>
|
||||||
|
<p>${{articulo.precio * articulo.cantidad}}</p>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
|
<a @click="detalle()" class="text-primary">ocultar detalles</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="mt-3">
|
||||||
|
<div class="d-flex justify-content-between">
|
||||||
|
<p >Subtotal </p>
|
||||||
|
<p >${{SubTotal}}</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="d-flex justify-content-between">
|
||||||
|
<p> Envio </p>
|
||||||
|
<p>${{Envio}}</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="d-flex justify-content-between align-items-center border-top border-bottom">
|
||||||
|
<p> Total </p>
|
||||||
|
<p>${{Total}}</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="card-footer bg-transparent border-top-0 d-flex justify-content-center">
|
||||||
|
<a href="#" class="btn doradoColor text-white my-3">Modificar</a>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
data(){
|
||||||
|
return{
|
||||||
|
detalles:false,
|
||||||
|
articulos:[
|
||||||
|
{
|
||||||
|
id:0,
|
||||||
|
nombre:'ejemploq',
|
||||||
|
cantidad:'2',
|
||||||
|
precio:'654.00'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id:1,
|
||||||
|
nombre:'asdsa',
|
||||||
|
cantidad:'3',
|
||||||
|
precio:'4654.00'
|
||||||
|
}
|
||||||
|
],
|
||||||
|
SubTotal:'00.00',
|
||||||
|
Envio:'00.00',
|
||||||
|
Total:'00.00'
|
||||||
|
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods:{
|
||||||
|
detalle(){
|
||||||
|
this.detalles = !this.detalles
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.productos{
|
||||||
|
list-style: none;
|
||||||
|
padding-left: 0%;
|
||||||
|
}
|
||||||
|
.doradoColor{
|
||||||
|
background-color: #bb8800 !important;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -0,0 +1,190 @@
|
|||||||
|
<template>
|
||||||
|
<form class="mt-4" role="form" data-toggle="validator" @submit.prevent="checkForm">
|
||||||
|
|
||||||
|
<div class="my-3">
|
||||||
|
<div class="row ">
|
||||||
|
<div class="form-check col-4 ">
|
||||||
|
<input class="form-check-input" type="radio" id="exampleRadios1" v-model="select" value="invitado" checked>
|
||||||
|
<label class="form-check-label" for="exampleRadios1">
|
||||||
|
Invitado
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
<div class="form-check col-4">
|
||||||
|
<input class="form-check-input" type="radio" id="exampleRadios2" v-model="select" value="cuenta">
|
||||||
|
<label class="form-check-label" for="exampleRadios2">
|
||||||
|
Ya Tengo Cuenta
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
<div class="form-check col-4">
|
||||||
|
<input class="form-check-input" type="radio" id="exampleRadios3" v-model="select" value="newCuenta">
|
||||||
|
<label class="form-check-label" for="exampleRadios2">
|
||||||
|
Crear Cuenta
|
||||||
|
</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div v-if="submitted === true">
|
||||||
|
<div v-if="hasErrors" class="error">
|
||||||
|
<strong>Se han producido los siguientes errores:</strong>
|
||||||
|
<ul>
|
||||||
|
<li v-bind:key="error" v-for="error in errors">{{ error }}</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<div v-else class="correcto">
|
||||||
|
<strong>Enviado!</strong>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div v-if="select == 'invitado' ">
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="InputNombre1">Nombres</label>
|
||||||
|
<input type="text" class="form-control" id="InputNombre1" placeholder="Ingresa tu nombre" v-model="invitado.nombre">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="InputApellido1">Apellidos</label>
|
||||||
|
<input type="text" class="form-control" id="InputApellido1" placeholder="Ingresa tus apellidos" v-model="invitado.apellido">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="InputCorreo1">Correo</label>
|
||||||
|
<input type="email" class="form-control" id="InputCorreo1" placeholder="Enter email" v-model="invitado.correo">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div v-if="select == 'cuenta' ">
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="InputCorreo2" >Correo</label>
|
||||||
|
<input type="email" class="form-control" id="InputCorreo2" placeholder="Enter email" v-model="cuenta.correo">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="InputPassword2">Contraseña</label>
|
||||||
|
<input type="password" class="form-control" id="InputPassword1" placeholder="Password" v-model="cuenta.contrasena">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div v-if="select == 'newCuenta' ">
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="InputNombre3">Nombres</label>
|
||||||
|
<input type="email" class="form-control" id="InputNombre3" v-model="newCuenta.nombre" placeholder="Ingresa tu nombre">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="InputApellido3">Apellidos</label>
|
||||||
|
<input type="email" class="form-control" id="InputApellido3" v-model="newCuenta.apellido" placeholder="Ingresa tus apellidos">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="InputCorreo3">Correo</label>
|
||||||
|
<input type="email" class="form-control" id="InputCorreo3" v-model="newCuenta.correo" placeholder="Ingresa tu correo">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="exampleInputEmail1">Fecha de Nacimiento</label>
|
||||||
|
<input class="form-control" type="date" value="2011-08-19" id="dataEjemploFecha" v-model="newCuenta.nacimiento">
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="exampleInputEmail1">Contraseña</label>
|
||||||
|
<input type="email" class="form-control" id="exampleInputEmail1" v-model="newCuenta.contrasena" placeholder="Enter email">
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div v-if="select != ''">
|
||||||
|
<div class="form-check">
|
||||||
|
<input type="checkbox" class="form-check-input" id="exampleCheck1" v-model="check.ofertas" >
|
||||||
|
<label class="form-check-label" for="exampleCheck1">Recibir ofertas de nuestros socios</label>
|
||||||
|
</div>
|
||||||
|
<div class="form-check">
|
||||||
|
<input type="checkbox" class="form-check-input" id="exampleCheck2" v-model="check.suscribirse" >
|
||||||
|
<label class="form-check-label" for="exampleCheck2">Suscribirse a nuestro boletín de noticias</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<!-- <pre>{{$data}}</pre> -->
|
||||||
|
|
||||||
|
<div v-if="(invitado.nombre && invitado.apellido && invitado.correo)
|
||||||
|
|| (cuenta.correo && cuenta.contrasena)
|
||||||
|
|| (newCuenta.nombre && newCuenta.apellido && newCuenta.correo && newCuenta.nacimiento && newCuenta.contrasena) != ''">
|
||||||
|
<button type="submit" @click="NextStep()" class="btn btn-success">continuar</button>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
data(){
|
||||||
|
return{
|
||||||
|
continuar:false,
|
||||||
|
select:'',
|
||||||
|
errors:[], submitted:false,
|
||||||
|
invitado:{
|
||||||
|
nombre:'',
|
||||||
|
apellido:'',
|
||||||
|
correo:''
|
||||||
|
},
|
||||||
|
cuenta:{
|
||||||
|
correo:'',
|
||||||
|
contrasena:''
|
||||||
|
},
|
||||||
|
newCuenta:{
|
||||||
|
nombre:'',
|
||||||
|
apellido:'',
|
||||||
|
correo:'',
|
||||||
|
nacimiento:'',
|
||||||
|
contrasena:''
|
||||||
|
},
|
||||||
|
check:{
|
||||||
|
ofertas:false,
|
||||||
|
suscribirse:false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods:{
|
||||||
|
checkForm() {
|
||||||
|
this.submitted = true;
|
||||||
|
switch(this.select){
|
||||||
|
case 'invitado':
|
||||||
|
console.log(this.select)
|
||||||
|
break
|
||||||
|
|
||||||
|
case 'cuenta':
|
||||||
|
console.log(this.select)
|
||||||
|
break
|
||||||
|
|
||||||
|
case 'newCuenta':
|
||||||
|
console.log(this.select)
|
||||||
|
break
|
||||||
|
}
|
||||||
|
this.continuar = true
|
||||||
|
},
|
||||||
|
NextStep(){
|
||||||
|
let pagina = this.$router.currentRoute.name
|
||||||
|
switch(pagina){
|
||||||
|
case 'personalData':
|
||||||
|
this.$router.push({name:'home'})
|
||||||
|
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
},
|
||||||
|
computed:{
|
||||||
|
hasError(){
|
||||||
|
return this.errors.length;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
created(){
|
||||||
|
console.log(this.$router.currentRoute)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
import {library} from '@fortawesome/fontawesome-svg-core'
|
||||||
|
import {
|
||||||
|
faUserSecret,
|
||||||
|
faUser,
|
||||||
|
faLock,
|
||||||
|
faGraduationCap,
|
||||||
|
faExternalLinkAlt,
|
||||||
|
faKey,
|
||||||
|
faExclamationCircle,
|
||||||
|
faEnvelope,
|
||||||
|
faShoppingCart,
|
||||||
|
faTrash,
|
||||||
|
faMapMarkerAlt,
|
||||||
|
faPhoneAlt
|
||||||
|
} from '@fortawesome/free-solid-svg-icons'
|
||||||
|
|
||||||
|
|
||||||
|
library.add(faUserSecret)
|
||||||
|
library.add(faUser)
|
||||||
|
library.add(faLock)
|
||||||
|
library.add(faExternalLinkAlt)
|
||||||
|
library.add(faGraduationCap)
|
||||||
|
library.add(faExclamationCircle)
|
||||||
|
library.add(faKey)
|
||||||
|
library.add(faEnvelope)
|
||||||
|
library.add(faShoppingCart)
|
||||||
|
library.add(faTrash)
|
||||||
|
library.add(faMapMarkerAlt)
|
||||||
|
library.add(faPhoneAlt)
|
||||||
|
|
||||||
+3
-28
@@ -1,36 +1,11 @@
|
|||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
import App from './App.vue'
|
import App from './App.vue'
|
||||||
import router from './routes'
|
import router from './routes'
|
||||||
|
import "bootstrap"
|
||||||
|
import "bootstrap/dist/css/bootstrap.min.css"
|
||||||
|
|
||||||
import {library} from '@fortawesome/fontawesome-svg-core'
|
|
||||||
import {
|
|
||||||
faUserSecret,
|
|
||||||
faUser,
|
|
||||||
faLock,
|
|
||||||
faGraduationCap,
|
|
||||||
faExternalLinkAlt,
|
|
||||||
faKey,
|
|
||||||
faExclamationCircle,
|
|
||||||
faEnvelope,
|
|
||||||
faShoppingCart,
|
|
||||||
faTrash,
|
|
||||||
faMapMarkerAlt,
|
|
||||||
faPhoneAlt
|
|
||||||
} from '@fortawesome/free-solid-svg-icons'
|
|
||||||
import {FontAwesomeIcon} from '@fortawesome/vue-fontawesome'
|
import {FontAwesomeIcon} from '@fortawesome/vue-fontawesome'
|
||||||
|
import "./icons"
|
||||||
library.add(faUserSecret)
|
|
||||||
library.add(faUser)
|
|
||||||
library.add(faLock)
|
|
||||||
library.add(faExternalLinkAlt)
|
|
||||||
library.add(faGraduationCap)
|
|
||||||
library.add(faExclamationCircle)
|
|
||||||
library.add(faKey)
|
|
||||||
library.add(faEnvelope)
|
|
||||||
library.add(faShoppingCart)
|
|
||||||
library.add(faTrash)
|
|
||||||
library.add(faMapMarkerAlt)
|
|
||||||
library.add(faPhoneAlt)
|
|
||||||
|
|
||||||
Vue.component('font-awesome-icon', FontAwesomeIcon)
|
Vue.component('font-awesome-icon', FontAwesomeIcon)
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ import Vue from 'vue'
|
|||||||
import VueRouter from 'vue-router'
|
import VueRouter from 'vue-router'
|
||||||
|
|
||||||
import Home from './view/Home.vue'
|
import Home from './view/Home.vue'
|
||||||
|
import PersonalData from './view/PersonalData.vue'
|
||||||
|
|
||||||
const routes = [
|
const routes = [
|
||||||
{
|
{
|
||||||
@@ -14,6 +15,11 @@ const routes = [
|
|||||||
component: Home,
|
component: Home,
|
||||||
name: 'home'
|
name: 'home'
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: '/datosPersonales',
|
||||||
|
component: PersonalData,
|
||||||
|
name: 'personalData'
|
||||||
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
Vue.use(VueRouter)
|
Vue.use(VueRouter)
|
||||||
|
|||||||
+13
-6
@@ -1,15 +1,22 @@
|
|||||||
<template>
|
<template>
|
||||||
|
<div>
|
||||||
|
<Header></Header>
|
||||||
<div class="container my-5">
|
<div class="container my-5">
|
||||||
<h1>Hola</h1>
|
<h1 class="text-center">Home</h1>
|
||||||
|
</div>
|
||||||
|
<Footer></Footer>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
export default {
|
import Header from '../components/Header'
|
||||||
|
import Footer from '../components/Footer'
|
||||||
|
|
||||||
|
|
||||||
|
export default {
|
||||||
|
components: {
|
||||||
|
Header,
|
||||||
|
Footer
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
|
||||||
|
|
||||||
</style>
|
|
||||||
@@ -0,0 +1,61 @@
|
|||||||
|
<template>
|
||||||
|
<div>
|
||||||
|
<Header></Header>
|
||||||
|
|
||||||
|
<div class="my-5">
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
|
||||||
|
<section class="col-10 col-sm-7 col-md-7 col-lg-7 col-xl-7 offset-1">
|
||||||
|
<ShoppingNav currentStep=2></ShoppingNav>
|
||||||
|
|
||||||
|
<DataSection></DataSection>
|
||||||
|
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
|
<aside id="CompraStatus" class="col-10 col-sm-2 col-md-2 col-lg-2 col-xl-2 offset-1 ">
|
||||||
|
<!-- <h3 class="text-center">status</h3> -->
|
||||||
|
<ShoppingStatus></ShoppingStatus>
|
||||||
|
</aside>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<Footer></Footer>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import Header from '../components/Header'
|
||||||
|
import Footer from '../components/Footer'
|
||||||
|
import ShoppingNav from '../components/ShoppingNav'
|
||||||
|
import DataSection from '../components/dataSection'
|
||||||
|
import ShoppingStatus from '../components/ShoppingStatus'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
components: {
|
||||||
|
Header,
|
||||||
|
Footer,
|
||||||
|
ShoppingNav,
|
||||||
|
ShoppingStatus,
|
||||||
|
DataSection
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
#CompraStatus{
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width:760px ) {
|
||||||
|
#CompraStatus{
|
||||||
|
margin-top: 2rem;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
</style>
|
||||||
Reference in New Issue
Block a user