ameliabooking
/
v3
/
src
/
views
/
public
/
StepForm
/
Congratulations
/
parts
/
CartInfoService.vue
AppointmentInfoService.vue
1 month ago
CartInfoService.vue
1 month ago
PackageInfoService.vue
1 month ago
CartInfoService.vue
27 lines
| 1 | <template> |
| 2 | <div class="am-fs__congrats-info-cart"> |
| 3 | <span>{{ amLabels.congrats_cart }}:</span> |
| 4 | <span>{{ cart.length }}</span> |
| 5 | </div> |
| 6 | </template> |
| 7 | |
| 8 | <script setup> |
| 9 | import { computed, inject } from 'vue' |
| 10 | import { useStore } from 'vuex' |
| 11 | import { useCart } from '../../../../../assets/js/public/cart' |
| 12 | |
| 13 | const store = useStore() |
| 14 | |
| 15 | const amLabels = inject('amLabels') |
| 16 | |
| 17 | let cart = computed(() => useCart(store).filter((i) => i.serviceId && i.serviceId in i.services)) |
| 18 | </script> |
| 19 | |
| 20 | <script> |
| 21 | export default { |
| 22 | name: 'CartInfoService', |
| 23 | } |
| 24 | </script> |
| 25 | |
| 26 | <style lang="scss"></style> |
| 27 |