|
|
@@ -5,9 +5,11 @@ import 'package:keyboard/base/base_controller.dart';
|
|
|
import '../../data/api/response/user_info_response.dart';
|
|
|
import '../../data/api/response/zodiac_love_intimacy_love_info_response.dart';
|
|
|
import '../../data/consts/error_code.dart';
|
|
|
+import '../../data/consts/event_report.dart';
|
|
|
import '../../data/repository/account_repository.dart';
|
|
|
import '../../data/repository/zodiac_love_intimacy_repository.dart';
|
|
|
import '../../dialog/login/login_dialog.dart';
|
|
|
+import '../../handler/event_handler.dart';
|
|
|
import '../../resource/string.gen.dart';
|
|
|
import '../../router/app_page_arguments.dart';
|
|
|
import '../../utils/age_zodiac_sign_util.dart';
|
|
|
@@ -112,6 +114,20 @@ class ZodiacLoveIntimacyController extends BaseController
|
|
|
vsync: this,
|
|
|
);
|
|
|
currentTabIndex.value = tab.tabIndex;
|
|
|
+
|
|
|
+ if (tab.tabIndex == ZodiacLoveIntimacyTab.today.tabIndex) {
|
|
|
+ EventHandler.report(EventId.event_08001);
|
|
|
+ } else if (tab.tabIndex == ZodiacLoveIntimacyTab.futureWeek.tabIndex) {
|
|
|
+ EventHandler.report(EventId.event_08002);
|
|
|
+ }
|
|
|
+ currentTabIndex.listen((index) {
|
|
|
+ if(index==ZodiacLoveIntimacyTab.today.tabIndex) {
|
|
|
+ EventHandler.report(EventId.event_08001);
|
|
|
+ }
|
|
|
+ else if(index==ZodiacLoveIntimacyTab.futureWeek.tabIndex) {
|
|
|
+ EventHandler.report(EventId.event_08002);
|
|
|
+ }
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
/// 返回
|