Toggle navigation
Toggle navigation
This project
Loading...
Sign in
developOne
/
harmonyPool
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
wangliang_wd
2024-10-17 14:42:11 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
abafbe5fef1197975cd7e868b7c94c0064928ebd
abafbe5f
1 parent
58801c0c
feat:优化人民号动态卡图片点击
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
59 additions
and
0 deletions
sight_harmony/features/wdComponent/src/main/ets/components/cardview/Card19Component.ets
sight_harmony/features/wdComponent/src/main/ets/components/cardview/Card19Component.ets
View file @
abafbe5
...
...
@@ -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({
...
...
Please
register
or
login
to post a comment