张善主

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,6 +333,12 @@ export struct ENewspaperPageComponent { @@ -333,6 +333,12 @@ export struct ENewspaperPageComponent {
333 }) 333 })
334 .id('e_newspaper_read') 334 .id('e_newspaper_read')
335 .onClick((event: ClickEvent) => { 335 .onClick((event: ClickEvent) => {
  336 + if(!NetworkUtil.isNetConnected()){
  337 + ToastUtils.showToast('网络出小差了,请检查网络后重试', 1000)
  338 + return
  339 + }
  340 + if (this.newspaperListBean.list && this.newspaperListBean.list.length > 0) {
  341 + this.isOpenListDialog = true
336 //电子报--读报纸点击 342 //电子报--读报纸点击
337 TrackingContent.commentClickWithEvent('read_newspaper_click',TrackConstants.PageName.NewsPaperPage,TrackConstants.PageName.NewsPaperPage 343 TrackingContent.commentClickWithEvent('read_newspaper_click',TrackConstants.PageName.NewsPaperPage,TrackConstants.PageName.NewsPaperPage
338 ,{ 344 ,{
@@ -341,12 +347,6 @@ export struct ENewspaperPageComponent { @@ -341,12 +347,6 @@ export struct ENewspaperPageComponent {
341 'currentPanelDate':this.selectDate.toDateString(), 347 'currentPanelDate':this.selectDate.toDateString(),
342 'currentNumber':this.swiperIndex, 348 'currentNumber':this.swiperIndex,
343 }) 349 })
344 - if(!NetworkUtil.isNetConnected()){  
345 - ToastUtils.showToast('网络出小差了,请检查网络后重试', 1000)  
346 - return  
347 - }  
348 - if (this.newspaperListBean.list && this.newspaperListBean.list.length > 0) {  
349 - this.isOpenListDialog = true  
350 }else { 350 }else {
351 ToastUtils.showToast('暂无数据', 1000) 351 ToastUtils.showToast('暂无数据', 1000)
352 } 352 }