feat: 删除发现页、添加隐私授权、修复头像上传
This commit is contained in:
@@ -374,7 +374,6 @@ export default class HomeScene extends BaseScene {
|
||||
|
||||
const tabs = [
|
||||
{ icon: '🏠', label: '首页' },
|
||||
{ icon: '🔥', label: '发现' },
|
||||
{ icon: '✨', label: '创作' },
|
||||
{ icon: '👤', label: '我的' }
|
||||
];
|
||||
@@ -395,7 +394,7 @@ export default class HomeScene extends BaseScene {
|
||||
ctx.fill();
|
||||
}
|
||||
|
||||
ctx.font = index === 2 ? '24px sans-serif' : '20px sans-serif';
|
||||
ctx.font = index === 1 ? '24px sans-serif' : '20px sans-serif';
|
||||
ctx.textAlign = 'center';
|
||||
ctx.fillText(tab.icon, centerX, y + 28);
|
||||
|
||||
@@ -503,7 +502,7 @@ export default class HomeScene extends BaseScene {
|
||||
|
||||
// 底部Tab点击
|
||||
if (y > this.screenHeight - 60) {
|
||||
const tabW = this.screenWidth / 4;
|
||||
const tabW = this.screenWidth / 3; // 3个Tab
|
||||
const tabIndex = Math.floor(x / tabW);
|
||||
this.handleBottomTabClick(tabIndex);
|
||||
return;
|
||||
@@ -551,14 +550,12 @@ export default class HomeScene extends BaseScene {
|
||||
if (tabIndex === this.bottomTab && tabIndex === 0) return;
|
||||
|
||||
if (tabIndex === 0) {
|
||||
// 首页
|
||||
this.bottomTab = 0;
|
||||
} else if (tabIndex === 1) {
|
||||
// 发现页(可跳转或在本页切换)
|
||||
this.bottomTab = 1;
|
||||
} else if (tabIndex === 2) {
|
||||
// 创作页
|
||||
this.main.sceneManager.switchScene('aiCreate');
|
||||
} else if (tabIndex === 3) {
|
||||
} else if (tabIndex === 2) {
|
||||
// 我的
|
||||
this.main.sceneManager.switchScene('profile');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user