diff --git a/.env.development b/.env.development index 8835c5c..ac161a7 100644 --- a/.env.development +++ b/.env.development @@ -1,7 +1,7 @@ # 变量必须以 VITE_ 为前缀才能暴露给外部读取 # 项目运行的端口号 -VITE_APP_PORT = 4396 +VITE_APP_PORT = 4096 # API 基础路径,开发环境下的请求前缀 VITE_APP_BASE_API = '/dev-api' diff --git a/src/pages.json b/src/pages.json index 3de8069..d5f4381 100644 --- a/src/pages.json +++ b/src/pages.json @@ -30,6 +30,12 @@ "style": { "navigationBarTitleText": "登录" } + }, + { + "path": "pages/mine/profile/index", + "style": { + "navigationBarTitleText": "个人资料" + } } ], "globalStyle": { diff --git a/src/pages/mine/index.vue b/src/pages/mine/index.vue index 3aa59d3..f0b9401 100644 --- a/src/pages/mine/index.vue +++ b/src/pages/mine/index.vue @@ -7,13 +7,18 @@ class="w-100rpx h-100rpx rounded-full" :src="isLogin ? userInfo!.avatar : defaultAvatar" /> - {{ - isLogin ? userInfo!.nickname : "您还未登录,请先登录" - }} + + {{ userInfo!.nickname }} + + 您还未登录,请先 登录 + + - 个人信息 - 去登录 + + 个人信息 + @@ -36,7 +41,7 @@ - + @@ -65,7 +70,7 @@ const goToLoginPage = () => { }; const goToProfile = () => { - uni.navigateTo({ url: "/pages/profile/index" }); + uni.navigateTo({ url: "/pages/mine/profile/index" }); }; const goToEditProfile = () => { uni.navigateTo({ url: "/pages/edit-profile/index" }); @@ -88,9 +93,14 @@ const handleLogout = () => { diff --git a/src/pages/work/user/index.vue b/src/pages/work/user/index.vue new file mode 100644 index 0000000..eb3136b --- /dev/null +++ b/src/pages/work/user/index.vue @@ -0,0 +1,14 @@ + + + + diff --git a/src/static/images/default-avatar.png b/src/static/images/default-avatar.png index d62f89c..4906c08 100644 Binary files a/src/static/images/default-avatar.png and b/src/static/images/default-avatar.png differ diff --git a/src/static/tabbar/mine-active.png b/src/static/tabbar/mine-active.png index 68b7dea..d529964 100644 Binary files a/src/static/tabbar/mine-active.png and b/src/static/tabbar/mine-active.png differ diff --git a/src/static/tabbar/mine.png b/src/static/tabbar/mine.png index 3130017..98e1914 100644 Binary files a/src/static/tabbar/mine.png and b/src/static/tabbar/mine.png differ