Showing
2 changed files
with
7 additions
and
2 deletions
| 1 | import { BottomNavDTO, CompDTO, TopNavDTO } from 'wdBean'; | 1 | import { BottomNavDTO, CompDTO, TopNavDTO } from 'wdBean'; |
| 2 | import { SpConstants } from 'wdConstant'; | 2 | import { SpConstants } from 'wdConstant'; |
| 3 | -import { DisplayUtils, LazyDataSource, Logger, SPHelper } from 'wdKit'; | 3 | +import { DisplayUtils, LazyDataSource, Logger, SPHelper, NetworkUtil, ToastUtils } from 'wdKit'; |
| 4 | import { ProcessUtils, WDRouterPage, WDRouterRule } from 'wdRouter'; | 4 | import { ProcessUtils, WDRouterPage, WDRouterRule } from 'wdRouter'; |
| 5 | import { PageComponent } from './PageComponent'; | 5 | import { PageComponent } from './PageComponent'; |
| 6 | import { ChannelSubscriptionLayout } from './ChannelSubscriptionLayout'; | 6 | import { ChannelSubscriptionLayout } from './ChannelSubscriptionLayout'; |
| @@ -209,7 +209,11 @@ export struct TopNavigationComponent { | @@ -209,7 +209,11 @@ export struct TopNavigationComponent { | ||
| 209 | .height(30) | 209 | .height(30) |
| 210 | .width(124) | 210 | .width(124) |
| 211 | .onClick(() => { | 211 | .onClick(() => { |
| 212 | + if (NetworkUtil.isNetConnected()) { | ||
| 212 | ProcessUtils.gotoMorningEveningPaper() | 213 | ProcessUtils.gotoMorningEveningPaper() |
| 214 | + } else { | ||
| 215 | + ToastUtils.showToast('网络出小差了,请检查网络后重试', 1000) | ||
| 216 | + } | ||
| 213 | }) | 217 | }) |
| 214 | }.width('100%') | 218 | }.width('100%') |
| 215 | .justifyContent(FlexAlign.SpaceBetween) | 219 | .justifyContent(FlexAlign.SpaceBetween) |
| @@ -90,7 +90,7 @@ export struct TabLiveComponent { | @@ -90,7 +90,7 @@ export struct TabLiveComponent { | ||
| 90 | 20) | 90 | 20) |
| 91 | .then( | 91 | .then( |
| 92 | (data) => { | 92 | (data) => { |
| 93 | - Logger.debug(TAG, `${JSON.stringify(data)}`) | 93 | + Logger.debug(TAG, '直播间数据:' + `${JSON.stringify(data)}`) |
| 94 | if (data.barrageResponses && data.barrageResponses.length > 0) { | 94 | if (data.barrageResponses && data.barrageResponses.length > 0) { |
| 95 | /** | 95 | /** |
| 96 | * 在直播聊天添加一条新内容逻辑: | 96 | * 在直播聊天添加一条新内容逻辑: |
| @@ -117,6 +117,7 @@ export struct TabLiveComponent { | @@ -117,6 +117,7 @@ export struct TabLiveComponent { | ||
| 117 | if (StringUtils.isEmpty(this.liveDetailsBean.oldNewsId) | 117 | if (StringUtils.isEmpty(this.liveDetailsBean.oldNewsId) |
| 118 | && this.liveDetailsBean | 118 | && this.liveDetailsBean |
| 119 | && this.liveDetailsBean.liveInfo.liveState != 'wait') { | 119 | && this.liveDetailsBean.liveInfo.liveState != 'wait') { |
| 120 | + this.pageModel.viewType = ViewType.LOADED; | ||
| 120 | this.updateLiveListData() | 121 | this.updateLiveListData() |
| 121 | } else { | 122 | } else { |
| 122 | this.pageModel.viewType = ViewType.EMPTY; | 123 | this.pageModel.viewType = ViewType.EMPTY; |
-
Please register or login to post a comment