陈剑华

Merge remote-tracking branch 'origin/main'

@@ -98,6 +98,7 @@ export struct BottomNavigationComponent { @@ -98,6 +98,7 @@ export struct BottomNavigationComponent {
98 }); 98 });
99 99
100 } 100 }
  101 + .zIndex(10)
101 .scrollable(false) 102 .scrollable(false)
102 .animationDuration(0) 103 .animationDuration(0)
103 .barHeight($r('app.float.bottom_navigation_barHeight')) 104 .barHeight($r('app.float.bottom_navigation_barHeight'))
@@ -132,6 +133,7 @@ export struct BottomNavigationComponent { @@ -132,6 +133,7 @@ export struct BottomNavigationComponent {
132 .fontColor(this.currentNavIndex === index ? navItem.nameCColor : navItem.nameColor) 133 .fontColor(this.currentNavIndex === index ? navItem.nameCColor : navItem.nameColor)
133 .opacity(this.currentNavIndex === index ? this.FULL_OPACITY : this.SIXTY_OPACITY) 134 .opacity(this.currentNavIndex === index ? this.FULL_OPACITY : this.SIXTY_OPACITY)
134 } 135 }
  136 + .zIndex(10)
135 .height($r('app.float.bottom_navigation_barHeight')) 137 .height($r('app.float.bottom_navigation_barHeight'))
136 .hoverEffect(HoverEffect.Highlight) 138 .hoverEffect(HoverEffect.Highlight)
137 .onClick(() => { 139 .onClick(() => {
@@ -29,7 +29,7 @@ export function touchUpLoadMore(model: PageModel) { @@ -29,7 +29,7 @@ export function touchUpLoadMore(model: PageModel) {
29 if ((self.isCanLoadMore === true) && (self.hasMore === true) && (self.isLoading === false)) { 29 if ((self.isCanLoadMore === true) && (self.hasMore === true) && (self.isLoading === false)) {
30 self.isLoading = true; 30 self.isLoading = true;
31 setTimeout(() => { 31 setTimeout(() => {
32 - closeLoadMore(model); 32 + // closeLoadMore(model);
33 PageHelper.loadMore(self) 33 PageHelper.loadMore(self)
34 }, Const.DELAY_TIME); 34 }, Const.DELAY_TIME);
35 } else { 35 } else {
@@ -13,7 +13,7 @@ export class RefreshConstants { @@ -13,7 +13,7 @@ export class RefreshConstants {
13 /** 13 /**
14 * The delay time. 14 * The delay time.
15 */ 15 */
16 - static readonly DELAY_TIME: number = 200; 16 + static readonly DELAY_TIME: number = 50;
17 17
18 /** 18 /**
19 * The animation duration. 19 * The animation duration.
@@ -14,6 +14,7 @@ import { BaseDTO } from 'wdBean/src/main/ets/bean/component/BaseDTO'; @@ -14,6 +14,7 @@ import { BaseDTO } from 'wdBean/src/main/ets/bean/component/BaseDTO';
14 import { viewBlogInsightIntentShare, ActionMode } from '../utils/InsightIntentShare' 14 import { viewBlogInsightIntentShare, ActionMode } from '../utils/InsightIntentShare'
15 import { common } from '@kit.AbilityKit'; 15 import { common } from '@kit.AbilityKit';
16 import { CacheData } from 'wdNetwork/Index'; 16 import { CacheData } from 'wdNetwork/Index';
  17 +import { closeLoadMore } from '../utils/PullUpLoadMore';
17 18
18 const TAG = 'PageHelper'; 19 const TAG = 'PageHelper';
19 20
@@ -37,7 +38,7 @@ export class PageHelper { @@ -37,7 +38,7 @@ export class PageHelper {
37 if (!netStatus) { 38 if (!netStatus) {
38 ToastUtils.showToast('网络出小差了,请检查网络后重试', 1000) 39 ToastUtils.showToast('网络出小差了,请检查网络后重试', 1000)
39 setTimeout(() => { 40 setTimeout(() => {
40 - closeRefresh(pageModel, false) 41 + this.refreshUIEnd(pageModel, false)
41 }, 500) 42 }, 500)
42 return 43 return
43 } 44 }
@@ -46,6 +47,10 @@ export class PageHelper { @@ -46,6 +47,10 @@ export class PageHelper {
46 this.getPageInfo(pageModel, pageAdvModel) 47 this.getPageInfo(pageModel, pageAdvModel)
47 } 48 }
48 49
  50 + private refreshUIEnd(pageModel: PageModel, isRefreshSuccess: boolean) {
  51 + closeRefresh(pageModel, isRefreshSuccess)
  52 + }
  53 +
49 /** 54 /**
50 * 分页加载 55 * 分页加载
51 */ 56 */
@@ -60,6 +65,10 @@ export class PageHelper { @@ -60,6 +65,10 @@ export class PageHelper {
60 this.compLoadMore(pageModel) 65 this.compLoadMore(pageModel)
61 } 66 }
62 67
  68 + private loadMoreEnd(pageModel: PageModel) {
  69 + closeLoadMore(pageModel)
  70 + }
  71 +
63 /** 72 /**
64 * 进页面请求数据 73 * 进页面请求数据
65 */ 74 */
@@ -105,7 +114,7 @@ export class PageHelper { @@ -105,7 +114,7 @@ export class PageHelper {
105 } else { 114 } else {
106 //更新数据 115 //更新数据
107 pageModel.compList.addItems(liveReviewDTO.list); 116 pageModel.compList.addItems(liveReviewDTO.list);
108 - closeRefresh(pageModel, true); 117 + this.refreshUIEnd(pageModel, true);
109 } 118 }
110 }).catch((err: string | Resource) => { 119 }).catch((err: string | Resource) => {
111 promptAction.showToast({ message: err }); 120 promptAction.showToast({ message: err });
@@ -233,7 +242,7 @@ export class PageHelper { @@ -233,7 +242,7 @@ export class PageHelper {
233 // 242 //
234 pageModel.currentPage++ 243 pageModel.currentPage++
235 pageModel.viewType = ViewType.LOADED 244 pageModel.viewType = ViewType.LOADED
236 - closeRefresh(pageModel, true) 245 + this.refreshUIEnd(pageModel, true)
237 246
238 if (pageModel.compList.isEmpty()) { 247 if (pageModel.compList.isEmpty()) {
239 // 没数据,展示空页面 248 // 没数据,展示空页面
@@ -277,6 +286,7 @@ export class PageHelper { @@ -277,6 +286,7 @@ export class PageHelper {
277 //聚合页 286 //聚合页
278 if (pageModel.pageType == 1) { 287 if (pageModel.pageType == 1) {
279 PageViewModel.postThemeList(pageModel.currentPage, pageModel.pageSize, pageModel.extra).then((liveReviewDTO) => { 288 PageViewModel.postThemeList(pageModel.currentPage, pageModel.pageSize, pageModel.extra).then((liveReviewDTO) => {
  289 + this.loadMoreEnd(pageModel)
280 if (liveReviewDTO == null || liveReviewDTO.list == null || liveReviewDTO.list.length == 0) { 290 if (liveReviewDTO == null || liveReviewDTO.list == null || liveReviewDTO.list.length == 0) {
281 pageModel.hasMore = false; 291 pageModel.hasMore = false;
282 return; 292 return;
@@ -290,6 +300,7 @@ export class PageHelper { @@ -290,6 +300,7 @@ export class PageHelper {
290 } 300 }
291 }).catch((err: string | Resource) => { 301 }).catch((err: string | Resource) => {
292 promptAction.showToast({ message: err }); 302 promptAction.showToast({ message: err });
  303 + this.loadMoreEnd(pageModel)
293 }) 304 })
294 } else { 305 } else {
295 306
@@ -301,7 +312,7 @@ export class PageHelper { @@ -301,7 +312,7 @@ export class PageHelper {
301 // 默认加载更多走 楼层接口 312 // 默认加载更多走 楼层接口
302 PageViewModel.getPageGroupCompData(pageModel.bizCopy()) 313 PageViewModel.getPageGroupCompData(pageModel.bizCopy())
303 .then((data: PageDTO) => { 314 .then((data: PageDTO) => {
304 - 315 + this.loadMoreEnd(pageModel)
305 if (data == null || data.compList == null || data.compList.length == 0) { 316 if (data == null || data.compList == null || data.compList.length == 0) {
306 pageModel.hasMore = false; 317 pageModel.hasMore = false;
307 } else { 318 } else {
@@ -316,6 +327,7 @@ export class PageHelper { @@ -316,6 +327,7 @@ export class PageHelper {
316 } 327 }
317 }).catch((err: string | Resource) => { 328 }).catch((err: string | Resource) => {
318 promptAction.showToast({ message: err }); 329 promptAction.showToast({ message: err });
  330 + this.loadMoreEnd(pageModel)
319 }) 331 })
320 } 332 }
321 } 333 }
@@ -651,6 +663,7 @@ export class PageHelper { @@ -651,6 +663,7 @@ export class PageHelper {
651 let pageSize = Normal_Page_Size 663 let pageSize = Normal_Page_Size
652 664
653 PageViewModel.getLiveReviewUrl(currentPage, pageSize).then((liveReviewDTO) => { 665 PageViewModel.getLiveReviewUrl(currentPage, pageSize).then((liveReviewDTO) => {
  666 + this.loadMoreEnd(pageModel)
654 if (liveReviewDTO == null || liveReviewDTO.list == null || liveReviewDTO.list.length == 0) { 667 if (liveReviewDTO == null || liveReviewDTO.list == null || liveReviewDTO.list.length == 0) {
655 pageModel.hasMore = false; 668 pageModel.hasMore = false;
656 } else { 669 } else {
@@ -696,9 +709,9 @@ export class PageHelper { @@ -696,9 +709,9 @@ export class PageHelper {
696 this.getLiveRoomDataInfo(pageInfo.oneRequestPageGroupCompList.convertToArray()) 709 this.getLiveRoomDataInfo(pageInfo.oneRequestPageGroupCompList.convertToArray())
697 710
698 } 711 }
699 -  
700 }).catch((err: string | Resource) => { 712 }).catch((err: string | Resource) => {
701 promptAction.showToast({ message: err }); 713 promptAction.showToast({ message: err });
  714 + this.loadMoreEnd(pageModel)
702 }) 715 })
703 } 716 }
704 717
@@ -17,6 +17,7 @@ import { PlayerBottomView } from '../view/PlayerBottomView'; @@ -17,6 +17,7 @@ import { PlayerBottomView } from '../view/PlayerBottomView';
17 import { PlayerRightView } from '../view/PlayerRightView'; 17 import { PlayerRightView } from '../view/PlayerRightView';
18 import { DisplayDirection } from 'wdConstant/Index'; 18 import { DisplayDirection } from 'wdConstant/Index';
19 import { CommentDialogView } from '../view/CommentDialogView'; 19 import { CommentDialogView } from '../view/CommentDialogView';
  20 +import { window } from '@kit.ArkUI';
20 21
21 const TAG = 'DetailPlayShortVideoPage'; 22 const TAG = 'DetailPlayShortVideoPage';
22 23
@@ -294,6 +295,15 @@ export struct DetailPlayShortVideoPage { @@ -294,6 +295,15 @@ export struct DetailPlayShortVideoPage {
294 .margin({ top: 280 }) 295 .margin({ top: 280 })
295 .onClick(() => { 296 .onClick(() => {
296 // 全屏方案待定 297 // 全屏方案待定
  298 + // this.displayDirection = DisplayDirection.VERTICAL
  299 + this.displayDirection = this.displayDirection == DisplayDirection.VERTICAL ?
  300 + DisplayDirection.VIDEO_HORIZONTAL :
  301 + DisplayDirection.VERTICAL
  302 + WindowModel.shared.setPreferredOrientation(this.displayDirection == DisplayDirection.VERTICAL ?
  303 + window.Orientation.PORTRAIT :
  304 + window.Orientation.LANDSCAPE_INVERTED)
  305 +
  306 +
297 }) 307 })
298 308
299 } 309 }
@@ -96,6 +96,7 @@ export struct WDPlayerRenderView { @@ -96,6 +96,7 @@ export struct WDPlayerRenderView {
96 this.onLoad(event) 96 this.onLoad(event)
97 } 97 }
98 }) 98 })
  99 + .zIndex(1000)
99 .width(this.selfSize.width) 100 .width(this.selfSize.width)
100 .height(this.selfSize.height) 101 .height(this.selfSize.height)
101 } 102 }