|
|
@@ -72,12 +72,13 @@ class MainTabPage extends BasePage<MainController> {
|
|
|
],
|
|
|
initialActiveIndex: controller.currentIndex,
|
|
|
onTap: (int i) {
|
|
|
+
|
|
|
if (controller.currentIndex != i) {
|
|
|
- if (controller.currentIndex == 0) {
|
|
|
- EventHandler.report(EventId.event_10000);
|
|
|
- } else if (controller.currentIndex == 1) {
|
|
|
+ if (i == 0) {
|
|
|
+ EventHandler.report(EventId.event_10000);
|
|
|
+ } else if (i == 1) {
|
|
|
EventHandler.report(EventId.event_10001);
|
|
|
- } else if (controller.currentIndex == 2) {
|
|
|
+ } else if (i == 2) {
|
|
|
EventHandler.report(EventId.event_10002);
|
|
|
}
|
|
|
controller.changeIndex(i);
|