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
张善主
2024-06-20 16:40:58 +0800
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
6a2016bc214768415ac6fa63908a8f0b934108df
6a2016bc
2 parents
40c32527
90f33fb1
Merge remote-tracking branch 'origin/main'
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
32 additions
and
17 deletions
sight_harmony/features/wdBean/src/main/ets/bean/content/commentInfo.ets
sight_harmony/features/wdComponent/src/main/ets/components/compview/ZhSingleRow06.ets
sight_harmony/features/wdComponent/src/main/ets/components/mine/MinePageUserSimpleInfoUI.ets
sight_harmony/features/wdComponent/src/main/ets/components/page/ThemeListPage.ets
sight_harmony/features/wdComponent/src/main/ets/components/page/template/TemplatePageHelp.ets
sight_harmony/features/wdComponent/src/main/ets/components/reusable/CustomPullToRefresh.ets
sight_harmony/products/phone/oh-package.json5
sight_harmony/features/wdBean/src/main/ets/bean/content/commentInfo.ets
View file @
6a2016b
...
...
@@ -12,4 +12,5 @@ export interface commentInfo {
relType: string;
newsType?: string,
objectType?: string,
userType?: number
}
\ No newline at end of file
...
...
sight_harmony/features/wdComponent/src/main/ets/components/compview/ZhSingleRow06.ets
View file @
6a2016b
...
...
@@ -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)
...
...
sight_harmony/features/wdComponent/src/main/ets/components/mine/MinePageUserSimpleInfoUI.ets
View file @
6a2016b
...
...
@@ -26,6 +26,7 @@ export default struct MinePageUserSimpleInfoUI {
}else{
this.headPhotoUrl = ""
this.levelHead = ""
this.userType = "1"
}
}
...
...
@@ -33,12 +34,20 @@ export default struct MinePageUserSimpleInfoUI {
Row(){
//头像
Stack(){
if (this.headPhotoUrl.length > 0){
Image(this.headPhotoUrl)
.alt(this.userType === '1'
?$r('app.media.default_head'):$r('app.media.AccountOwner_DefaultIcon'))
.alt(this.userType === "1"
?$r('app.media.default_head'):$r('app.media.AccountOwner_DefaultIcon'))
.width(`${this.calcHeight(100)}lpx`)
.height(`${this.calcHeight(100)}lpx`)
.objectFit(ImageFit.Cover)
.borderRadius(50)
}else {
Image(this.userType === "1"?$r('app.media.default_head'):$r('app.media.AccountOwner_DefaultIcon'))
.width(`${this.calcHeight(100)}lpx`)
.height(`${this.calcHeight(100)}lpx`)
.objectFit(ImageFit.Cover)
.borderRadius(50)
}
if(StringUtils.isNotEmpty(this.levelHead)){
Image(this.levelHead)
...
...
sight_harmony/features/wdComponent/src/main/ets/components/page/ThemeListPage.ets
View file @
6a2016b
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';
...
...
sight_harmony/features/wdComponent/src/main/ets/components/page/template/TemplatePageHelp.ets
View file @
6a2016b
...
...
@@ -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('')
}
}
}
...
...
sight_harmony/features/wdComponent/src/main/ets/components/reusable/CustomPullToRefresh.ets
View file @
6a2016b
...
...
@@ -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)
})
});
...
...
sight_harmony/products/phone/oh-package.json5
View file @
6a2016b
...
...
@@ -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"
,
...
...
Please
register
or
login
to post a comment