Showing
4 changed files
with
31 additions
and
13 deletions
| 1 | -import { Action, ContentDTO, Params } from 'wdBean'; | 1 | +import { Action, ContentDTO, Params, PhotoListBean } from 'wdBean'; |
| 2 | import { ExtraDTO } from 'wdBean/src/main/ets/bean/component/extra/ExtraDTO'; | 2 | import { ExtraDTO } from 'wdBean/src/main/ets/bean/component/extra/ExtraDTO'; |
| 3 | import { Logger } from 'wdKit'; | 3 | import { Logger } from 'wdKit'; |
| 4 | import { StringUtils } from 'wdKit/src/main/ets/utils/StringUtils'; | 4 | import { StringUtils } from 'wdKit/src/main/ets/utils/StringUtils'; |
| @@ -92,20 +92,18 @@ export class ProcessUtils { | @@ -92,20 +92,18 @@ export class ProcessUtils { | ||
| 92 | * 图集详情页 | 92 | * 图集详情页 |
| 93 | * @param content | 93 | * @param content |
| 94 | * */ | 94 | * */ |
| 95 | - private static gotoAtlasDetailPage(content: ContentDTO) { | 95 | + public static gotoMultiPictureListPage(photoList: PhotoListBean[]) { |
| 96 | let taskAction: Action = { | 96 | let taskAction: Action = { |
| 97 | type: 'JUMP_DETAIL_PAGE', | 97 | type: 'JUMP_DETAIL_PAGE', |
| 98 | params: { | 98 | params: { |
| 99 | - detailPageType: 17, | ||
| 100 | - contentID: content?.objectId, | 99 | + detailPageType: 18, |
| 101 | extra: { | 100 | extra: { |
| 102 | - relType: content?.relType, | ||
| 103 | - relId: content?.relId, | 101 | + photoList |
| 104 | } as ExtraDTO | 102 | } as ExtraDTO |
| 105 | } as Params, | 103 | } as Params, |
| 106 | }; | 104 | }; |
| 107 | WDRouterRule.jumpWithAction(taskAction) | 105 | WDRouterRule.jumpWithAction(taskAction) |
| 108 | - Logger.debug(TAG, `gotoAtlasDetailPage, ${content.objectId}`); | 106 | + Logger.debug(TAG, `gotoMultiPictureListPage`); |
| 109 | } | 107 | } |
| 110 | 108 | ||
| 111 | private static gotoSpecialTopic(content: ContentDTO) { | 109 | private static gotoSpecialTopic(content: ContentDTO) { |
| @@ -195,4 +193,24 @@ export class ProcessUtils { | @@ -195,4 +193,24 @@ export class ProcessUtils { | ||
| 195 | WDRouterRule.jumpWithAction(taskAction) | 193 | WDRouterRule.jumpWithAction(taskAction) |
| 196 | Logger.debug(TAG, `gotoAudio, ${content.objectId}`); | 194 | Logger.debug(TAG, `gotoAudio, ${content.objectId}`); |
| 197 | } | 195 | } |
| 196 | + | ||
| 197 | + /** | ||
| 198 | + * 图片预览页 | ||
| 199 | + * @param content | ||
| 200 | + * */ | ||
| 201 | + private static gotoAtlasDetailPage(content: ContentDTO) { | ||
| 202 | + let taskAction: Action = { | ||
| 203 | + type: 'JUMP_DETAIL_PAGE', | ||
| 204 | + params: { | ||
| 205 | + detailPageType: 17, | ||
| 206 | + contentID: content?.objectId, | ||
| 207 | + extra: { | ||
| 208 | + relType: content?.relType, | ||
| 209 | + relId: content?.relId, | ||
| 210 | + } as ExtraDTO | ||
| 211 | + } as Params, | ||
| 212 | + }; | ||
| 213 | + WDRouterRule.jumpWithAction(taskAction) | ||
| 214 | + Logger.debug(TAG, `gotoAtlasDetailPage, ${content.objectId}`); | ||
| 215 | + } | ||
| 198 | } | 216 | } |
| @@ -203,7 +203,7 @@ export struct DynamicDetailComponent { | @@ -203,7 +203,7 @@ export struct DynamicDetailComponent { | ||
| 203 | } | 203 | } |
| 204 | } | 204 | } |
| 205 | .onClick((event: ClickEvent) => { | 205 | .onClick((event: ClickEvent) => { |
| 206 | - ProcessUtils.processPage(this.mJumpInfo) | 206 | + ProcessUtils.gotoMultiPictureListPage(this.contentDetailData.photoList) |
| 207 | }) | 207 | }) |
| 208 | } else { | 208 | } else { |
| 209 | GridCol({ | 209 | GridCol({ |
| @@ -251,7 +251,7 @@ export struct MineSettingComponent { | @@ -251,7 +251,7 @@ export struct MineSettingComponent { | ||
| 251 | 251 | ||
| 252 | // 右侧文案和右箭头 | 252 | // 右侧文案和右箭头 |
| 253 | Row() { | 253 | Row() { |
| 254 | - Text((item.title=='清除缓存') ? this.cacheSize.toFixed(2) + 'MB' : '') | 254 | + Text((item.itemType=='clear_cache') ? this.cacheSize.toFixed(2) + 'MB' : '') |
| 255 | .fontColor('#999999') | 255 | .fontColor('#999999') |
| 256 | .maxLines(1) | 256 | .maxLines(1) |
| 257 | Image($r('app.media.mine_user_arrow')) | 257 | Image($r('app.media.mine_user_arrow')) |
| @@ -270,14 +270,14 @@ export struct MineSettingComponent { | @@ -270,14 +270,14 @@ export struct MineSettingComponent { | ||
| 270 | } | 270 | } |
| 271 | .height('54lpx') | 271 | .height('54lpx') |
| 272 | .onClick(() => { | 272 | .onClick(() => { |
| 273 | - if (item.title == '账户与安全') { | 273 | + if (item.itemType == 'account') { |
| 274 | let params: Params = { | 274 | let params: Params = { |
| 275 | pageID: 'AccountAndSecurityLayout' | 275 | pageID: 'AccountAndSecurityLayout' |
| 276 | } | 276 | } |
| 277 | WDRouterRule.jumpWithPage(WDRouterPage.settingPage, params) | 277 | WDRouterRule.jumpWithPage(WDRouterPage.settingPage, params) |
| 278 | - } else if (item.title == '隐私设罝') { | 278 | + } else if (item.itemType == 'private_setting') { |
| 279 | WDRouterRule.jumpWithPage(WDRouterPage.privacySettingPage) | 279 | WDRouterRule.jumpWithPage(WDRouterPage.privacySettingPage) |
| 280 | - } else if (item.title == '清除缓存') { | 280 | + } else if (item.itemType == 'clear_cache') { |
| 281 | this.dialogController.open() | 281 | this.dialogController.open() |
| 282 | } | 282 | } |
| 283 | }) | 283 | }) |
| @@ -52,7 +52,7 @@ class MineSettingDatasModel{ | @@ -52,7 +52,7 @@ class MineSettingDatasModel{ | ||
| 52 | let suspensionState=SPHelper.default.getSync(SpConstants.SETTING_SUSPENSION_SWITCH,false) as boolean | 52 | let suspensionState=SPHelper.default.getSync(SpConstants.SETTING_SUSPENSION_SWITCH,false) as boolean |
| 53 | this.mainSettingData.push(new MineMainSettingFunctionItem(null, '开启播放器悬浮窗', null, 1, suspensionState,"suspensionState_switch")) | 53 | this.mainSettingData.push(new MineMainSettingFunctionItem(null, '开启播放器悬浮窗', null, 1, suspensionState,"suspensionState_switch")) |
| 54 | this.mainSettingData.push(new MineMainSettingFunctionItem(null, null, null, 2, null,"")) | 54 | this.mainSettingData.push(new MineMainSettingFunctionItem(null, null, null, 2, null,"")) |
| 55 | - this.mainSettingData.push(new MineMainSettingFunctionItem(null, '清除缓存', '32MB', 0, false,"")) | 55 | + this.mainSettingData.push(new MineMainSettingFunctionItem(null, '清除缓存', '32MB', 0, false,"clear_cache")) |
| 56 | this.mainSettingData.push(new MineMainSettingFunctionItem(null, '评价我们', null, 0, false,"")) | 56 | this.mainSettingData.push(new MineMainSettingFunctionItem(null, '评价我们', null, 0, false,"")) |
| 57 | 57 | ||
| 58 | return this.mainSettingData | 58 | return this.mainSettingData |
-
Please register or login to post a comment