张善主

fix(埋点):崩溃处理

@@ -49,6 +49,7 @@ const PATTERN_DATE_CN_RN: string = 'yyyy年MM月dd日 HH:mm'; @@ -49,6 +49,7 @@ const PATTERN_DATE_CN_RN: string = 'yyyy年MM月dd日 HH:mm';
49 49
50 50
51 /** 51 /**
  52 + * 动态详情页UI
52 * @author wd-zsz 53 * @author wd-zsz
53 * */ 54 * */
54 // @Preview 55 // @Preview
@@ -533,6 +534,8 @@ export struct DynamicDetailComponent { @@ -533,6 +534,8 @@ export struct DynamicDetailComponent {
533 } 534 }
534 //点赞操作 535 //点赞操作
535 this.toggleLikeStatus() 536 this.toggleLikeStatus()
  537 + //内容点赞/取消点赞埋点
  538 +
536 }) 539 })
537 540
538 // 评论 541 // 评论
@@ -333,20 +333,20 @@ export struct ENewspaperPageComponent { @@ -333,20 +333,20 @@ export struct ENewspaperPageComponent {
333 }) 333 })
334 .id('e_newspaper_read') 334 .id('e_newspaper_read')
335 .onClick((event: ClickEvent) => { 335 .onClick((event: ClickEvent) => {
336 - //电子报--读报纸点击  
337 - TrackingContent.commentClickWithEvent('read_newspaper_click',TrackConstants.PageName.NewsPaperPage,TrackConstants.PageName.NewsPaperPage  
338 - ,{  
339 - 'panelNumber':this.newspaperListBean?.list[this.swiperIndex].pageNum,  
340 - 'panelName':this.newspaperListBean?.list[this.swiperIndex].pageName,  
341 - 'currentPanelDate':this.selectDate.toDateString(),  
342 - 'currentNumber':this.swiperIndex,  
343 - })  
344 if(!NetworkUtil.isNetConnected()){ 336 if(!NetworkUtil.isNetConnected()){
345 ToastUtils.showToast('网络出小差了,请检查网络后重试', 1000) 337 ToastUtils.showToast('网络出小差了,请检查网络后重试', 1000)
346 return 338 return
347 } 339 }
348 if (this.newspaperListBean.list && this.newspaperListBean.list.length > 0) { 340 if (this.newspaperListBean.list && this.newspaperListBean.list.length > 0) {
349 this.isOpenListDialog = true 341 this.isOpenListDialog = true
  342 + //电子报--读报纸点击
  343 + TrackingContent.commentClickWithEvent('read_newspaper_click',TrackConstants.PageName.NewsPaperPage,TrackConstants.PageName.NewsPaperPage
  344 + ,{
  345 + 'panelNumber':this.newspaperListBean?.list[this.swiperIndex].pageNum,
  346 + 'panelName':this.newspaperListBean?.list[this.swiperIndex].pageName,
  347 + 'currentPanelDate':this.selectDate.toDateString(),
  348 + 'currentNumber':this.swiperIndex,
  349 + })
350 }else { 350 }else {
351 ToastUtils.showToast('暂无数据', 1000) 351 ToastUtils.showToast('暂无数据', 1000)
352 } 352 }