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