Merge remote-tracking branch 'origin/main'
# Conflicts: # sight_harmony/commons/wdRouter/src/main/ets/utils/ProcessUtils.ets # sight_harmony/commons/wdWebComponent/src/main/ets/pages/JsBridgeBiz.ets
Showing
2 changed files
with
4 additions
and
3 deletions
| @@ -157,14 +157,14 @@ export class ProcessUtils { | @@ -157,14 +157,14 @@ export class ProcessUtils { | ||
| 157 | * 图集详情页 | 157 | * 图集详情页 |
| 158 | * @param content | 158 | * @param content |
| 159 | * */ | 159 | * */ |
| 160 | - public static gotoMultiPictureListPage(photoList: PhotoListBean[],swiperIndex: number) { | 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 | + swiperIndex |
| 168 | } as ExtraDTO | 168 | } as ExtraDTO |
| 169 | } as Params, | 169 | } as Params, |
| 170 | }; | 170 | }; |
| @@ -99,6 +99,7 @@ function handleJsCallReceiveH5Data(data: Message) { | @@ -99,6 +99,7 @@ function handleJsCallReceiveH5Data(data: Message) { | ||
| 99 | case '3': | 99 | case '3': |
| 100 | let imgListData: IImgListData = JSON.parse(data?.data?.imgListData || "{}") | 100 | let imgListData: IImgListData = JSON.parse(data?.data?.imgListData || "{}") |
| 101 | let imgArr = imgListData?.imgArr || [] | 101 | let imgArr = imgListData?.imgArr || [] |
| 102 | + let swiperIndex = imgListData?.imgIndex | ||
| 102 | if (imgArr.length > 0) { | 103 | if (imgArr.length > 0) { |
| 103 | const photoList: PhotoListBean[] = imgArr.map(item => { | 104 | const photoList: PhotoListBean[] = imgArr.map(item => { |
| 104 | const photo: PhotoListBean = { | 105 | const photo: PhotoListBean = { |
| @@ -109,7 +110,7 @@ function handleJsCallReceiveH5Data(data: Message) { | @@ -109,7 +110,7 @@ function handleJsCallReceiveH5Data(data: Message) { | ||
| 109 | } | 110 | } |
| 110 | return photo | 111 | return photo |
| 111 | }) | 112 | }) |
| 112 | - ProcessUtils.gotoMultiPictureListPage(photoList,0) | 113 | + ProcessUtils.gotoMultiPictureListPage(photoList,swiperIndex) |
| 113 | } | 114 | } |
| 114 | break; | 115 | break; |
| 115 | case '5': | 116 | case '5': |
-
Please register or login to post a comment