|
@@ -1,11 +1,11 @@
|
|
|
<template lang="pug">
|
|
|
.cart-item
|
|
|
h3.item-name {{ item.name }}
|
|
|
- input.item-quantity(type="text")
|
|
|
+ input.item-quantity(type="text" :value="item.qty")
|
|
|
span.item-x x
|
|
|
span.item-price Gs {{ item.list_price }}
|
|
|
span.item-equals =
|
|
|
- span.item-subtotal Gs {{ item.list_price }}
|
|
|
+ span.item-subtotal Gs {{ item.list_price * item.qty }}
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
@@ -20,8 +20,7 @@
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
- console.log(this)
|
|
|
- console.log(_)
|
|
|
+ this.$set(this.item, 'qty', 1)
|
|
|
}
|
|
|
}
|
|
|
</script>
|