删除埋点,im和客服

This commit is contained in:
谢宇宁
2026-10-08 20:10:40 +07:00
parent 92816047c6
commit 5064de7399
133 changed files with 220 additions and 1405 deletions
@@ -1,12 +1,8 @@
import 'package:flutter/widgets.dart';
import 'package:get/get.dart';
import 'package:jydj/hj_model/drama_media_info.dart';
import 'package:jydj/hj_utils/api_service/acg_service.dart';
import 'package:jydj/tools_base/debug_log.dart';
import 'package:pull_to_refresh/pull_to_refresh.dart';
import '../../../hj_model/home/module_detail_model.dart';
import '../../../hj_model/home/plate_model.dart';
import '../../../hj_utils/api_service/vid_service.dart';
import 'home_tab_base_logic.dart';
@@ -1,7 +1,6 @@
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:jydj/tools_base/loading/loading_center_widget.dart';
import 'package:jydj/track_event_manager/track_manager.dart';
import '../../../hj_model/home/plate_model.dart';
import '../../../hj_model/home/module_detail_model.dart';
@@ -51,10 +50,6 @@ class _HomeTabSectionPageState extends State<HomeTabSectionPage> with UniqueTagM
4,
autoStyle: true,
padding: EdgeInsets.fromLTRB(12, 0, 12, 12),
exposureModel: AdExposureModel(
pageType: widget.isDarkStyle ? TrackEventPageType.darkweb : TrackEventPageType.home,
tabIndex: widget.tabIndex,
),
),
),
SliverToBoxAdapter(child: QuickEntryRow(widget.tabModel)),
@@ -95,10 +90,6 @@ class _HomeTabSectionPageState extends State<HomeTabSectionPage> with UniqueTagM
-1,
ads: section.adsInfoArr ?? [],
padding: EdgeInsets.fromLTRB(12, 0, 12, 16),
exposureModel: AdExposureModel(
pageType: widget.isDarkStyle ? TrackEventPageType.darkweb : TrackEventPageType.home,
tabIndex: widget.tabIndex * 100 + index,
),
);
} else if (logic.lastIsGuessLike && index == logic.allSection.length - 1) {
return SizedBox(); // 最后一个猜你喜欢列表单独处理
@@ -12,7 +12,6 @@ import '../../../hj_model/video_model.dart';
import '../../../hj_utils/sliver_delegate.dart';
import '../../../tools_base/banner/ads_grid_view.dart';
import '../../../tools_base/refresh/pull_refresh.dart';
import '../../../track_event_manager/track_manager.dart';
import '../../cartoon/acg_widget_item.dart';
import '../home_cell_style/quick_entry_row.dart';
import '../home_cell_style/video_simple_cell.dart';
@@ -61,10 +60,6 @@ class _HomeTabSortPageState extends State<HomeTabSortPage> with UniqueTagMixin {
4,
autoStyle: true,
padding: EdgeInsets.fromLTRB(12, 0, 12, 12),
exposureModel: AdExposureModel(
pageType: widget.isDarkStyle ? TrackEventPageType.darkweb : TrackEventPageType.home,
tabIndex: widget.tabIndex,
),
),
),
SliverToBoxAdapter(child: QuickEntryRow(widget.tabModel)),
@@ -96,9 +91,11 @@ class _HomeTabSortPageState extends State<HomeTabSortPage> with UniqueTagMixin {
},
child: Obx(
() {
//非暗网风格也要读一次:Obx 读不到可观察变量会抛 improper use of a GetX
final isInTop = logic.isSortMenuInTop.value;
Color? bgColor;
if (widget.isDarkStyle) {
if (logic.isSortMenuInTop.value) {
if (isInTop) {
bgColor = Colors.transparent;
} else {
bgColor = Colors.black;
@@ -108,7 +105,6 @@ class _HomeTabSortPageState extends State<HomeTabSortPage> with UniqueTagMixin {
isLatest: logic.isNewestStyle,
labelPadding: const EdgeInsets.symmetric(horizontal: 10),
tabs: logic.isNewestStyle ? logic.lastestSortTitles : logic.sortTitles,
isPinned: !logic.isSortMenuInTop.value,
bgColor: bgColor,
onSort: logic.sortMenuEvent,
rightWidget: logic.isNewestStyle ? null : _buildSortStyleMenu(logic),
@@ -222,10 +218,6 @@ class _HomeTabSortPageState extends State<HomeTabSortPage> with UniqueTagMixin {
child: VideoSimpleCell(
videoModel: videoModel,
textLines: logic.isGridStyle.value ? 2 : 1,
exposureModel: AdExposureModel(
pageType: widget.isDarkStyle ? TrackEventPageType.darkweb : TrackEventPageType.home,
tabIndex: widget.tabIndex * 100 + index,
),
),
);
},
@@ -260,10 +252,6 @@ class _HomeTabSortPageState extends State<HomeTabSortPage> with UniqueTagMixin {
VideoModel videoModel = subList[index];
return VideoSimpleCell(
videoModel: videoModel,
exposureModel: AdExposureModel(
pageType: widget.isDarkStyle ? TrackEventPageType.darkweb : TrackEventPageType.home,
tabIndex: widget.tabIndex * 100 + i * gapValue + index,
),
);
},
childCount: subList.length,
@@ -300,10 +288,6 @@ class _HomeTabSortPageState extends State<HomeTabSortPage> with UniqueTagMixin {
VideoModel videoModel = subList[index];
return VideoSimpleCell(
videoModel: videoModel,
exposureModel: AdExposureModel(
pageType: widget.isDarkStyle ? TrackEventPageType.darkweb : TrackEventPageType.home,
tabIndex: widget.tabIndex * 100 + allIndex * gapValue + index,
),
);
},
childCount: subList.length,
@@ -1,7 +1,6 @@
import 'package:flutter/material.dart';
import 'package:jydj/assets_tool/app_colors.dart';
import 'package:jydj/hj_page/home/provider/home_update_marker_provider.dart';
import 'package:jydj/hj_utils/holiday_theme.dart';
import 'package:provider/provider.dart';
/// 首页模块的排序切换栏(热门推荐 / 最新上架 / ...)
@@ -10,7 +9,6 @@ class HomeSortHeader extends StatefulWidget {
final ValueChanged<int> onSort;
final List<String>? tabs;
final EdgeInsets? labelPadding;
final bool isPinned; //已吸顶:节日主题下只有吸顶才铺底色,未吸顶保持透明露出节日背景图
final Widget? rightWidget;
final Color? bgColor;
final bool isLatest;
@@ -20,7 +18,6 @@ class HomeSortHeader extends StatefulWidget {
required this.onSort,
this.tabs,
this.labelPadding,
this.isPinned = false,
this.rightWidget,
this.bgColor,
this.isLatest = false,
@@ -45,12 +42,9 @@ class _HomeSortHeaderState extends State<HomeSortHeader> with SingleTickerProvid
if (widget.isLatest) {
return _buildNewsetsStyle();
}else {
final showBg = !holidayTheme.openHoliday || widget.isPinned;
return Container(
height: 38,
color: showBg ? (widget.bgColor ?? Theme
.of(context)
.scaffoldBackgroundColor) : Colors.transparent,
color: widget.bgColor ?? Theme.of(context).scaffoldBackgroundColor,
child: widget.rightWidget == null
? _tabBar()
: Row(children: [Expanded(child: _tabBar()), widget.rightWidget!]),
@@ -79,10 +73,9 @@ class _HomeSortHeaderState extends State<HomeSortHeader> with SingleTickerProvid
/// 「最新」页专用:字号更小、选中态红色胶囊、首个 tab 带更新红点
Widget _buildNewsetsStyle() {
final showBg = !holidayTheme.openHoliday || widget.isPinned;
return Container(
height: 38,
color: showBg ? (widget.bgColor ?? Theme.of(context).scaffoldBackgroundColor) : Colors.transparent,
color: widget.bgColor ?? Theme.of(context).scaffoldBackgroundColor,
child: TabBar(
controller: tabCtr,
isScrollable: true,