feat: initial project setup with core infrastructure and api clients

- Add environment configs for dev/staging/prod environments
- Implement centralized axios request utility with standardized error handling
- Add shared TypeScript types for API responses and requests
- Create comprehensive API client modules for all core endpoints
- Configure vue router with all application page routes
- Add icon fonts, static assets, and loading animations
- Set up project documentation and collaboration guidelines
- Remove deprecated uni-app bridge component files
This commit is contained in:
duanshuwen
2026-05-26 21:42:36 +08:00
parent ad93ca5e8e
commit 548df7020c
30 changed files with 1213 additions and 560 deletions

View File

@@ -1,7 +1,63 @@
import { createRouter, createWebHistory } from "vue-router";
import type { RouteRecordRaw } from "vue-router";
export const routes = [] satisfies RouteRecordRaw[];
export const routes = [
{
path: "/",
name: "home",
component: () => import("@/pages/home/index.vue"),
},
{
path: "/home",
name: "home_alias",
component: () => import("@/pages/home/index.vue"),
},
{
path: "/login",
name: "login",
component: () => import("@/pages/login/index.vue"),
},
{
path: "/booking",
name: "booking",
component: () => import("@/pages/booking/index.vue"),
},
{
path: "/goods",
name: "goods",
component: () => import("@/pages/goods/index.vue"),
},
{
path: "/goods/album",
name: "goods_album",
component: () => import("@/pages/goods/album/index.vue"),
},
{
path: "/quick",
name: "quick",
component: () => import("@/pages/quick/index.vue"),
},
{
path: "/quick/list",
name: "quick_list",
component: () => import("@/pages/quick/list.vue"),
},
{
path: "/order",
name: "order_list",
component: () => import("@/pages/order/order/list.vue"),
},
{
path: "/order/detail",
name: "order_detail",
component: () => import("@/pages/order/order/detail.vue"),
},
{
path: "/service/order",
name: "service_order",
component: () => import("@/pages/service/order/index.vue"),
},
] satisfies RouteRecordRaw[];
export const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),