wangliang_wd

feat:优化人民号动态卡图片点击

... ... @@ -266,6 +266,20 @@ struct createImg {
this.longPicTip(item.weight, item.height)
}
.onClick(() => {
const photoList: PhotoListBean[] = this.fullColumnImgUrls.map(item => {
const photo: PhotoListBean = {
width: item.weight,
height: item.height,
picPath: item.url || item.fullUrl,
picDesc: '',
itemType:2,
id:0
}
return photo
})
ProcessUtils.gotoMultiPictureListPage(photoList, index)
})
}
} else if (this.getPicType(item.weight, item.height) === 4) {
GridCol({
... ... @@ -288,6 +302,20 @@ struct createImg {
this.onePicW = event?.width || 0;
this.onePicH = event?.height || 0;
})
.onClick(() => {
const photoList: PhotoListBean[] = this.fullColumnImgUrls.map(item => {
const photo: PhotoListBean = {
width: item.weight,
height: item.height,
picPath: item.url || item.fullUrl,
picDesc: '',
itemType:2,
id:0
}
return photo
})
ProcessUtils.gotoMultiPictureListPage(photoList, index)
})
}
} else {
GridCol({
... ... @@ -313,6 +341,20 @@ struct createImg {
this.longPicTip(this.onePicW, this.onePicH)
}
}
.onClick(() => {
const photoList: PhotoListBean[] = this.fullColumnImgUrls.map(item => {
const photo: PhotoListBean = {
width: item.weight,
height: item.height,
picPath: item.url || item.fullUrl,
picDesc: '',
itemType:2,
id:0
}
return photo
})
ProcessUtils.gotoMultiPictureListPage(photoList, index)
})
}
}
} else if (this.fullColumnImgUrls.length === 5) {
... ... @@ -334,6 +376,23 @@ struct createImg {
this.longPicTip(item.weight, item.height)
}
}
.onClick(() => {
let photoList: PhotoListBean[] = []
this.fullColumnImgUrls.forEach((item,index) => {
const photo: PhotoListBean = {
width: item.weight,
height: item.height,
picPath: item.url || item.fullUrl,
picDesc: '',
itemType:2,
id:0
}
if (index !== 2) {
photoList.push(photo)
}
})
ProcessUtils.gotoMultiPictureListPage(photoList, index>2?index-1:index)
})
}
} else {
GridCol({
... ...