2 Commits

Author SHA1 Message Date
xiaomai
d151bd78ca refactor(config): simplify service definitions with factory functions
Refactored the service configuration to reduce code duplication and separate data from logic.

- Created a shared `useWhatsappMsgSender` composable to handle WhatsApp URL generation and opening.
- Introduced `createService` and `createPlan` helper functions to programmatically add button actions.
- This eliminates the need to manually define `onClick` handlers for every pricing plan, making the service data purely declarative and easier to maintain.
2025-10-22 09:10:47 +08:00
xiaomai
20f1775eaf refactor(pricing): extract web development services to a config file
Moved all web development service and pricing plan data from `web-design/index.vue` to a new `config/web-dev-services.ts` file.

- Centralizes service definitions for easier maintenance and scalability.
- Simplifies the `web-design` page by making it data-driven.
- Replaces static links with dynamic `onClick` handlers that generate a pre-filled WhatsApp message for inquiries.
2025-10-21 17:27:07 +08:00