From 3d8590ba667254e8d0260b60b54fa36c750a6b51 Mon Sep 17 00:00:00 2001 From: Mahdi Date: Sat, 13 Jun 2026 16:43:43 +0330 Subject: [PATCH] edit ios & api --- index.html | 2 +- src/api/business-registrations.ts | 8 +++++++- src/api/business-service-requests.ts | 7 ++++++- src/components/shell/AppShell.vue | 4 ++-- src/layouts/WebAppLayout.vue | 6 +++--- src/styles/main.css | 24 ++++++++++++++++++++++++ src/utils/service-pricing.ts | 11 +++++------ 7 files changed, 48 insertions(+), 14 deletions(-) diff --git a/index.html b/index.html index 3bcf9b6..8ed07ee 100644 --- a/index.html +++ b/index.html @@ -3,7 +3,7 @@ - + منتایم diff --git a/src/api/business-registrations.ts b/src/api/business-registrations.ts index 5ccc366..b763177 100644 --- a/src/api/business-registrations.ts +++ b/src/api/business-registrations.ts @@ -11,6 +11,12 @@ export function fetchMyBusinessRegistrations() { export function submitBusinessRegistration(payload: CreateBusinessRegistrationPayload) { return api('/business-registration-requests', { method: 'POST', - body: JSON.stringify(payload), + body: JSON.stringify({ + title: payload.businessTitle, + categoryId: payload.categoryId, + description: payload.description, + address: payload.address, + contactPhone: payload.phone, + }), }); } diff --git a/src/api/business-service-requests.ts b/src/api/business-service-requests.ts index d7f14c7..e68299c 100644 --- a/src/api/business-service-requests.ts +++ b/src/api/business-service-requests.ts @@ -11,6 +11,11 @@ export function fetchMyServiceRequests() { export function createServiceRequest(payload: CreateBusinessServiceRequestPayload) { return api('/business-service-requests', { method: 'POST', - body: JSON.stringify(payload), + body: JSON.stringify({ + title: payload.title, + description: payload.description, + price: payload.price, + durationMinutes: payload.durationMinutes, + }), }); } diff --git a/src/components/shell/AppShell.vue b/src/components/shell/AppShell.vue index 953a35a..019664e 100644 --- a/src/components/shell/AppShell.vue +++ b/src/components/shell/AppShell.vue @@ -1,7 +1,7 @@