From 6ea8f2e7bc7490261c7b0b76c7261be0701f0ac1 Mon Sep 17 00:00:00 2001 From: "Ray.Hao" <1490493387@qq.com> Date: Sat, 7 Mar 2026 19:10:16 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E6=9C=89=E6=9D=A5?= =?UTF-8?q?=E6=8A=80=E6=9C=AF=E5=85=AC=E4=BC=97=E5=8F=B7=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E5=8F=8A=E7=9B=B8=E5=85=B3=E5=8A=9F=E8=83=BD=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 4 +- src/api/auth.ts | 2 +- src/pages.json | 10 +- src/pages/index/index.vue | 83 ++++-- src/pages/login/index.vue | 42 ++- src/pages/mine/index.vue | 445 ++++++++++++------------------ src/pages/mine/official/index.vue | 108 ++++++++ src/pages/mine/settings/index.vue | 27 -- src/types/uni-pages.d.ts | 1 + 9 files changed, 386 insertions(+), 336 deletions(-) create mode 100644 src/pages/mine/official/index.vue diff --git a/.env.development b/.env.development index 94d18c7..c2a791b 100644 --- a/.env.development +++ b/.env.development @@ -7,8 +7,8 @@ VITE_APP_PORT = 4096 VITE_APP_BASE_API = '/dev-api' # API 服务器的 URL -VITE_APP_API_URL = http://localhost:8000 -# VITE_APP_API_URL = https://api.youlai.tech +# VITE_APP_API_URL = http://localhost:8000 +VITE_APP_API_URL = https://api.youlai.tech # WebSocket 服务器的 URL,不配置默认关闭 WebSocket #VITE_APP_WS_ENDPOINT= ws://localhost:4096/ws \ No newline at end of file diff --git a/src/api/auth.ts b/src/api/auth.ts index 1024d55..cf2fa64 100644 --- a/src/api/auth.ts +++ b/src/api/auth.ts @@ -158,7 +158,7 @@ const AuthAPI = { logout(): Promise { return request({ url: `${AUTH_BASE_URL}/logout`, - method: "POST", + method: "DELETE", }); }, diff --git a/src/pages.json b/src/pages.json index ccfbe8a..2b010f7 100644 --- a/src/pages.json +++ b/src/pages.json @@ -14,7 +14,7 @@ "type": "page", "name": "login", "style": { - "navigationBarTitleText": "登录" + "navigationStyle": "custom", } }, { @@ -54,6 +54,14 @@ "requireAuth": true } }, + { + "path": "pages/mine/official/index", + "type": "page", + "name": "official", + "style": { + "navigationBarTitleText": "有来技术" + } + }, { "path": "pages/mine/profile/complete-profile", "type": "page" diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index ac7f0d1..b165874 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -1,29 +1,19 @@