首屏展示修改
This commit is contained in:
@@ -24,7 +24,6 @@ import '../home/home_main_logic.dart';
|
||||
import '../home/provider/home_update_marker_provider.dart';
|
||||
import '../mine/mine_vip/vip_product_manager.dart';
|
||||
import '../short_video/short_main_video_logic.dart';
|
||||
import 'drama_tip_bubble.dart';
|
||||
import 'main_page.dart';
|
||||
import 'provider/msg_provider.dart';
|
||||
|
||||
@@ -65,7 +64,7 @@ class MainPageLogic extends GetxController {
|
||||
imageSel: 'home_0_1.png'.homePath,
|
||||
),
|
||||
MainTabModel(
|
||||
title: '短剧',
|
||||
title: '抖音',
|
||||
imageNor: 'home_1_0.png'.homePath,
|
||||
imageSel: 'home_1_1.png'.homePath,
|
||||
),
|
||||
@@ -94,8 +93,8 @@ class MainPageLogic extends GetxController {
|
||||
];
|
||||
|
||||
/// 当前底部 tab 下标:内容页(LazyIndexedStack)和底栏选中态的唯一真相源。
|
||||
/// 启动固定落在短剧
|
||||
final curPageIndex = DramaTipBubble.dramaTab.obs;
|
||||
/// 启动固定落在主页
|
||||
final curPageIndex = 0.obs;
|
||||
|
||||
final shortIndex = (-1).obs; // -1 = 用短剧频道的默认页(AI短剧)
|
||||
final darkInitTabId = Rx<String?>(null); // 暗网默认亚模块 id
|
||||
@@ -123,9 +122,6 @@ class MainPageLogic extends GetxController {
|
||||
MineMsgProvider().loadData();
|
||||
HomeUpdateMarkerProvider().loadData();
|
||||
|
||||
//启动就落在短剧:引导气泡不该再亮(这里早于 DramaTipBubble.start 的读盘)
|
||||
if (curPageIndex.value == DramaTipBubble.dramaTab) DramaTipBubble.hide();
|
||||
|
||||
_yinseSub = eventBus.on<YinseinnerModel>(_onYinse);
|
||||
_loginSub = eventBus.on<ReLoginEvent>(_onReLogin);
|
||||
|
||||
@@ -309,7 +305,6 @@ class MainPageLogic extends GetxController {
|
||||
/// 切 tab:内容页和底栏选中态都监听 curPageIndex,改它一处即可
|
||||
void jumpToPage(int index) {
|
||||
curPageIndex.value = index;
|
||||
if (index == DramaTipBubble.dramaTab) DramaTipBubble.hide(); //进了短剧就别再指着它
|
||||
}
|
||||
|
||||
/// 双击返回退出:2 秒内连按两次返回键才真正退出
|
||||
|
||||
Reference in New Issue
Block a user