Showing
4 changed files
with
9 additions
and
8 deletions
| @@ -157,13 +157,14 @@ export class ProcessUtils { | @@ -157,13 +157,14 @@ export class ProcessUtils { | ||
| 157 | * 图集详情页 | 157 | * 图集详情页 |
| 158 | * @param content | 158 | * @param content |
| 159 | * */ | 159 | * */ |
| 160 | - public static gotoMultiPictureListPage(photoList: PhotoListBean[]) { | 160 | + public static gotoMultiPictureListPage(photoList: PhotoListBean[],swiperIndex: number) { |
| 161 | let taskAction: Action = { | 161 | let taskAction: Action = { |
| 162 | type: 'JUMP_DETAIL_PAGE', | 162 | type: 'JUMP_DETAIL_PAGE', |
| 163 | params: { | 163 | params: { |
| 164 | detailPageType: 18, | 164 | detailPageType: 18, |
| 165 | extra: { | 165 | extra: { |
| 166 | - photoList | 166 | + photoList, |
| 167 | + swiperIndex, | ||
| 167 | } as ExtraDTO | 168 | } as ExtraDTO |
| 168 | } as Params, | 169 | } as Params, |
| 169 | }; | 170 | }; |
| @@ -109,7 +109,7 @@ function handleJsCallReceiveH5Data(data: Message) { | @@ -109,7 +109,7 @@ function handleJsCallReceiveH5Data(data: Message) { | ||
| 109 | } | 109 | } |
| 110 | return photo | 110 | return photo |
| 111 | }) | 111 | }) |
| 112 | - ProcessUtils.gotoMultiPictureListPage(photoList) | 112 | + ProcessUtils.gotoMultiPictureListPage(photoList,0) |
| 113 | } | 113 | } |
| 114 | break; | 114 | break; |
| 115 | case '5': | 115 | case '5': |
| @@ -211,7 +211,7 @@ export struct DynamicDetailComponent { | @@ -211,7 +211,7 @@ export struct DynamicDetailComponent { | ||
| 211 | } | 211 | } |
| 212 | } | 212 | } |
| 213 | .onClick((event: ClickEvent) => { | 213 | .onClick((event: ClickEvent) => { |
| 214 | - ProcessUtils.gotoMultiPictureListPage(this.contentDetailData.photoList) | 214 | + ProcessUtils.gotoMultiPictureListPage(this.contentDetailData.photoList,index) |
| 215 | }) | 215 | }) |
| 216 | } else { | 216 | } else { |
| 217 | GridCol({ | 217 | GridCol({ |
| @@ -228,7 +228,7 @@ export struct DynamicDetailComponent { | @@ -228,7 +228,7 @@ export struct DynamicDetailComponent { | ||
| 228 | }) | 228 | }) |
| 229 | } | 229 | } |
| 230 | .onClick((event: ClickEvent) => { | 230 | .onClick((event: ClickEvent) => { |
| 231 | - ProcessUtils.gotoMultiPictureListPage(this.contentDetailData.photoList) | 231 | + ProcessUtils.gotoMultiPictureListPage(this.contentDetailData.photoList,index) |
| 232 | }) | 232 | }) |
| 233 | } | 233 | } |
| 234 | } else if (this.contentDetailData.photoList.length === 4) { | 234 | } else if (this.contentDetailData.photoList.length === 4) { |
| @@ -240,7 +240,7 @@ export struct DynamicDetailComponent { | @@ -240,7 +240,7 @@ export struct DynamicDetailComponent { | ||
| 240 | .borderRadius(this.caclImageRadius(index)) | 240 | .borderRadius(this.caclImageRadius(index)) |
| 241 | } | 241 | } |
| 242 | .onClick((event: ClickEvent) => { | 242 | .onClick((event: ClickEvent) => { |
| 243 | - ProcessUtils.gotoMultiPictureListPage(this.contentDetailData.photoList) | 243 | + ProcessUtils.gotoMultiPictureListPage(this.contentDetailData.photoList,index) |
| 244 | }) | 244 | }) |
| 245 | } else { | 245 | } else { |
| 246 | GridCol({ | 246 | GridCol({ |
| @@ -251,7 +251,7 @@ export struct DynamicDetailComponent { | @@ -251,7 +251,7 @@ export struct DynamicDetailComponent { | ||
| 251 | .borderRadius(this.caclImageRadius(index)) | 251 | .borderRadius(this.caclImageRadius(index)) |
| 252 | } | 252 | } |
| 253 | .onClick((event: ClickEvent) => { | 253 | .onClick((event: ClickEvent) => { |
| 254 | - ProcessUtils.gotoMultiPictureListPage(this.contentDetailData.photoList) | 254 | + ProcessUtils.gotoMultiPictureListPage(this.contentDetailData.photoList,index) |
| 255 | }) | 255 | }) |
| 256 | } | 256 | } |
| 257 | }) | 257 | }) |
| @@ -102,7 +102,7 @@ export struct Card19Component { | @@ -102,7 +102,7 @@ export struct Card19Component { | ||
| 102 | } | 102 | } |
| 103 | return photo | 103 | return photo |
| 104 | }) | 104 | }) |
| 105 | - ProcessUtils.gotoMultiPictureListPage(photoList) | 105 | + ProcessUtils.gotoMultiPictureListPage(photoList,0) |
| 106 | }) | 106 | }) |
| 107 | //TODO 底部的:分享、评论、点赞 功能;需要引用一个公共组件 | 107 | //TODO 底部的:分享、评论、点赞 功能;需要引用一个公共组件 |
| 108 | } | 108 | } |
-
Please register or login to post a comment