Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 291ba23569 |
@@ -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>
|
||||
@@ -14,8 +14,9 @@
|
||||
|
||||
</section>
|
||||
|
||||
<aside id="CompraStatus" class="col-10 col-sm-2 col-md-2 col-lg-2 col-xl-2 offset-1 bg-primary">
|
||||
<h3 class="text-center">status</h3>
|
||||
<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>
|
||||
|
||||
|
||||
@@ -32,21 +33,28 @@ 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;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user