add some comments
This commit is contained in:
@@ -145,19 +145,16 @@
|
||||
|
||||
<div v-if="expanded && relatedProducts" class="related_products">
|
||||
<h2>Productos relacionados</h2>
|
||||
<ProductsRelated :relatedProducts="relatedProducts" />
|
||||
<ProductsRelated :related-products="relatedProducts" />
|
||||
</div>
|
||||
<ProductModal v-if="modal" :product="product" @close="closeModal" />
|
||||
<ProductModal :product="product" @close="closeModal" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { mapState } from 'pinia'
|
||||
import ProductModal from './ProductModal.vue'
|
||||
import ProductsRelated from './ProductsRelated.vue'
|
||||
import socialShare from '~/utils/socialShare'
|
||||
export default {
|
||||
components: { ProductsRelated, ProductModal },
|
||||
props: {
|
||||
product: {
|
||||
type: Object,
|
||||
|
||||
@@ -176,7 +176,7 @@ export default {
|
||||
})
|
||||
}
|
||||
},
|
||||
// TODO: implement buyIntent (review functionality)
|
||||
// TODO: implement buyIntent (review functionality, because sendLog is not working)
|
||||
buyIntent() {
|
||||
this.sendLog('shop')
|
||||
return this.product.url
|
||||
|
||||
@@ -158,7 +158,7 @@ export default {
|
||||
let response
|
||||
let status
|
||||
const config = useRuntimeConfig()
|
||||
try { //TODO: review if its working
|
||||
try {
|
||||
response = await $fetch(`/purchase_email/`, {
|
||||
baseURL: config.public.baseURL,
|
||||
method: 'POST',
|
||||
|
||||
Reference in New Issue
Block a user