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
shishuangxi
2024-04-23 17:39:09 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e1740631919c29cb17aa901f0a8a64f50c57aef2
e1740631
1 parent
724134e6
修改设置页面
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
sight_harmony/features/wdComponent/src/main/ets/components/setting/MineSettingComponent.ets
sight_harmony/features/wdComponent/src/main/ets/model/MineSettingDatasModel.ets
sight_harmony/features/wdComponent/src/main/ets/components/setting/MineSettingComponent.ets
View file @
e174063
...
...
@@ -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 @
e174063
...
...
@@ -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