广告点击添加
This commit is contained in:
@@ -22,7 +22,6 @@ class AdsItem extends StatefulWidget {
|
||||
final double? aspectRatio;
|
||||
final AdShowType? showType;
|
||||
final double borderRadius;
|
||||
final int clickType; //0:应用 1:广告
|
||||
final Widget? child; //自定义子视图(IM 广告用)
|
||||
final VoidCallback? onTap; //点击附加回调(IM 广告已读上报用)
|
||||
|
||||
@@ -32,7 +31,6 @@ class AdsItem extends StatefulWidget {
|
||||
this.aspectRatio,
|
||||
this.showType,
|
||||
this.borderRadius = 12,
|
||||
this.clickType = 1,
|
||||
this.child,
|
||||
this.onTap,
|
||||
});
|
||||
@@ -46,7 +44,7 @@ class _AdsItemState extends State<AdsItem> {
|
||||
|
||||
void _onTap() {
|
||||
pushToPageByLink(adInfo.href);
|
||||
CommonService.adsClick(widget.clickType);
|
||||
CommonService.adsClick(adInfo.id);
|
||||
widget.onTap?.call();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user