Toggle navigation
Toggle navigation
This project
Loading...
Sign in
developOne
/
harmonyPool
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
liyubing
2024-06-07 14:14:36 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1cf499ae60424ae48ad17a76fe4a48552c63f698
1cf499ae
1 parent
ea59eb91
fix:
1)无网络,点击预告直播间和正在直播直播间,预期提示“网络出小差了,请检查网络后重试”,实际进入黑色页面
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
sight_harmony/commons/wdRouter/src/main/ets/utils/ProcessUtils.ets
sight_harmony/features/wdComponent/src/main/ets/components/CompParser.ets
sight_harmony/commons/wdRouter/src/main/ets/utils/ProcessUtils.ets
View file @
1cf499a
import { Action, ContentDTO, Params, PhotoListBean, commentInfo } from 'wdBean';
import { ExtraDTO } from 'wdBean/src/main/ets/bean/component/extra/ExtraDTO';
import { Logger,
SPHelper
} from 'wdKit';
import { Logger,
NetworkUtil, SPHelper, ToastUtils
} from 'wdKit';
import { StringUtils } from 'wdKit/src/main/ets/utils/StringUtils';
import { WDRouterRule, WDRouterPage } from '../../../../Index';
import { ContentConstants, SpConstants } from 'wdConstant';
...
...
@@ -84,6 +84,13 @@ export class ProcessUtils {
Logger.error(TAG, "processPage, objectType is empty");
return;
}
// 网络出小差了,请检查网络后重试
let netStatus = NetworkUtil.isNetConnected()
if(!netStatus){
ToastUtils.shortToast('网络出小差了,请检查网络后重试')
return
}
let type = content.objectType;
if (typeof type == "number") {
type = `${type}`
...
...
sight_harmony/features/wdComponent/src/main/ets/components/CompParser.ets
View file @
1cf499a
...
...
@@ -45,8 +45,6 @@ export struct CompParser {
aboutToAppear(): void {
console.log('CompParser', JSON.stringify(this.compDTO))
this.pageName = this.pageModel.pageInfo.name
// 轮播图屏蔽音频类型稿件
...
...
Please
register
or
login
to post a comment