删除埋点,im和客服
This commit is contained in:
@@ -45,7 +45,7 @@ class QuickEntryRow extends StatelessWidget {
|
||||
margin: const EdgeInsets.only(right: 16),
|
||||
child: InkWell(
|
||||
enableFeedback: false,
|
||||
onTap: () => pushToPageByLink(model.linkUrl, id: model.id),
|
||||
onTap: () => pushToPageByLink(model.linkUrl),
|
||||
child: Column(
|
||||
children: [
|
||||
Expanded(
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:jydj/assets_tool/images.dart';
|
||||
import 'package:jydj/hj_utils/api_service/common_service.dart';
|
||||
import 'package:jydj/hj_utils/screen.dart';
|
||||
import 'package:jydj/routers/jump_router.dart';
|
||||
|
||||
@@ -50,7 +51,8 @@ class TiktokSimpleCell extends StatelessWidget {
|
||||
|
||||
void _onTap() {
|
||||
if (videoModel?.isRandomAd() == true) {
|
||||
pushToPageByLink(videoModel?.randomAdsInfo?.href, id: videoModel?.randomAdsInfo?.id);
|
||||
pushToPageByLink(videoModel?.randomAdsInfo?.href);
|
||||
CommonService.adsClick(videoModel?.randomAdsInfo?.id);
|
||||
return;
|
||||
}
|
||||
pushToVideoPage(videoModel: videoModel);
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:jydj/hj_utils/api_service/common_service.dart';
|
||||
import 'package:jydj/hj_utils/screen.dart';
|
||||
|
||||
import '../../../hj_model/video_model.dart';
|
||||
@@ -76,7 +77,8 @@ class VideoHorCell extends StatelessWidget {
|
||||
|
||||
void _onTap() {
|
||||
if (videoModel?.isRandomAd() == true) {
|
||||
pushToPageByLink(videoModel?.randomAdsInfo?.href, id: videoModel?.randomAdsInfo?.id);
|
||||
pushToPageByLink(videoModel?.randomAdsInfo?.href);
|
||||
CommonService.adsClick(videoModel?.randomAdsInfo?.id);
|
||||
return;
|
||||
}
|
||||
pushToVideoPage(videoModel: videoModel);
|
||||
|
||||
@@ -3,6 +3,7 @@ import 'package:flutter/material.dart';
|
||||
import 'package:jydj/assets_tool/images.dart';
|
||||
import 'package:jydj/config/config.dart';
|
||||
import 'package:jydj/extension/extensions.dart';
|
||||
import 'package:jydj/hj_utils/api_service/common_service.dart';
|
||||
import 'package:jydj/hj_utils/screen.dart';
|
||||
import 'package:jydj/routers/jump_router.dart';
|
||||
import 'package:jydj/tools_base/banner/ads_item.dart';
|
||||
@@ -14,7 +15,6 @@ import '../../../hj_utils/free_play_manager.dart';
|
||||
import '../../../tools_base/banner/ads_banner.dart';
|
||||
import '../../../tools_base/widget/net_image_widget.dart';
|
||||
import 'level_mark_chip.dart';
|
||||
import '../../../track_event_manager/track_manager.dart';
|
||||
|
||||
/// 竖版视频 item:封面(角标/售卖标/暗网遮罩) + 标题 +(可选)标签/评论数。
|
||||
/// 命中广告数据时整体换成 [VideoSimpleAdsCell]
|
||||
@@ -26,7 +26,6 @@ class VideoSimpleCell extends StatelessWidget {
|
||||
final bool isFromHY; // 黄油风格
|
||||
final bool isShowBottom; // true 显示底部标签和评论数
|
||||
final bool isFromSearch;
|
||||
final AdExposureModel? exposureModel;
|
||||
final double titleFontSize; // 标题字号,小卡场景传小值
|
||||
final double coverFontSize; // 封面底部播放量/时长字号,小卡场景传小值避免溢出
|
||||
final String? coverRightText; // 封面右下角文案,默认时长;短剧传「共N集」
|
||||
@@ -42,7 +41,6 @@ class VideoSimpleCell extends StatelessWidget {
|
||||
this.isFromHY = false,
|
||||
this.isShowBottom = false,
|
||||
this.isFromSearch = false,
|
||||
this.exposureModel,
|
||||
this.titleFontSize = 12,
|
||||
this.coverFontSize = 10,
|
||||
this.coverRightText,
|
||||
@@ -65,7 +63,6 @@ class VideoSimpleCell extends StatelessWidget {
|
||||
? VideoSimpleAdsCell(
|
||||
videoModel: videoModel,
|
||||
textLines: textLines,
|
||||
exposureModel: exposureModel,
|
||||
isShowBottom: isShowBottom,
|
||||
)
|
||||
: _buildContent(),
|
||||
@@ -74,7 +71,8 @@ class VideoSimpleCell extends StatelessWidget {
|
||||
|
||||
void _onTap() {
|
||||
if (videoModel?.isRandomAd() == true) {
|
||||
pushToPageByLink(videoModel?.randomAdsInfo?.href, id: videoModel?.randomAdsInfo?.id);
|
||||
pushToPageByLink(videoModel?.randomAdsInfo?.href);
|
||||
CommonService.adsClick(videoModel?.randomAdsInfo?.id);
|
||||
return;
|
||||
}
|
||||
if (_needVipUnlock) {
|
||||
@@ -279,14 +277,12 @@ class VideoSimpleCell extends StatelessWidget {
|
||||
class VideoSimpleAdsCell extends StatefulWidget {
|
||||
final VideoModel? videoModel;
|
||||
final int textLines;
|
||||
final AdExposureModel? exposureModel;
|
||||
final bool isShowBottom;
|
||||
|
||||
const VideoSimpleAdsCell({
|
||||
super.key,
|
||||
this.videoModel,
|
||||
this.textLines = 2,
|
||||
this.exposureModel,
|
||||
this.isShowBottom = false,
|
||||
});
|
||||
|
||||
@@ -303,18 +299,11 @@ class _VideoSimpleAdsCellState extends State<VideoSimpleAdsCell> {
|
||||
|
||||
AdsInfoModel? get adsModel => videoModel?.randomAdsInfo;
|
||||
|
||||
// 广告点击:跳落地页并带曝光埋点参数
|
||||
// 广告点击:跳落地页并上报点击
|
||||
void _onAdTap() {
|
||||
final ad = adsInfoArr![adIndex];
|
||||
pushToPageByLink(
|
||||
ad.href,
|
||||
id: ad.id,
|
||||
arguments: {
|
||||
'pageType': widget.exposureModel?.pageType,
|
||||
'adInfo': ad,
|
||||
'payload': {'ad_type': widget.exposureModel?.adType?.value ?? ''},
|
||||
},
|
||||
);
|
||||
pushToPageByLink(ad.href);
|
||||
CommonService.adsClick(ad.id);
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -345,7 +334,6 @@ class _VideoSimpleAdsCellState extends State<VideoSimpleAdsCell> {
|
||||
child: AdsBanner(
|
||||
adsInfoArr,
|
||||
autoPlayMs: 3000,
|
||||
exposureModel: widget.exposureModel,
|
||||
borderRadius: 4,
|
||||
onIndexChanged: (index) {
|
||||
adIndex = index;
|
||||
@@ -414,7 +402,6 @@ class _VideoSimpleAdsCellState extends State<VideoSimpleAdsCell> {
|
||||
children: [
|
||||
AdsItem(
|
||||
adInfo: adModel!,
|
||||
exposureModel: widget.exposureModel,
|
||||
borderRadius: 4,
|
||||
showType: AdShowType.img,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user