Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
mlaj
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2025-06-13 14:53:40 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
791133cf1138a8cc8a57f54c3f3e413d413928f7
791133cf
1 parent
623aaee6
refactor(profile): 修正菜单项变量名并重构为响应式引用
feat(nav): 将底部导航"空间"改为"活动"并更新跳转链接
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
10 deletions
src/components/layout/BottomNav.vue
src/views/profile/ProfilePage.vue
src/components/layout/BottomNav.vue
View file @
791133c
<!--
* @Date: 2025-03-20 20:36:36
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-06-1
0 15:27:23
* @LastEditTime: 2025-06-1
3 14:53:20
* @FilePath: /mlaj/src/components/layout/BottomNav.vue
* @Description: 文件描述
-->
...
...
@@ -58,9 +58,10 @@ const navItems = [
icon: '<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18c-1.746 0-3.332.477-4.5 1.253" />'
},
{
name: '空间',
path: '/community',
icon: '<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z" />'
name: '活动',
path: '/activity',
// icon: '<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z" />'
icon: '<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 10h18M7 15h1m4 0h1m-7 4h12a3 3 0 003-3V8a3 3 0 00-3-3H6a3 3 0 00-3 3v8a3 3 0 003 3z" />'
},
{
name: '我的',
...
...
@@ -74,9 +75,9 @@ const isActive = (path) => {
}
const handleNavClick = (item) => {
if (item.path === '/
commun
ity') {
showToast('功能暂未开放')
// window.open('https://community.mlaj.com
', '_blank')
if (item.path === '/
activ
ity') {
//
showToast('功能暂未开放')
window.open('https://wxm.behalo.cc/pages/activity/activity
', '_blank')
return
}
if (item.path === '/profile' && !currentUser.value) {
...
...
src/views/profile/ProfilePage.vue
View file @
791133c
...
...
@@ -144,7 +144,7 @@ onMounted(async () => {
profile.value = data.user;
checkIns.value = data.checkin;
// 处理消息中心的未读消息数量
menuItems
3
.value.forEach(item => {
menuItems
2
.value.forEach(item => {
if (item.path === '/profile/messages') {
item.badge = +data.unread_msg_count || 0;
}
...
...
@@ -258,7 +258,7 @@ const menuItems1 = [
},
];
const menuItems2 = [
const menuItems2 =
ref(
[
// {
// icon: "wallet",
// title: "我的钱包",
...
...
@@ -280,7 +280,7 @@ const menuItems2 = [
path: "/profile/messages",
badge: "",
},
];
]
)
;
const menuItems3 = ref([
{
...
...
Please
register
or
login
to post a comment