删除埋点,im和客服
This commit is contained in:
@@ -4,7 +4,6 @@ import 'package:get/get.dart';
|
||||
import 'package:jydj/hj_utils/const.dart';
|
||||
import 'package:jydj/tools_base/banner/ads_grid_view.dart';
|
||||
|
||||
import '../../../track_event_manager/track_manager.dart';
|
||||
import '../../find/rank_module/rank_main_page.dart';
|
||||
import '../../find/rank_module/rank_sub_page.dart';
|
||||
import 'search_main_logic.dart';
|
||||
@@ -58,7 +57,6 @@ class SearchMainPage extends StatelessWidget {
|
||||
32,
|
||||
autoStyle: true,
|
||||
padding: EdgeInsets.symmetric(vertical: 12.h, horizontal: 12.w),
|
||||
exposureModel: AdExposureModel(pageType: TrackEventPageType.search),
|
||||
),
|
||||
),
|
||||
//搜索历史:随增删局部刷新,不带动整页(id 要和 logic 里 update 的一致)
|
||||
|
||||
@@ -9,8 +9,6 @@ import 'package:pull_to_refresh/pull_to_refresh.dart';
|
||||
import '../../../../hj_model/acg/cartoon_more_list.dart';
|
||||
import '../../../../hj_model/cartoon_media_info.dart';
|
||||
import '../../../../tools_base/refresh/pull_refresh.dart';
|
||||
import '../../../../tools_base/widget/multitap_recognizer.dart';
|
||||
import '../../../../track_event_manager/track_manager.dart';
|
||||
import '../../../cartoon/acg_widget_item.dart';
|
||||
|
||||
class SearchACGResultPage extends StatefulWidget {
|
||||
@@ -51,12 +49,6 @@ class _SearchACGResultPageState extends State<SearchACGResultPage> {
|
||||
}
|
||||
videoList?.addAll(retResp?.list ?? []);
|
||||
retResp?.hasNext == false ? refreshController?.loadNoData() : refreshController?.loadComplete();
|
||||
searchClickManager.searchKeyword(
|
||||
keyword: widget.keywords,
|
||||
count: retResp?.list?.length ?? 0,
|
||||
searchId: '',
|
||||
traceId: '',
|
||||
);
|
||||
} catch (e) {
|
||||
refreshController?.loadComplete();
|
||||
debugLog(e);
|
||||
@@ -93,17 +85,7 @@ class _SearchACGResultPageState extends State<SearchACGResultPage> {
|
||||
),
|
||||
itemCount: videoList?.length ?? 0,
|
||||
itemBuilder: (context, index) {
|
||||
return MultiTap(
|
||||
onTap: () {
|
||||
searchClickManager.searchClicks(
|
||||
keyword: widget.keywords,
|
||||
clickType: TrackEventSearchType.acg,
|
||||
id: videoList![index].id,
|
||||
index: index,
|
||||
traceId: '',
|
||||
);
|
||||
},
|
||||
child: AcgItemWidget(info: videoList![index]));
|
||||
return AcgItemWidget(info: videoList![index]);
|
||||
},
|
||||
),
|
||||
);
|
||||
|
||||
@@ -2,9 +2,7 @@ import 'dart:math';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:jydj/hj_model/drama_media_info.dart';
|
||||
import 'package:jydj/hj_model/video_model.dart';
|
||||
import 'package:jydj/hj_page/drama/drama_detail_page.dart';
|
||||
import 'package:jydj/hj_page/drama/drama_tag_detail_page.dart';
|
||||
import 'package:jydj/hj_utils/api_service/drama_service.dart';
|
||||
import 'package:jydj/hj_utils/api_service/search_service.dart';
|
||||
@@ -16,8 +14,6 @@ import 'package:pull_to_refresh/pull_to_refresh.dart';
|
||||
|
||||
import '../../../../hj_model/home/video_list_model.dart';
|
||||
import '../../../../tools_base/refresh/pull_refresh.dart';
|
||||
import '../../../../tools_base/widget/multitap_recognizer.dart';
|
||||
import '../../../../track_event_manager/track_manager.dart';
|
||||
import '../../../cartoon/photo_gallery_item.dart';
|
||||
import '../../../community/widget/community_post_widget.dart';
|
||||
import '../../home_cell_style/drama_cover_card.dart';
|
||||
@@ -83,12 +79,6 @@ class _SearchVideoResultPageState extends State<SearchVideoResultPage> {
|
||||
videoList ??= [];
|
||||
videoList?.addAll(retResp?.list.map((e) => e.toVideoModel(null)) ?? []);
|
||||
retResp?.hasNext != true ? refreshController?.loadNoData() : refreshController?.loadComplete();
|
||||
searchClickManager.searchKeyword(
|
||||
keyword: widget.keywords,
|
||||
count: retResp?.list.length ?? 0,
|
||||
searchId: '',
|
||||
traceId: '',
|
||||
);
|
||||
} else {
|
||||
VideoListResp? retResp = await SearchService.searchMedia(widget.keywords,
|
||||
pageNumber: page, pageSize: size, realm: widget.type.searchRealm, sortType: sortValue);
|
||||
@@ -103,12 +93,6 @@ class _SearchVideoResultPageState extends State<SearchVideoResultPage> {
|
||||
tagID = retResp?.tagID;
|
||||
}
|
||||
retResp?.hasNext == false ? refreshController?.loadNoData() : refreshController?.loadComplete();
|
||||
searchClickManager.searchKeyword(
|
||||
keyword: widget.keywords,
|
||||
count: retResp?.videos?.length ?? 0,
|
||||
searchId: '',
|
||||
traceId: '',
|
||||
);
|
||||
}
|
||||
} catch (e) {
|
||||
refreshController?.loadComplete();
|
||||
@@ -186,18 +170,6 @@ class _SearchVideoResultPageState extends State<SearchVideoResultPage> {
|
||||
}
|
||||
}
|
||||
|
||||
/// 进短剧二级页;搜索列表不一定带 dramaInfo,最少用 id/标题/封面兜底
|
||||
void _openDrama(VideoModel model) {
|
||||
final drama = model.dramaInfo ??
|
||||
(DramaMediaInfo()
|
||||
..id = model.id
|
||||
..title = model.title
|
||||
..verticalCover = model.cover
|
||||
..horizontalCover = model.cover
|
||||
..totalEpisode = model.totalEpisode);
|
||||
Get.to(() => DramaDetailPage(drama: drama));
|
||||
}
|
||||
|
||||
Widget _buildTypeList() {
|
||||
if (widget.type == MediaStyle.Drama) {
|
||||
return GridView.builder(
|
||||
@@ -211,18 +183,7 @@ class _SearchVideoResultPageState extends State<SearchVideoResultPage> {
|
||||
itemCount: videoList?.length ?? 0,
|
||||
itemBuilder: (context, index) {
|
||||
final model = videoList![index];
|
||||
return MultiTap(
|
||||
onTap: () {
|
||||
searchClickManager.searchClicks(
|
||||
keyword: widget.keywords,
|
||||
clickType: TrackEventSearchType.video,
|
||||
id: '${model.id}',
|
||||
index: index,
|
||||
traceId: '',
|
||||
);
|
||||
},
|
||||
child: DramaCoverCard(mediaInfo: model.dramaInfo!),
|
||||
);
|
||||
return DramaCoverCard(mediaInfo: model.dramaInfo!);
|
||||
},
|
||||
);
|
||||
}
|
||||
@@ -238,22 +199,12 @@ class _SearchVideoResultPageState extends State<SearchVideoResultPage> {
|
||||
),
|
||||
itemCount: videoList?.length ?? 0,
|
||||
itemBuilder: (context, index) {
|
||||
return MultiTap(
|
||||
onTap: () {
|
||||
searchClickManager.searchClicks(
|
||||
keyword: widget.keywords,
|
||||
clickType: TrackEventSearchType.video,
|
||||
id: "${videoList![index].id}",
|
||||
index: index,
|
||||
traceId: '',
|
||||
);
|
||||
},
|
||||
child: VideoSimpleCell(
|
||||
videoModel: videoList![index],
|
||||
textLines: isShort ? 1 : 2,
|
||||
isFromSearch: true,
|
||||
isShort: isShort,
|
||||
));
|
||||
return VideoSimpleCell(
|
||||
videoModel: videoList![index],
|
||||
textLines: isShort ? 1 : 2,
|
||||
isFromSearch: true,
|
||||
isShort: isShort,
|
||||
);
|
||||
},
|
||||
);
|
||||
} else if (widget.type == MediaStyle.Pic) {
|
||||
@@ -267,17 +218,7 @@ class _SearchVideoResultPageState extends State<SearchVideoResultPage> {
|
||||
),
|
||||
itemCount: videoList?.length ?? 0,
|
||||
itemBuilder: (context, index) {
|
||||
return MultiTap(
|
||||
onTap: () {
|
||||
searchClickManager.searchClicks(
|
||||
keyword: widget.keywords,
|
||||
clickType: TrackEventSearchType.image,
|
||||
id: "${videoList![index].id}",
|
||||
index: index,
|
||||
traceId: '',
|
||||
);
|
||||
},
|
||||
child: PhotoGalleryItem(videoModel: videoList![index], textline: 1));
|
||||
return PhotoGalleryItem(videoModel: videoList![index], textline: 1);
|
||||
},
|
||||
);
|
||||
} else {
|
||||
@@ -285,20 +226,10 @@ class _SearchVideoResultPageState extends State<SearchVideoResultPage> {
|
||||
padding: EdgeInsets.zero,
|
||||
itemCount: videoList?.length ?? 0,
|
||||
itemBuilder: (context, index) {
|
||||
return MultiTap(
|
||||
onTap: () {
|
||||
searchClickManager.searchClicks(
|
||||
keyword: widget.keywords,
|
||||
clickType: TrackEventSearchType.post,
|
||||
id: "${videoList![index].id}",
|
||||
index: index,
|
||||
traceId: '',
|
||||
);
|
||||
},
|
||||
child: CommunityPostWidget(
|
||||
videoModel: videoList![index],
|
||||
videoModels: videoList,
|
||||
));
|
||||
return CommunityPostWidget(
|
||||
videoModel: videoList![index],
|
||||
videoModels: videoList,
|
||||
);
|
||||
},
|
||||
);
|
||||
}
|
||||
@@ -330,10 +261,7 @@ class _SearchVideoResultPageState extends State<SearchVideoResultPage> {
|
||||
),
|
||||
itemBuilder: (context, index) {
|
||||
final videoModel = tagVidList![index];
|
||||
return MultiTap(
|
||||
onTap: (){},
|
||||
child: DramaCoverCard(mediaInfo: videoModel.dramaInfo!),
|
||||
);
|
||||
return DramaCoverCard(mediaInfo: videoModel.dramaInfo!);
|
||||
},
|
||||
),
|
||||
if (tagID?.isNotEmpty == true) ...[
|
||||
@@ -391,22 +319,11 @@ class _SearchVideoResultPageState extends State<SearchVideoResultPage> {
|
||||
),
|
||||
itemBuilder: (context, index) {
|
||||
VideoModel videoModel = tagVidList![index];
|
||||
return MultiTap(
|
||||
onTap: () {
|
||||
searchClickManager.searchClicks(
|
||||
keyword: widget.keywords,
|
||||
clickType: TrackEventSearchType.video,
|
||||
id: "${videoModel.id}",
|
||||
index: index,
|
||||
traceId: '',
|
||||
);
|
||||
},
|
||||
child: VideoSimpleCell(
|
||||
videoModel: videoModel,
|
||||
textLines: isShort ? 1 : 2,
|
||||
isFromSearch: true,
|
||||
isShort: isShort,
|
||||
),
|
||||
return VideoSimpleCell(
|
||||
videoModel: videoModel,
|
||||
textLines: isShort ? 1 : 2,
|
||||
isFromSearch: true,
|
||||
isShort: isShort,
|
||||
);
|
||||
},
|
||||
),
|
||||
|
||||
@@ -4,7 +4,6 @@ import 'package:jydj/assets_tool/images.dart';
|
||||
import 'package:jydj/config/config.dart';
|
||||
import 'package:jydj/hj_utils/screen.dart';
|
||||
|
||||
import '../../../../hj_utils/holiday_theme.dart';
|
||||
import '../../../../tools_base/widget/marquee_widget.dart';
|
||||
import '../../../../tools_base/widget/net_image_widget.dart';
|
||||
import '../../../mine/welfare/sign_daily_page.dart';
|
||||
@@ -113,7 +112,6 @@ class _CommonSearchBarViewState extends State<CommonSearchBarView> {
|
||||
|
||||
/// 签到入口
|
||||
Widget _buildSignIcon() {
|
||||
final useHolidayIcon = holidayTheme.openHoliday && HolidayTheme.theme.signIcon.isNotEmpty;
|
||||
return InkWell(
|
||||
enableFeedback: false,
|
||||
onTap: () => Get.to(SignDailyPage()),
|
||||
|
||||
Reference in New Issue
Block a user