Merge branch 'main' of http://192.168.1.42/developOne/harmonyPool
Showing
7 changed files
with
41 additions
and
14 deletions
| @@ -233,7 +233,7 @@ export struct ZhSingleColumn09 { | @@ -233,7 +233,7 @@ export struct ZhSingleColumn09 { | ||
| 233 | .fontSize(14) | 233 | .fontSize(14) |
| 234 | .fontColor(this.compDTO?.operDataList.length > 8 && !this.fullyTraversed ? 0xed2800 : 0xB0B0B0) | 234 | .fontColor(this.compDTO?.operDataList.length > 8 && !this.fullyTraversed ? 0xed2800 : 0xB0B0B0) |
| 235 | .margin({ right: 4 }) | 235 | .margin({ right: 4 }) |
| 236 | - Image(this.compDTO?.operDataList.length > 8 ? $r('app.media.icon_refresh') : $r('app.media.ic_refresh')) | 236 | + Image(this.compDTO?.operDataList.length > 8 && !this.fullyTraversed ? $r('app.media.icon_refresh') : $r('app.media.ic_refresh')) |
| 237 | .width(14) | 237 | .width(14) |
| 238 | .height(14) | 238 | .height(14) |
| 239 | } | 239 | } |
| @@ -437,6 +437,9 @@ export struct ZhSingleRow03 { | @@ -437,6 +437,9 @@ export struct ZhSingleRow03 { | ||
| 437 | .fontSize(12) | 437 | .fontSize(12) |
| 438 | .textAlign(TextAlign.Center) | 438 | .textAlign(TextAlign.Center) |
| 439 | .borderRadius(3) | 439 | .borderRadius(3) |
| 440 | + .borderStyle(BorderStyle.Solid) | ||
| 441 | + .borderWidth(this.isReserved(Number(item.objectId)) ? 1 : 0) | ||
| 442 | + .borderColor('#e5e5e5') | ||
| 440 | .onClick(() => { | 443 | .onClick(() => { |
| 441 | this.bookAndCancel(item.relId, item.objectId, !this.isReserved(Number(item.objectId))) | 444 | this.bookAndCancel(item.relId, item.objectId, !this.isReserved(Number(item.objectId))) |
| 442 | }) | 445 | }) |
| @@ -17,6 +17,8 @@ import TrackingPageBrowseUtils from '../../utils/TrackingPageBrowseUtils' | @@ -17,6 +17,8 @@ import TrackingPageBrowseUtils from '../../utils/TrackingPageBrowseUtils' | ||
| 17 | import { TrackConstants, TrackingButton, TrackingContent, TrackParamConvert } from 'wdTracking/Index'; | 17 | import { TrackConstants, TrackingButton, TrackingContent, TrackParamConvert } from 'wdTracking/Index'; |
| 18 | 18 | ||
| 19 | import { PeopleShipMainViewModel } from '../../viewmodel/PeopleShipMainViewModel'; | 19 | import { PeopleShipMainViewModel } from '../../viewmodel/PeopleShipMainViewModel'; |
| 20 | +import { router } from '@kit.ArkUI'; | ||
| 21 | + | ||
| 20 | @Entry | 22 | @Entry |
| 21 | @Component | 23 | @Component |
| 22 | struct MyCollectionListPage { | 24 | struct MyCollectionListPage { |
| @@ -148,7 +150,10 @@ struct MyCollectionListPage { | @@ -148,7 +150,10 @@ struct MyCollectionListPage { | ||
| 148 | .scrollBar(BarState.Off) | 150 | .scrollBar(BarState.Off) |
| 149 | .height(CommonConstants.FULL_PARENT) | 151 | .height(CommonConstants.FULL_PARENT) |
| 150 | .edgeEffect(EdgeEffect.None) // 必须设置列表为滑动到边缘无效果 | 152 | .edgeEffect(EdgeEffect.None) // 必须设置列表为滑动到边缘无效果 |
| 151 | - .margin({ | 153 | + .margin(router.getState().name === 'MyCollectionListPage' ? { |
| 154 | + left: 6, | ||
| 155 | + right: 6 | ||
| 156 | + } : { | ||
| 152 | left: 16, | 157 | left: 16, |
| 153 | right: 16 | 158 | right: 16 |
| 154 | }) | 159 | }) |
| @@ -167,7 +172,6 @@ struct MyCollectionListPage { | @@ -167,7 +172,6 @@ struct MyCollectionListPage { | ||
| 167 | } | 172 | } |
| 168 | Column() { | 173 | Column() { |
| 169 | BigPicCardComponent({compDTO:new CompDTO,contentDTO:compDTO,pageId:TrackConstants.PageName.My_Collect,pageName:TrackConstants.PageName.My_Collect}) | 174 | BigPicCardComponent({compDTO:new CompDTO,contentDTO:compDTO,pageId:TrackConstants.PageName.My_Collect,pageName:TrackConstants.PageName.My_Collect}) |
| 170 | - Divider().strokeWidth(1).color('#f5f5f5').padding({ left: 16, right: 16 }); | ||
| 171 | } | 175 | } |
| 172 | }.onVisibleAreaChange([0.0, 1.0], (isVisible: boolean, currentRatio: number) => { | 176 | }.onVisibleAreaChange([0.0, 1.0], (isVisible: boolean, currentRatio: number) => { |
| 173 | if (isVisible && !this.isEditState) { | 177 | if (isVisible && !this.isEditState) { |
| 1 | import { CommonConstants, ViewType } from 'wdConstant'; | 1 | import { CommonConstants, ViewType } from 'wdConstant'; |
| 2 | -import { Logger, NetworkUtil } from 'wdKit'; | 2 | +import { EmitterEventId, EmitterUtils, Logger, NetworkUtil } from 'wdKit'; |
| 3 | import { EmptyComponent } from '../view/EmptyComponent'; | 3 | import { EmptyComponent } from '../view/EmptyComponent'; |
| 4 | import PageModel from '../../viewmodel/PageModel'; | 4 | import PageModel from '../../viewmodel/PageModel'; |
| 5 | import { autoRefresh, onActionEnd, onActionStart, onActionUpdate } from '../../utils/PullDownRefresh'; | 5 | import { autoRefresh, onActionEnd, onActionStart, onActionUpdate } from '../../utils/PullDownRefresh'; |
| @@ -43,6 +43,7 @@ export struct PageComponent { | @@ -43,6 +43,7 @@ export struct PageComponent { | ||
| 43 | // 国殇灰度管理 | 43 | // 国殇灰度管理 |
| 44 | GrayManage: SubscribedAbstractProperty<GrayManageModel> = AppStorage.link<GrayManageModel>('GrayManage') | 44 | GrayManage: SubscribedAbstractProperty<GrayManageModel> = AppStorage.link<GrayManageModel>('GrayManage') |
| 45 | @State netStatus: number | undefined = undefined // 存储网络状态 | 45 | @State netStatus: number | undefined = undefined // 存储网络状态 |
| 46 | + isRMH:boolean = false | ||
| 46 | 47 | ||
| 47 | build() { | 48 | build() { |
| 48 | Column() { | 49 | Column() { |
| @@ -282,6 +283,16 @@ export struct PageComponent { | @@ -282,6 +283,16 @@ export struct PageComponent { | ||
| 282 | this.needload = false; | 283 | this.needload = false; |
| 283 | // console.log(TAG, 'aboutToAppear onAutoRefresh111 ' + this.needload) | 284 | // console.log(TAG, 'aboutToAppear onAutoRefresh111 ' + this.needload) |
| 284 | } | 285 | } |
| 286 | + | ||
| 287 | + //人民号推荐 监听登录事件(刷新页面) | ||
| 288 | + EmitterUtils.receiveEvent(EmitterEventId.LOGIN_SUCCESS, () => { | ||
| 289 | + if(this.navIndex === this.currentTopNavSelectedIndex && this.isRMH){ | ||
| 290 | + this.listScroller.scrollEdge(Edge.Top) | ||
| 291 | + this.pageModel.viewType = ViewType.LOADING; | ||
| 292 | + this.getData() | ||
| 293 | + } | ||
| 294 | + }) | ||
| 295 | + | ||
| 285 | } | 296 | } |
| 286 | 297 | ||
| 287 | onChange() { | 298 | onChange() { |
| @@ -97,10 +97,10 @@ export struct TopNavigationComponentNew { | @@ -97,10 +97,10 @@ export struct TopNavigationComponentNew { | ||
| 97 | if (!this.isBroadcast(navItem) && !this.isLayout(navItem)) { | 97 | if (!this.isBroadcast(navItem) && !this.isLayout(navItem)) { |
| 98 | if (CompUtils.isNews(this.navItem)) { | 98 | if (CompUtils.isNews(this.navItem)) { |
| 99 | this.createPageComponent(navItem, index, | 99 | this.createPageComponent(navItem, index, |
| 100 | - (channelId) => this.GrayManage.get().isNewsMourning(channelId)); | 100 | + (channelId) => this.GrayManage.get().isNewsMourning(channelId),false); |
| 101 | } else if (CompUtils.isRMH(this.navItem)) { | 101 | } else if (CompUtils.isRMH(this.navItem)) { |
| 102 | this.createPageComponent(navItem, index, | 102 | this.createPageComponent(navItem, index, |
| 103 | - (channelId) => this.GrayManage.get().isRmhMourning(channelId)); | 103 | + (channelId) => this.GrayManage.get().isRmhMourning(channelId),true); |
| 104 | } | 104 | } |
| 105 | 105 | ||
| 106 | } else { | 106 | } else { |
| @@ -165,7 +165,7 @@ export struct TopNavigationComponentNew { | @@ -165,7 +165,7 @@ export struct TopNavigationComponentNew { | ||
| 165 | 165 | ||
| 166 | } | 166 | } |
| 167 | @Builder | 167 | @Builder |
| 168 | - createPageComponent(navItem: TopNavDTO, index: number, mourningCheckFn: (channelId: string) => boolean) { | 168 | + createPageComponent(navItem: TopNavDTO, index: number, mourningCheckFn: (channelId: string) => boolean,isRMH:boolean = false) { |
| 169 | PageComponent({ | 169 | PageComponent({ |
| 170 | currentTopNavSelectedIndex: this.currentTopNavSelectedIndex, | 170 | currentTopNavSelectedIndex: this.currentTopNavSelectedIndex, |
| 171 | navIndex: index, | 171 | navIndex: index, |
| @@ -173,6 +173,7 @@ export struct TopNavigationComponentNew { | @@ -173,6 +173,7 @@ export struct TopNavigationComponentNew { | ||
| 173 | channelId: navItem?.channelId + '', | 173 | channelId: navItem?.channelId + '', |
| 174 | autoRefresh: this.autoRefresh2Page, | 174 | autoRefresh: this.autoRefresh2Page, |
| 175 | isMourning: mourningCheckFn(`${navItem.channelId}`), | 175 | isMourning: mourningCheckFn(`${navItem.channelId}`), |
| 176 | + isRMH:isRMH | ||
| 176 | }) | 177 | }) |
| 177 | // .margin({ | 178 | // .margin({ |
| 178 | // left: 6, | 179 | // left: 6, |
| @@ -569,10 +569,10 @@ export struct PeopleShipMainComponent { | @@ -569,10 +569,10 @@ export struct PeopleShipMainComponent { | ||
| 569 | } | 569 | } |
| 570 | 570 | ||
| 571 | //退出登录的时候 刷新界面 | 571 | //退出登录的时候 刷新界面 |
| 572 | - let userID = UserDataLocal.getUserId() | ||
| 573 | - if (!StringUtils.isNotEmpty(userID)) { | ||
| 574 | - this.getData() | ||
| 575 | - } | 572 | + // let userID = UserDataLocal.getUserId() |
| 573 | + // if (!StringUtils.isNotEmpty(userID)) { | ||
| 574 | + // this.getData() | ||
| 575 | + // } | ||
| 576 | } | 576 | } |
| 577 | 577 | ||
| 578 | onAutoRefresh(changedPropertyName: string) { | 578 | onAutoRefresh(changedPropertyName: string) { |
| @@ -141,9 +141,9 @@ export struct TopPlayComponent { | @@ -141,9 +141,9 @@ export struct TopPlayComponent { | ||
| 141 | this.isHideLoading = false | 141 | this.isHideLoading = false |
| 142 | } else { | 142 | } else { |
| 143 | this.isWait = this.contentDetailData?.liveInfo?.liveState == 'wait' | 143 | this.isWait = this.contentDetailData?.liveInfo?.liveState == 'wait' |
| 144 | - if (this.isWait) { | ||
| 145 | - this.isHideLoading = true | ||
| 146 | - } | 144 | + // if (this.isWait) { |
| 145 | + // this.isHideLoading = true | ||
| 146 | + // } | ||
| 147 | } | 147 | } |
| 148 | 148 | ||
| 149 | this.isEnd = this.contentDetailData?.liveInfo?.liveState === 'end' && | 149 | this.isEnd = this.contentDetailData?.liveInfo?.liveState === 'end' && |
| @@ -269,6 +269,14 @@ export struct TopPlayComponent { | @@ -269,6 +269,14 @@ export struct TopPlayComponent { | ||
| 269 | Visibility.None)// .contrast(this.isEnd ? 0.4 : 1) | 269 | Visibility.None)// .contrast(this.isEnd ? 0.4 : 1) |
| 270 | .blur(this.isEnd ? 20 : 0) | 270 | .blur(this.isEnd ? 20 : 0) |
| 271 | .width('100%') | 271 | .width('100%') |
| 272 | + .onComplete(event=>{ | ||
| 273 | + if (event?.loadingStatus == 1) { | ||
| 274 | + this.isHideLoading = true | ||
| 275 | + } | ||
| 276 | + }) | ||
| 277 | + .onError(()=>{ | ||
| 278 | + this.isHideLoading = true | ||
| 279 | + }) | ||
| 272 | 280 | ||
| 273 | 281 | ||
| 274 | if (this.liveDetailPageLogic.showPad) { | 282 | if (this.liveDetailPageLogic.showPad) { |
-
Please register or login to post a comment