feat:修改菜单路由

This commit is contained in:
zerosaturation 2026-06-02 16:57:54 +08:00
parent 3c7960e1c5
commit a7854a4fe7
9 changed files with 20 additions and 20 deletions

View File

@ -523,7 +523,7 @@ const handleTabChange = (newTab) => {
'/pages/starbook/index', '/pages/starbook/index',
'/pages/castlove/mall', '/pages/castlove/mall',
'/pages/starcity/index', '/pages/starcity/index',
'/pages/square/square' '/pages/profile/myWorks'
]; ];
if (newTab >= 0 && newTab < routes.length) { if (newTab >= 0 && newTab < routes.length) {

View File

@ -72,7 +72,7 @@ const navItems = [
name: '广场', name: '广场',
icon: '/static/icon/square.png', icon: '/static/icon/square.png',
angle: 57, // angle: 57, //
path: '/pages/square/square' path: '/pages/profile/myWorks'
} }
]; ];

View File

@ -436,13 +436,13 @@ const handleAvatarClick = () => {
if (pages.length > 0) { if (pages.length > 0) {
const currentPage = pages[pages.length - 1]; const currentPage = pages[pages.length - 1];
// //
if (currentPage.route === "pages/profile/myWorks") { if (currentPage.route === "pages/profile/profile") {
// //
return; return;
} }
} }
uni.navigateTo({ uni.navigateTo({
url: "/pages/profile/myWorks", url: "/pages/profile/profile",
}); });
}; };

View File

@ -24,7 +24,7 @@ const handleTabChange = (newTab) => {
'/pages/starbook/index', '/pages/starbook/index',
'/pages/castlove/mall', '/pages/castlove/mall',
'/pages/starcity/index', '/pages/starcity/index',
'/pages/square/square' '/pages/profile/myWorks'
]; ];
if (newTab >= 0 && newTab < routes.length) { if (newTab >= 0 && newTab < routes.length) {

View File

@ -10,9 +10,9 @@
</view> </view>
<!-- <text class="nav-title">我的作品</text> --> <!-- <text class="nav-title">我的作品</text> -->
<view class="nav-placeholder"></view> <view class="nav-placeholder"></view>
<view class="nav-settings" @tap="goToSettings"> <!-- <view class="nav-settings" @tap="goToSettings">
<image class="nav-settings-icon" src="/static/icon/settings.png" mode="aspectFit"></image> <image class="nav-settings-icon" src="/static/icon/settings.png" mode="aspectFit"></image>
</view> </view> -->
</view> </view>
<view class="scroll-content"> <view class="scroll-content">
@ -233,12 +233,12 @@ const goBack = () => {
} }
}; };
const goToSettings = () => { // const goToSettings = () => {
uni.navigateTo({ // uni.navigateTo({
url: '/pages/profile/profile' // url: '/pages/profile/profile'
}); // });
}; // };
const goToCastlove = () => { const goToCastlove = () => {
uni.navigateTo({ uni.navigateTo({

View File

@ -388,17 +388,17 @@ const goToHotCategoryMore = () => {
}; };
const handleTabChange = (newTab) => { const handleTabChange = (newTab) => {
if (newTab === 4) { // if (newTab === 4) {
navExpanded.value = false; // navExpanded.value = false;
return; // return;
} // }
const routes = [ const routes = [
"/pages/ai-dazi/index", "/pages/ai-dazi/index",
"/pages/starbook/index", "/pages/starbook/index",
"/pages/castlove/mall", "/pages/castlove/mall",
"/pages/starcity/index", "/pages/starcity/index",
"/pages/square/square", "/pages/profile/myWorks",
]; ];
if (newTab >= 0 && newTab < routes.length) { if (newTab >= 0 && newTab < routes.length) {

View File

@ -24,7 +24,7 @@ const handleTabChange = (newTab) => {
'/pages/starbook/index', '/pages/starbook/index',
'/pages/castlove/mall', '/pages/castlove/mall',
'/pages/starcity/index', '/pages/starcity/index',
'/pages/square/square' '/pages/profile/myWorks'
]; ];
if (newTab >= 0 && newTab < routes.length) { if (newTab >= 0 && newTab < routes.length) {

View File

@ -24,7 +24,7 @@ const handleTabChange = (newTab) => {
'/pages/starbook/index', '/pages/starbook/index',
'/pages/castlove/mall', '/pages/castlove/mall',
'/pages/starcity/index', '/pages/starcity/index',
'/pages/square/square' '/pages/profile/myWorks'
]; ];
if (newTab >= 0 && newTab < routes.length) { if (newTab >= 0 && newTab < routes.length) {

View File

@ -218,7 +218,7 @@ function handleTabChange(newTab) {
'/pages/starbook/index', // '/pages/starbook/index', //
'/pages/castlove/mall', // '/pages/castlove/mall', //
'/pages/starcity/index', // '/pages/starcity/index', //
'/pages/square/square' // 广 '/pages/profile/myWorks' // 广
] ]
if (newTab >= 0 && newTab < tabRoutes.length) { if (newTab >= 0 && newTab < tabRoutes.length) {