|
|
@@ -51,21 +51,25 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
- <div class="font16 fontbold text-text q-mx-md" style="white-space: nowrap;">
|
|
|
+ <!-- <div class="font16 fontbold text-text q-mx-md" style="white-space: nowrap;">
|
|
|
{{ type.price != null ? formatPrice(type.price) : $t('scheduling_page.no_price') }}
|
|
|
- </div>
|
|
|
+ </div> -->
|
|
|
|
|
|
<div class="row no-wrap q-gutter-x-xs">
|
|
|
- <q-btn
|
|
|
+ <q-btn
|
|
|
color="secondary"
|
|
|
no-caps
|
|
|
- padding="2px 12px"
|
|
|
+ padding="2px 16px"
|
|
|
rounded
|
|
|
- size="md"
|
|
|
+ size="sm"
|
|
|
unelevated
|
|
|
- :disable="type.price == null"
|
|
|
- :label="$t('scheduling_page.book')"
|
|
|
- @click="onDialogOK({ action: 'cart', serviceType: type, date: selectedDate, provider })"
|
|
|
+ :label="$t('common.actions.select')"
|
|
|
+ @click="onDialogOK({
|
|
|
+ action: 'cart',
|
|
|
+ serviceType: type,
|
|
|
+ date: selectedDate,
|
|
|
+ provider
|
|
|
+ })"
|
|
|
/>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -130,8 +134,7 @@ const availableServiceTypes = computed(() =>
|
|
|
].filter(type => hasValidSlots(type.hoursCount))
|
|
|
);
|
|
|
|
|
|
-const formatPrice = (value) =>
|
|
|
- Number(value).toLocaleString('pt-BR', { style: 'currency', currency: 'BRL' });
|
|
|
+// const formatPrice = (value) =>Number(value).toLocaleString('pt-BR', { style: 'currency', currency: 'BRL' });
|
|
|
|
|
|
const hasValidSlots = (hoursCount) => {
|
|
|
for (let s = 7; s + hoursCount <= 20; s++) {
|