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-04-23 17:46:21 +0800
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
8cfa8ca8c90c66feae9bbf2d922411bf3b160364
8cfa8ca8
2 parents
12c9a29e
e1740631
Merge remote-tracking branch 'origin/main'
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
13 deletions
sight_harmony/commons/wdRouter/src/main/ets/utils/ProcessUtils.ets
sight_harmony/features/wdComponent/src/main/ets/components/DynamicDetailComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/setting/MineSettingComponent.ets
sight_harmony/features/wdComponent/src/main/ets/model/MineSettingDatasModel.ets
sight_harmony/commons/wdRouter/src/main/ets/utils/ProcessUtils.ets
View file @
8cfa8ca
import { Action, ContentDTO, Params } from 'wdBean';
import { Action, ContentDTO, Params
, PhotoListBean
} from 'wdBean';
import { ExtraDTO } from 'wdBean/src/main/ets/bean/component/extra/ExtraDTO';
import { Logger } from 'wdKit';
import { StringUtils } from 'wdKit/src/main/ets/utils/StringUtils';
...
...
@@ -92,20 +92,18 @@ export class ProcessUtils {
* 图集详情页
* @param content
* */
p
rivate static gotoAtlasDetailPage(content: ContentDTO
) {
p
ublic static gotoMultiPictureListPage(photoList: PhotoListBean[]
) {
let taskAction: Action = {
type: 'JUMP_DETAIL_PAGE',
params: {
detailPageType: 17,
contentID: content?.objectId,
detailPageType: 18,
extra: {
relType: content?.relType,
relId: content?.relId,
photoList
} as ExtraDTO
} as Params,
};
WDRouterRule.jumpWithAction(taskAction)
Logger.debug(TAG, `goto
AtlasDetailPage, ${content.objectId}
`);
Logger.debug(TAG, `goto
MultiPictureListPage
`);
}
private static gotoSpecialTopic(content: ContentDTO) {
...
...
@@ -195,4 +193,24 @@ export class ProcessUtils {
WDRouterRule.jumpWithAction(taskAction)
Logger.debug(TAG, `gotoAudio, ${content.objectId}`);
}
/**
* 图片预览页
* @param content
* */
private static gotoAtlasDetailPage(content: ContentDTO) {
let taskAction: Action = {
type: 'JUMP_DETAIL_PAGE',
params: {
detailPageType: 17,
contentID: content?.objectId,
extra: {
relType: content?.relType,
relId: content?.relId,
} as ExtraDTO
} as Params,
};
WDRouterRule.jumpWithAction(taskAction)
Logger.debug(TAG, `gotoAtlasDetailPage, ${content.objectId}`);
}
}
\ No newline at end of file
...
...
sight_harmony/features/wdComponent/src/main/ets/components/DynamicDetailComponent.ets
View file @
8cfa8ca
...
...
@@ -203,7 +203,7 @@ export struct DynamicDetailComponent {
}
}
.onClick((event: ClickEvent) => {
ProcessUtils.
processPage(this.mJumpInfo
)
ProcessUtils.
gotoMultiPictureListPage(this.contentDetailData.photoList
)
})
} else {
GridCol({
...
...
sight_harmony/features/wdComponent/src/main/ets/components/setting/MineSettingComponent.ets
View file @
8cfa8ca
...
...
@@ -251,7 +251,7 @@ export struct MineSettingComponent {
// 右侧文案和右箭头
Row() {
Text((item.
title=='清除缓存
') ? this.cacheSize.toFixed(2) + 'MB' : '')
Text((item.
itemType=='clear_cache
') ? this.cacheSize.toFixed(2) + 'MB' : '')
.fontColor('#999999')
.maxLines(1)
Image($r('app.media.mine_user_arrow'))
...
...
@@ -270,14 +270,14 @@ export struct MineSettingComponent {
}
.height('54lpx')
.onClick(() => {
if (item.
title == '账户与安全
') {
if (item.
itemType == 'account
') {
let params: Params = {
pageID: 'AccountAndSecurityLayout'
}
WDRouterRule.jumpWithPage(WDRouterPage.settingPage, params)
} else if (item.
title == '隐私设罝
') {
} else if (item.
itemType == 'private_setting
') {
WDRouterRule.jumpWithPage(WDRouterPage.privacySettingPage)
} else if (item.
title == '清除缓存
') {
} else if (item.
itemType == 'clear_cache
') {
this.dialogController.open()
}
})
...
...
sight_harmony/features/wdComponent/src/main/ets/model/MineSettingDatasModel.ets
View file @
8cfa8ca
...
...
@@ -52,7 +52,7 @@ class MineSettingDatasModel{
let suspensionState=SPHelper.default.getSync(SpConstants.SETTING_SUSPENSION_SWITCH,false) as boolean
this.mainSettingData.push(new MineMainSettingFunctionItem(null, '开启播放器悬浮窗', null, 1, suspensionState,"suspensionState_switch"))
this.mainSettingData.push(new MineMainSettingFunctionItem(null, null, null, 2, null,""))
this.mainSettingData.push(new MineMainSettingFunctionItem(null, '清除缓存', '32MB', 0, false,""))
this.mainSettingData.push(new MineMainSettingFunctionItem(null, '清除缓存', '32MB', 0, false,"
clear_cache
"))
this.mainSettingData.push(new MineMainSettingFunctionItem(null, '评价我们', null, 0, false,""))
return this.mainSettingData
...
...
Please
register
or
login
to post a comment