feat:修改菜单路由
This commit is contained in:
parent
3c7960e1c5
commit
a7854a4fe7
@ -523,7 +523,7 @@ const handleTabChange = (newTab) => {
|
||||
'/pages/starbook/index',
|
||||
'/pages/castlove/mall',
|
||||
'/pages/starcity/index',
|
||||
'/pages/square/square'
|
||||
'/pages/profile/myWorks'
|
||||
];
|
||||
|
||||
if (newTab >= 0 && newTab < routes.length) {
|
||||
|
||||
@ -72,7 +72,7 @@ const navItems = [
|
||||
name: '广场',
|
||||
icon: '/static/icon/square.png',
|
||||
angle: 57, // 右下方
|
||||
path: '/pages/square/square'
|
||||
path: '/pages/profile/myWorks'
|
||||
}
|
||||
];
|
||||
|
||||
|
||||
@ -436,13 +436,13 @@ const handleAvatarClick = () => {
|
||||
if (pages.length > 0) {
|
||||
const currentPage = pages[pages.length - 1];
|
||||
// 检查当前页面是否是个人信息页面
|
||||
if (currentPage.route === "pages/profile/myWorks") {
|
||||
if (currentPage.route === "pages/profile/profile") {
|
||||
// 已经在个人信息页面,不执行跳转
|
||||
return;
|
||||
}
|
||||
}
|
||||
uni.navigateTo({
|
||||
url: "/pages/profile/myWorks",
|
||||
url: "/pages/profile/profile",
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
@ -24,7 +24,7 @@ const handleTabChange = (newTab) => {
|
||||
'/pages/starbook/index',
|
||||
'/pages/castlove/mall',
|
||||
'/pages/starcity/index',
|
||||
'/pages/square/square'
|
||||
'/pages/profile/myWorks'
|
||||
];
|
||||
|
||||
if (newTab >= 0 && newTab < routes.length) {
|
||||
|
||||
@ -10,9 +10,9 @@
|
||||
</view>
|
||||
<!-- <text class="nav-title">我的作品</text> -->
|
||||
<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>
|
||||
</view>
|
||||
</view> -->
|
||||
</view>
|
||||
|
||||
<view class="scroll-content">
|
||||
@ -233,12 +233,12 @@ const goBack = () => {
|
||||
}
|
||||
};
|
||||
|
||||
const goToSettings = () => {
|
||||
// const goToSettings = () => {
|
||||
|
||||
uni.navigateTo({
|
||||
url: '/pages/profile/profile'
|
||||
});
|
||||
};
|
||||
// uni.navigateTo({
|
||||
// url: '/pages/profile/profile'
|
||||
// });
|
||||
// };
|
||||
|
||||
const goToCastlove = () => {
|
||||
uni.navigateTo({
|
||||
|
||||
@ -388,17 +388,17 @@ const goToHotCategoryMore = () => {
|
||||
};
|
||||
|
||||
const handleTabChange = (newTab) => {
|
||||
if (newTab === 4) {
|
||||
navExpanded.value = false;
|
||||
return;
|
||||
}
|
||||
// if (newTab === 4) {
|
||||
// navExpanded.value = false;
|
||||
// return;
|
||||
// }
|
||||
|
||||
const routes = [
|
||||
"/pages/ai-dazi/index",
|
||||
"/pages/starbook/index",
|
||||
"/pages/castlove/mall",
|
||||
"/pages/starcity/index",
|
||||
"/pages/square/square",
|
||||
"/pages/profile/myWorks",
|
||||
];
|
||||
|
||||
if (newTab >= 0 && newTab < routes.length) {
|
||||
|
||||
@ -24,7 +24,7 @@ const handleTabChange = (newTab) => {
|
||||
'/pages/starbook/index',
|
||||
'/pages/castlove/mall',
|
||||
'/pages/starcity/index',
|
||||
'/pages/square/square'
|
||||
'/pages/profile/myWorks'
|
||||
];
|
||||
|
||||
if (newTab >= 0 && newTab < routes.length) {
|
||||
|
||||
@ -24,7 +24,7 @@ const handleTabChange = (newTab) => {
|
||||
'/pages/starbook/index',
|
||||
'/pages/castlove/mall',
|
||||
'/pages/starcity/index',
|
||||
'/pages/square/square'
|
||||
'/pages/profile/myWorks'
|
||||
];
|
||||
|
||||
if (newTab >= 0 && newTab < routes.length) {
|
||||
|
||||
@ -218,7 +218,7 @@ function handleTabChange(newTab) {
|
||||
'/pages/starbook/index', // 星册
|
||||
'/pages/castlove/mall', // 铸爱
|
||||
'/pages/starcity/index', // 星城
|
||||
'/pages/square/square' // 广场
|
||||
'/pages/profile/myWorks' // 广场
|
||||
]
|
||||
|
||||
if (newTab >= 0 && newTab < tabRoutes.length) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user