liyubing

fix:

1)无网络,点击预告直播间和正在直播直播间,预期提示“网络出小差了,请检查网络后重试”,实际进入黑色页面
1 import { Action, ContentDTO, Params, PhotoListBean, commentInfo } from 'wdBean'; 1 import { Action, ContentDTO, Params, PhotoListBean, commentInfo } from 'wdBean';
2 import { ExtraDTO } from 'wdBean/src/main/ets/bean/component/extra/ExtraDTO'; 2 import { ExtraDTO } from 'wdBean/src/main/ets/bean/component/extra/ExtraDTO';
3 -import { Logger, SPHelper } from 'wdKit'; 3 +import { Logger, NetworkUtil, SPHelper, ToastUtils } from 'wdKit';
4 import { StringUtils } from 'wdKit/src/main/ets/utils/StringUtils'; 4 import { StringUtils } from 'wdKit/src/main/ets/utils/StringUtils';
5 import { WDRouterRule, WDRouterPage } from '../../../../Index'; 5 import { WDRouterRule, WDRouterPage } from '../../../../Index';
6 import { ContentConstants, SpConstants } from 'wdConstant'; 6 import { ContentConstants, SpConstants } from 'wdConstant';
@@ -84,6 +84,13 @@ export class ProcessUtils { @@ -84,6 +84,13 @@ export class ProcessUtils {
84 Logger.error(TAG, "processPage, objectType is empty"); 84 Logger.error(TAG, "processPage, objectType is empty");
85 return; 85 return;
86 } 86 }
  87 + // 网络出小差了,请检查网络后重试
  88 + let netStatus = NetworkUtil.isNetConnected()
  89 + if(!netStatus){
  90 + ToastUtils.shortToast('网络出小差了,请检查网络后重试')
  91 + return
  92 + }
  93 +
87 let type = content.objectType; 94 let type = content.objectType;
88 if (typeof type == "number") { 95 if (typeof type == "number") {
89 type = `${type}` 96 type = `${type}`
@@ -45,8 +45,6 @@ export struct CompParser { @@ -45,8 +45,6 @@ export struct CompParser {
45 45
46 aboutToAppear(): void { 46 aboutToAppear(): void {
47 47
48 -  
49 -  
50 console.log('CompParser', JSON.stringify(this.compDTO)) 48 console.log('CompParser', JSON.stringify(this.compDTO))
51 this.pageName = this.pageModel.pageInfo.name 49 this.pageName = this.pageModel.pageInfo.name
52 // 轮播图屏蔽音频类型稿件 50 // 轮播图屏蔽音频类型稿件