wangliang_wd

Merge branch 'main' of http://192.168.1.42/developOne/harmonyPool into main

* 'main' of http://192.168.1.42/developOne/harmonyPool:
  fix: 19069 精选评论卡-非人民号账号登录默认头像显示的是人民号默认头像
  升级lottie动画库
  feat:1)优化样板信息流块,无网络状态的业务逻辑处理
  fix(18705): UI还原问题-【生产】进入视频直播,点击问道更多,android正常显示,鸿蒙显示空白页,看视频
  fix(18895): 功能缺陷-【生产】点击正在直播卡片,无反应
  电子报骨架屏修改
  fix: 18883 功能缺陷-【uat】 进入视频详情,点击全屏按钮,进入全屏,按住进度条不放,会自动消失,android不消失,看图
... ... @@ -12,4 +12,5 @@ export interface commentInfo {
relType: string;
newsType?: string,
objectType?: string,
userType?: number
}
\ No newline at end of file
... ...
... ... @@ -49,7 +49,7 @@ export struct ENewspaperItemComponent {
})
.objectFit(ImageFit.Fill)
.zIndex(10)
newsSkeleton()
newsSkeleton({showBottom: false})
.visibility(this.isShowSkeleton ? Visibility.Visible : Visibility.None)
.width('100%')
.zIndex(1)
... ...
... ... @@ -186,8 +186,11 @@ export struct ZhSingleRow06 {
this.loadImg
? item.operDataList[0]?.commentInfo?.userHeaderUrl
? item.operDataList[0].commentInfo.userHeaderUrl
: $r('app.media.icon_default_head_mater')
: commentViewModel.adjustUserType(item.operDataList[0].commentInfo?.userType)
? $r('app.media.WDAccountOwnerHedaerDefaultIcon')
: $r('app.media.WDAccountDefaultIcon')
: $r('app.media.icon_default_head_mater'))
.width(32)
.height(32)
.borderRadius(16)
... ...
import { Action, CompDTO, ContentDTO } from 'wdBean';
import { CommonConstants, ViewType } from 'wdConstant';
import PageViewModel from '../../viewmodel/PageViewModel';
import PageModel from '../../viewmodel/PageModel';
import { Action } from 'wdBean';
import router from '@ohos.router';
import { CardParser } from '../CardParser';
import { channelSkeleton } from '../skeleton/channelSkeleton';
import { ErrorComponent } from '../view/ErrorComponent';
import { EmptyComponent } from '../view/EmptyComponent';
import { listTouchEvent } from '../../utils/PullDownRefresh';
import PageAdModel from '../../viewmodel/PageAdvModel';
import { RefreshLayoutBean } from '../refresh/RefreshLayoutBean';
import RefreshLayout from '../refresh/RefreshLayout';
import PageNoMoreLayout from './PageNoMoreLayout';
import { NoMoreBean } from './NoMoreBean';
import CommonPageTitle from './CommonPageTitle';
import TemplatePageComponent from './template/TemplatePageComponent';
import { TemplatePageConstant } from './template/TemplatePageConstant';
... ...
... ... @@ -38,10 +38,12 @@ export class TemplatePageHelp extends BasePageHelp {
this.treatDiffBusinessDataSource()
} else if (pageModel.compList.size() > 0) {
// 加载缓存数据了,不用无网络提示
this.closeAnimation(this.pageModel.resolve)
} else {
// 无网情况
this.pageModel.pageCompType = TemplatePageStateType.OTHER
this.pageModel.noNormalState = WDViewDefaultType.WDViewDefaultType_NoNetwork
}
}
... ... @@ -293,6 +295,12 @@ export class TemplatePageHelp extends BasePageHelp {
}
}
private closeAnimation(resolve?: (value: string | PromiseLike<string>) => void) {
if (resolve) {
resolve('')
}
}
}
... ...
... ... @@ -44,9 +44,10 @@ export struct CustomPullToRefresh {
this.onRefresh(resolve)
}).then((text) => {
setTimeout(()=>{
this.refreshDestroy()
// 延时500,展示第二段动画 TODO 是否去掉?
if(text){
this.refreshState = 3
this.refreshDestroy()
setTimeout(() => {
success(text)
}, 500)
... ... @@ -54,6 +55,11 @@ export struct CustomPullToRefresh {
this.refreshState = 4
// 延时将状态改为空闲,组件closeRefresh做了延时,不能配置,这里配合延时
}, 1200)
}else {
success(text)
this.refreshState = 4
}
},500)
})
});
... ...
... ... @@ -6,6 +6,7 @@
@Component
export struct newsSkeleton {
@State quantity: Array<number> = [1, 2, 3,]
@State showBottom: boolean = true
build() {
Row() {
... ... @@ -116,10 +117,11 @@ export struct newsSkeleton {
right: 15,
left: 15
})
if (this.showBottom) {
Column().backgroundColor('#CBCBCB').height(5).width(339)
Column().backgroundColor('#909090').height(5).width(326)
}
}
.width('100%')
}
.height('100%')
... ...
... ... @@ -66,10 +66,10 @@ export struct LiveHorizontalCardComponent {
liveToMore() {
if (!!this.compDTO.dataSourceType) {
if (this.compDTO.dataSourceType === 'OBJECT_POS') {
ProcessUtils.jumpChannelTab(this.compDTO.objectId, this.compDTO.pageId as string, this.compDTO.objectTitle)
return;
}
// if (this.compDTO.dataSourceType === 'OBJECT_POS') {
// ProcessUtils.jumpChannelTab(this.compDTO.objectId, this.compDTO.pageId as string, this.compDTO.objectTitle)
// return;
// }
if (this.compDTO.linkUrl) {
let taskAction: Action = {
type: 'JUMP_H5_BY_WEB_VIEW',
... ... @@ -236,6 +236,13 @@ export struct LiveHorizontalCardComponent {
} else if (this.compDTO.operDataList.length) {
// 一个
LiveHorizontalCardForOneComponent({ contentDTO: this.compDTO.operDataList[0] })
.onClick(() => {
InfomationCardClick.track(this.compDTO, this.compDTO.operDataList[0], this.pageId, this.pageName)
if (this.compDTO.operDataList[0].objectType != '0') {
console.log(this.compDTO.operDataList[0].objectId)
this.gotoLive(this.compDTO.operDataList[0])
}
})
}
}
// .width(CommonConstants.FULL_WIDTH)
... ...
... ... @@ -142,6 +142,16 @@ export struct PlayerFullScreenView {
.margin({ left: 16, right: 8 })
PlayerProgressFullScreenView({ playerController: this.playerController }).layoutWeight(1)
.onTouch((event?: TouchEvent) => {
if (event) {
if (event.type === TouchType.Down) {
clearInterval(this.timer)
}
if (event.type === TouchType.Up) {
this.restartTimer();
}
}
})
Text(DateTimeUtils.secondToTime(this.videoDuration))
.fontSize(12)
... ...
... ... @@ -7,7 +7,7 @@
"main": "",
"version": "1.0.0",
"dependencies": {
"@ohos/lottie": "2.0.10",
"@ohos/lottie": "v2.0.11-rc.6",
"wdComponent": "file:../../features/wdComponent",
"wdConstant": "file:../../commons/wdConstant",
"wdKit": "file:../../commons/wdKit",
... ...