Showing
1 changed file
with
59 additions
and
0 deletions
| @@ -266,6 +266,20 @@ struct createImg { | @@ -266,6 +266,20 @@ struct createImg { | ||
| 266 | this.longPicTip(item.weight, item.height) | 266 | this.longPicTip(item.weight, item.height) |
| 267 | 267 | ||
| 268 | } | 268 | } |
| 269 | + .onClick(() => { | ||
| 270 | + const photoList: PhotoListBean[] = this.fullColumnImgUrls.map(item => { | ||
| 271 | + const photo: PhotoListBean = { | ||
| 272 | + width: item.weight, | ||
| 273 | + height: item.height, | ||
| 274 | + picPath: item.url || item.fullUrl, | ||
| 275 | + picDesc: '', | ||
| 276 | + itemType:2, | ||
| 277 | + id:0 | ||
| 278 | + } | ||
| 279 | + return photo | ||
| 280 | + }) | ||
| 281 | + ProcessUtils.gotoMultiPictureListPage(photoList, index) | ||
| 282 | + }) | ||
| 269 | } | 283 | } |
| 270 | } else if (this.getPicType(item.weight, item.height) === 4) { | 284 | } else if (this.getPicType(item.weight, item.height) === 4) { |
| 271 | GridCol({ | 285 | GridCol({ |
| @@ -288,6 +302,20 @@ struct createImg { | @@ -288,6 +302,20 @@ struct createImg { | ||
| 288 | this.onePicW = event?.width || 0; | 302 | this.onePicW = event?.width || 0; |
| 289 | this.onePicH = event?.height || 0; | 303 | this.onePicH = event?.height || 0; |
| 290 | }) | 304 | }) |
| 305 | + .onClick(() => { | ||
| 306 | + const photoList: PhotoListBean[] = this.fullColumnImgUrls.map(item => { | ||
| 307 | + const photo: PhotoListBean = { | ||
| 308 | + width: item.weight, | ||
| 309 | + height: item.height, | ||
| 310 | + picPath: item.url || item.fullUrl, | ||
| 311 | + picDesc: '', | ||
| 312 | + itemType:2, | ||
| 313 | + id:0 | ||
| 314 | + } | ||
| 315 | + return photo | ||
| 316 | + }) | ||
| 317 | + ProcessUtils.gotoMultiPictureListPage(photoList, index) | ||
| 318 | + }) | ||
| 291 | } | 319 | } |
| 292 | } else { | 320 | } else { |
| 293 | GridCol({ | 321 | GridCol({ |
| @@ -313,6 +341,20 @@ struct createImg { | @@ -313,6 +341,20 @@ struct createImg { | ||
| 313 | this.longPicTip(this.onePicW, this.onePicH) | 341 | this.longPicTip(this.onePicW, this.onePicH) |
| 314 | } | 342 | } |
| 315 | } | 343 | } |
| 344 | + .onClick(() => { | ||
| 345 | + const photoList: PhotoListBean[] = this.fullColumnImgUrls.map(item => { | ||
| 346 | + const photo: PhotoListBean = { | ||
| 347 | + width: item.weight, | ||
| 348 | + height: item.height, | ||
| 349 | + picPath: item.url || item.fullUrl, | ||
| 350 | + picDesc: '', | ||
| 351 | + itemType:2, | ||
| 352 | + id:0 | ||
| 353 | + } | ||
| 354 | + return photo | ||
| 355 | + }) | ||
| 356 | + ProcessUtils.gotoMultiPictureListPage(photoList, index) | ||
| 357 | + }) | ||
| 316 | } | 358 | } |
| 317 | } | 359 | } |
| 318 | } else if (this.fullColumnImgUrls.length === 5) { | 360 | } else if (this.fullColumnImgUrls.length === 5) { |
| @@ -334,6 +376,23 @@ struct createImg { | @@ -334,6 +376,23 @@ struct createImg { | ||
| 334 | this.longPicTip(item.weight, item.height) | 376 | this.longPicTip(item.weight, item.height) |
| 335 | } | 377 | } |
| 336 | } | 378 | } |
| 379 | + .onClick(() => { | ||
| 380 | + let photoList: PhotoListBean[] = [] | ||
| 381 | + this.fullColumnImgUrls.forEach((item,index) => { | ||
| 382 | + const photo: PhotoListBean = { | ||
| 383 | + width: item.weight, | ||
| 384 | + height: item.height, | ||
| 385 | + picPath: item.url || item.fullUrl, | ||
| 386 | + picDesc: '', | ||
| 387 | + itemType:2, | ||
| 388 | + id:0 | ||
| 389 | + } | ||
| 390 | + if (index !== 2) { | ||
| 391 | + photoList.push(photo) | ||
| 392 | + } | ||
| 393 | + }) | ||
| 394 | + ProcessUtils.gotoMultiPictureListPage(photoList, index>2?index-1:index) | ||
| 395 | + }) | ||
| 337 | } | 396 | } |
| 338 | } else { | 397 | } else { |
| 339 | GridCol({ | 398 | GridCol({ |
-
Please register or login to post a comment