Showing
6 changed files
with
46 additions
and
20 deletions
| @@ -239,15 +239,9 @@ export struct MorningEveningPaperComponent { | @@ -239,15 +239,9 @@ export struct MorningEveningPaperComponent { | ||
| 239 | // WindowModel.shared.setWindowSystemBarProperties({ statusBarContentColor: '#000000', }) | 239 | // WindowModel.shared.setWindowSystemBarProperties({ statusBarContentColor: '#000000', }) |
| 240 | } | 240 | } |
| 241 | 241 | ||
| 242 | - onPageShow(){ | ||
| 243 | - TrackingPageBrowseUtils.TrackingPageBrowseExposureStart() | ||
| 244 | - } | ||
| 245 | - | ||
| 246 | onPageHide() { | 242 | onPageHide() { |
| 247 | this.status = PlayerConstants.STATUS_PAUSE; | 243 | this.status = PlayerConstants.STATUS_PAUSE; |
| 248 | this.playerController?.pause(); | 244 | this.playerController?.pause(); |
| 249 | - | ||
| 250 | - TrackingPageBrowseUtils.TrackingPageBrowseExposureEnd('','',TrackParamConvert.pageInfoBean_ParamType(this.pageInfoBean)) | ||
| 251 | } | 245 | } |
| 252 | 246 | ||
| 253 | build() { | 247 | build() { |
| @@ -259,11 +253,12 @@ export struct MorningEveningPaperComponent { | @@ -259,11 +253,12 @@ export struct MorningEveningPaperComponent { | ||
| 259 | topicInfoView({ frontLinkObject: this.pageInfoBean?.topicInfo?.frontLinkObject }) | 253 | topicInfoView({ frontLinkObject: this.pageInfoBean?.topicInfo?.frontLinkObject }) |
| 260 | } | 254 | } |
| 261 | 255 | ||
| 262 | - if (this.audioPlayUrl.length > 0){ | ||
| 263 | - ListItem() { | ||
| 264 | - this.AudioBarView(this.simpleAudioDialog) | ||
| 265 | - } | ||
| 266 | - } | 256 | + //暂时不展示音频播报 |
| 257 | + // if (this.audioPlayUrl.length > 0){ | ||
| 258 | + // ListItem() { | ||
| 259 | + // this.AudioBarView(this.simpleAudioDialog) | ||
| 260 | + // } | ||
| 261 | + // } | ||
| 267 | } | 262 | } |
| 268 | 263 | ||
| 269 | ListItem() { | 264 | ListItem() { |
| @@ -3,6 +3,9 @@ import { CommonConstants, ConfigConstants, ScreenType } from 'wdConstant'; | @@ -3,6 +3,9 @@ import { CommonConstants, ConfigConstants, ScreenType } from 'wdConstant'; | ||
| 3 | import { Logger, ToastUtils, DateTimeUtils } from 'wdKit'; | 3 | import { Logger, ToastUtils, DateTimeUtils } from 'wdKit'; |
| 4 | import { CompUtils } from '../../utils/CompUtils'; | 4 | import { CompUtils } from '../../utils/CompUtils'; |
| 5 | import { ProcessUtils, WDRouterRule } from 'wdRouter'; | 5 | import { ProcessUtils, WDRouterRule } from 'wdRouter'; |
| 6 | +import { TrackConstants, | ||
| 7 | + TrackingButton, | ||
| 8 | + TrackingContent, TrackingPageBrowse, TrackParamConvert } from 'wdTracking/Index'; | ||
| 6 | 9 | ||
| 7 | const TAG: string = 'CardView'; | 10 | const TAG: string = 'CardView'; |
| 8 | 11 | ||
| @@ -528,6 +531,11 @@ export struct PaperSingleColumn999CardView { | @@ -528,6 +531,11 @@ export struct PaperSingleColumn999CardView { | ||
| 528 | .borderRadius(4) | 531 | .borderRadius(4) |
| 529 | .onClick(() => { | 532 | .onClick(() => { |
| 530 | ProcessUtils.processPage(this.item) | 533 | ProcessUtils.processPage(this.item) |
| 534 | + TrackingContent.common(TrackConstants.EventType.Click,TrackConstants.SummaryType.MorningAndEveningNews,TrackConstants.SummaryType.MorningAndEveningNews,TrackParamConvert.program(this.item)) | ||
| 535 | + }).onVisibleAreaChange([0.0, 1.0], (isVisible: boolean, currentRatio: number) => { | ||
| 536 | + if (isVisible) { | ||
| 537 | + TrackingContent.common(TrackConstants.EventType.Show,TrackConstants.SummaryType.MorningAndEveningNews,TrackConstants.SummaryType.MorningAndEveningNews,TrackParamConvert.program(this.item)) | ||
| 538 | + } | ||
| 531 | }) | 539 | }) |
| 532 | } | 540 | } |
| 533 | 541 |
| @@ -73,13 +73,14 @@ struct EditUserInfoPage { | @@ -73,13 +73,14 @@ struct EditUserInfoPage { | ||
| 73 | .width('30') | 73 | .width('30') |
| 74 | .height('30') | 74 | .height('30') |
| 75 | } | 75 | } |
| 76 | - }.margin({top:20,bottom:-10}) | ||
| 77 | - | ||
| 78 | - Button('点击更换头像') | ||
| 79 | - .fontColor(Color.Gray) | ||
| 80 | - .fontSize(15) | ||
| 81 | - .backgroundColor(Color.White) | ||
| 82 | - .margin(20) | 76 | + }.margin({top:20,bottom:40}) |
| 77 | + | ||
| 78 | + ///目前不支持头像上传,暂时屏蔽 | ||
| 79 | + // Button('点击更换头像') | ||
| 80 | + // .fontColor(Color.Gray) | ||
| 81 | + // .fontSize(15) | ||
| 82 | + // .backgroundColor(Color.White) | ||
| 83 | + // .margin(20) | ||
| 83 | 84 | ||
| 84 | List({}){ | 85 | List({}){ |
| 85 | ForEach(this.listData,(item:EditListInfo,index:number) =>{ | 86 | ForEach(this.listData,(item:EditListInfo,index:number) =>{ |
| @@ -14,7 +14,7 @@ import { CustomPullToRefresh } from '../reusable/CustomPullToRefresh'; | @@ -14,7 +14,7 @@ import { CustomPullToRefresh } from '../reusable/CustomPullToRefresh'; | ||
| 14 | import { MyCustomDialog } from '../reusable/MyCustomDialog' | 14 | import { MyCustomDialog } from '../reusable/MyCustomDialog' |
| 15 | import { NetworkUtil } from 'wdKit/Index'; | 15 | import { NetworkUtil } from 'wdKit/Index'; |
| 16 | import TrackingPageBrowseUtils from '../../utils/TrackingPageBrowseUtils' | 16 | import TrackingPageBrowseUtils from '../../utils/TrackingPageBrowseUtils' |
| 17 | -import { TrackConstants } from 'wdTracking/Index'; | 17 | +import { TrackConstants, TrackingButton, TrackingContent, TrackParamConvert } from 'wdTracking/Index'; |
| 18 | 18 | ||
| 19 | @Entry | 19 | @Entry |
| 20 | @Component | 20 | @Component |
| @@ -36,6 +36,9 @@ struct MyCollectionListPage { | @@ -36,6 +36,9 @@ struct MyCollectionListPage { | ||
| 36 | builder: MyCustomDialog({ | 36 | builder: MyCustomDialog({ |
| 37 | confirm: () => { | 37 | confirm: () => { |
| 38 | this.deleteDatas() | 38 | this.deleteDatas() |
| 39 | + if (this.isAllSelect) { | ||
| 40 | + TrackingButton.click('morning_evening_news_click',TrackConstants.PageName.My_Collect,TrackConstants.PageName.My_Collect) | ||
| 41 | + } | ||
| 39 | }, | 42 | }, |
| 40 | titleShow:false, | 43 | titleShow:false, |
| 41 | tipValue: this.isAllSelect?'是否确认清空?':'确认删除'+this.deleteNum.toString()+'条收藏' | 44 | tipValue: this.isAllSelect?'是否确认清空?':'确认删除'+this.deleteNum.toString()+'条收藏' |
| @@ -146,7 +149,14 @@ struct MyCollectionListPage { | @@ -146,7 +149,14 @@ struct MyCollectionListPage { | ||
| 146 | Column() { | 149 | Column() { |
| 147 | BigPicCardComponent({compDTO:new CompDTO,contentDTO:compDTO}) | 150 | BigPicCardComponent({compDTO:new CompDTO,contentDTO:compDTO}) |
| 148 | } | 151 | } |
| 152 | + }.onVisibleAreaChange([0.0, 1.0], (isVisible: boolean, currentRatio: number) => { | ||
| 153 | + if (isVisible) { | ||
| 154 | + TrackingContent.common(TrackConstants.EventType.Show, TrackConstants.PageName.My_Collect,TrackConstants.PageName.My_Collect, TrackParamConvert.program(compDTO)) | ||
| 149 | } | 155 | } |
| 156 | + }) | ||
| 157 | + // .onClick(()=>{ | ||
| 158 | + // TrackingContent.common(TrackConstants.EventType.Click, TrackConstants.PageName.My_Collect,TrackConstants.PageName.My_Collect, TrackParamConvert.program(compDTO)) | ||
| 159 | + // }) | ||
| 150 | } | 160 | } |
| 151 | 161 | ||
| 152 | 162 |
| @@ -8,6 +8,7 @@ import { FirstTabTopSearchComponent } from '../search/FirstTabTopSearchComponent | @@ -8,6 +8,7 @@ import { FirstTabTopSearchComponent } from '../search/FirstTabTopSearchComponent | ||
| 8 | import { AssignChannelParam } from 'wdRouter/src/main/ets/utils/HomeChannelUtils'; | 8 | import { AssignChannelParam } from 'wdRouter/src/main/ets/utils/HomeChannelUtils'; |
| 9 | import { PeopleShipMainComponent } from '../peopleShip/PeopleShipMainComponent'; | 9 | import { PeopleShipMainComponent } from '../peopleShip/PeopleShipMainComponent'; |
| 10 | import { channelSkeleton } from '../skeleton/channelSkeleton'; | 10 | import { channelSkeleton } from '../skeleton/channelSkeleton'; |
| 11 | +import { TrackConstants, TrackingButton } from 'wdTracking/Index'; | ||
| 11 | 12 | ||
| 12 | const TAG = 'TopNavigationComponent'; | 13 | const TAG = 'TopNavigationComponent'; |
| 13 | 14 | ||
| @@ -171,6 +172,7 @@ export struct TopNavigationComponentNew { | @@ -171,6 +172,7 @@ export struct TopNavigationComponentNew { | ||
| 171 | .onClick(() => { | 172 | .onClick(() => { |
| 172 | if (NetworkUtil.isNetConnected()) { | 173 | if (NetworkUtil.isNetConnected()) { |
| 173 | ProcessUtils.gotoMorningEveningPaper() | 174 | ProcessUtils.gotoMorningEveningPaper() |
| 175 | + TrackingButton.click('morning_evening_news_click',TrackConstants.SummaryType.MorningAndEveningNews,TrackConstants.SummaryType.MorningAndEveningNews) | ||
| 174 | } else { | 176 | } else { |
| 175 | ToastUtils.showToast('网络出小差了,请检查网络后重试', 1000) | 177 | ToastUtils.showToast('网络出小差了,请检查网络后重试', 1000) |
| 176 | } | 178 | } |
| 1 | import { MorningEveningPaperComponent } from 'wdComponent'; | 1 | import { MorningEveningPaperComponent } from 'wdComponent'; |
| 2 | -import { Logger, WindowModel } from 'wdKit'; | 2 | +import { DateTimeUtils, Logger, WindowModel } from 'wdKit'; |
| 3 | +import { TrackConstants, TrackingPageBrowse} from 'wdTracking/Index'; | ||
| 3 | 4 | ||
| 4 | const TAG = 'MorningEveningPaperPage'; | 5 | const TAG = 'MorningEveningPaperPage'; |
| 5 | 6 | ||
| @@ -7,6 +8,8 @@ const TAG = 'MorningEveningPaperPage'; | @@ -7,6 +8,8 @@ const TAG = 'MorningEveningPaperPage'; | ||
| 7 | @Component | 8 | @Component |
| 8 | struct MorningEveningPaperPage { | 9 | struct MorningEveningPaperPage { |
| 9 | @State isPageShow: boolean = false | 10 | @State isPageShow: boolean = false |
| 11 | + pageShowTime:number = 0; | ||
| 12 | + pageHideTime:number = 0; | ||
| 10 | build() { | 13 | build() { |
| 11 | Column() { | 14 | Column() { |
| 12 | MorningEveningPaperComponent() | 15 | MorningEveningPaperComponent() |
| @@ -43,6 +46,7 @@ struct MorningEveningPaperPage { | @@ -43,6 +46,7 @@ struct MorningEveningPaperPage { | ||
| 43 | WindowModel.shared.setWindowLayoutFullScreen(true) | 46 | WindowModel.shared.setWindowLayoutFullScreen(true) |
| 44 | WindowModel.shared.setWindowSystemBarProperties({ statusBarContentColor: '#ffffff', }) | 47 | WindowModel.shared.setWindowSystemBarProperties({ statusBarContentColor: '#ffffff', }) |
| 45 | } | 48 | } |
| 49 | + this.pageShowTime = DateTimeUtils.getTimeStamp() | ||
| 46 | } | 50 | } |
| 47 | 51 | ||
| 48 | onPageHide() { | 52 | onPageHide() { |
| @@ -50,6 +54,12 @@ struct MorningEveningPaperPage { | @@ -50,6 +54,12 @@ struct MorningEveningPaperPage { | ||
| 50 | WindowModel.shared.setWindowSystemBarProperties({ statusBarContentColor: '#000000', }) | 54 | WindowModel.shared.setWindowSystemBarProperties({ statusBarContentColor: '#000000', }) |
| 51 | this.isPageShow = true | 55 | this.isPageShow = true |
| 52 | Logger.info(TAG, 'onPageHide'); | 56 | Logger.info(TAG, 'onPageHide'); |
| 57 | + | ||
| 58 | + //早晚报埋点 | ||
| 59 | + this.pageHideTime = DateTimeUtils.getTimeStamp() | ||
| 60 | + let duration = 0 | ||
| 61 | + duration = Math.floor((this.pageHideTime - this.pageShowTime)/1000) | ||
| 62 | + TrackingPageBrowse.trackCommonPageExposureEnd(TrackConstants.SummaryType.MorningAndEveningNews,TrackConstants.SummaryType.MorningAndEveningNews,duration) | ||
| 53 | } | 63 | } |
| 54 | 64 | ||
| 55 | onBackPress() { | 65 | onBackPress() { |
-
Please register or login to post a comment