瀏覽代碼

feat: :sparkles: feat(alinhar opções da oportunidade) Foi remmovido a opção de preço

Foi removido a opção onde mostra o preço quando o cliente finaliza o pedido sobmedida agora aparecendo somente selecionar

fase:dev | rigin:escopo
kayo henrique 3 周之前
父節點
當前提交
02da6344ee
共有 4 個文件被更改,包括 16 次插入10 次删除
  1. 1 0
      src/i18n/locales/en.json
  2. 1 0
      src/i18n/locales/es.json
  3. 1 0
      src/i18n/locales/pt.json
  4. 13 10
      src/pages/search/components/ServiceSelectionSheet.vue

+ 1 - 0
src/i18n/locales/en.json

@@ -6,6 +6,7 @@
       "cancel": "Cancel",
       "edit": "Edit",
       "add": "Add",
+      "select": "Select",
       "search": "Search",
       "delete": "Delete",
       "view": "View",

+ 1 - 0
src/i18n/locales/es.json

@@ -6,6 +6,7 @@
       "cancel": "Cancelar",
       "edit": "Editar",
       "add": "Añadir",
+      "select": "Seleccionar",
       "search": "Buscar",
       "delete": "Eliminar",
       "view": "Ver",

+ 1 - 0
src/i18n/locales/pt.json

@@ -6,6 +6,7 @@
       "cancel": "Cancelar",
       "edit": "Editar",
       "add": "Adicionar",
+      "select": "Selecionar",
       "search": "Buscar",
       "delete": "Excluir",
       "view": "Visualizar",

+ 13 - 10
src/pages/search/components/ServiceSelectionSheet.vue

@@ -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++) {