删除埋点,im和客服
This commit is contained in:
@@ -1,12 +1,9 @@
|
||||
import 'package:analytics_sdk/analytics_sdk.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:jydj/assets_tool/images.dart';
|
||||
import 'package:jydj/hj_page/main_page/provider/bottom_bar_provider.dart';
|
||||
import 'package:jydj/hj_page/pre_sale/pre_sale_provider.dart';
|
||||
import 'package:jydj/hj_utils/holiday_theme.dart';
|
||||
import 'package:jydj/hj_utils/screen.dart';
|
||||
import 'package:jydj/im_manager/im_notification.dart';
|
||||
import 'package:jydj/tools_base/widget/net_image_widget.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
|
||||
@@ -42,11 +39,6 @@ class MainPageTabbar extends StatelessWidget {
|
||||
if (index == logic.tabs.length - 1 && Get.isRegistered<MineMainLogic>()) {
|
||||
Get.find<MineMainLogic>().onRefresh();
|
||||
}
|
||||
// 用户点击底部 Tab 时调用,应早于页面切换完成
|
||||
AnalyticsSdk.instance.trackNavigation(
|
||||
pageKey: logic.tabs[index].trackKey, // 'Home'
|
||||
pageName: logic.tabs[index].title, // '主页'
|
||||
);
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -96,7 +88,7 @@ class MainPageTabbar extends StatelessWidget {
|
||||
});
|
||||
}
|
||||
|
||||
/// 普通 tab;最后一个(我的)带私信未读小红点
|
||||
/// 普通 tab
|
||||
Widget _normalItem(int index, int cur) {
|
||||
final isSelected = index == cur;
|
||||
final imagePath = _iconPath(index, isSelected);
|
||||
@@ -104,32 +96,10 @@ class MainPageTabbar extends StatelessWidget {
|
||||
child: InkWell(
|
||||
enableFeedback: false,
|
||||
onTap: () => _selectIndex(index),
|
||||
child: Stack(
|
||||
children: [
|
||||
_tabContent(
|
||||
isSelected: isSelected,
|
||||
text: logic.tabs[index].title,
|
||||
icon: Image.asset(imagePath, key: ValueKey(imagePath), width: 24),
|
||||
),
|
||||
if (index == logic.tabs.length - 1)
|
||||
Consumer<ImMsgProvider>(
|
||||
builder: (_, imPro, __) {
|
||||
if (!imPro.hasUnreadCount) return const SizedBox.shrink();
|
||||
return Positioned(
|
||||
right: 22,
|
||||
top: 24,
|
||||
child: Container(
|
||||
width: 8,
|
||||
height: 8,
|
||||
decoration: BoxDecoration(
|
||||
color: Color(0xfff74f49),
|
||||
borderRadius: BorderRadius.all(Radius.circular(6)),
|
||||
),
|
||||
),
|
||||
);
|
||||
},
|
||||
),
|
||||
],
|
||||
child: _tabContent(
|
||||
isSelected: isSelected,
|
||||
text: logic.tabs[index].title,
|
||||
icon: Image.asset(imagePath, key: ValueKey(imagePath), width: 24),
|
||||
),
|
||||
),
|
||||
);
|
||||
@@ -153,7 +123,7 @@ class MainPageTabbar extends StatelessWidget {
|
||||
AnimatedDefaultTextStyle(
|
||||
duration: const Duration(milliseconds: 200),
|
||||
style: TextStyle(
|
||||
color: isSelected ? HolidayTheme.theme.tabSelColor : HolidayTheme.theme.tabNorColor,
|
||||
color: isSelected ? const Color(0xffFFC000) : const Color(0x59FFFFFF),
|
||||
fontSize: 10,
|
||||
),
|
||||
child: Text(text),
|
||||
|
||||
Reference in New Issue
Block a user