wangliang_wd

feat:优化我的收藏,选择状态UI问题

... ... @@ -337,10 +337,10 @@ struct createImg {
.backgroundColor(0xf5f5f5)
// .aspectRatio(this.onePicW > this.onePicH ? 343 / 198 : 228 / 305)
.width('100%')
.height(this.getPicHeight(item.weight,item.height))
// .constraintSize({
// maxHeight: this.getPicHeight(item.weight,item.height)
// })
// .height(this.getPicHeight(item.weight,item.height))
.constraintSize({
maxHeight: this.getPicHeight(item.weight,item.height)
})
.autoResize(true)
.borderRadius(this.caclImageRadius(index))
.borderStyle(BorderStyle.Solid)
... ...
... ... @@ -191,7 +191,7 @@ struct MyCollectionListPage {
selectCallback:((item)=>{
this.addCompDTO(compDTO.isSelect,compDTO)
})
}).margin({right: 16})
})
}
BigPicCardComponent({compDTO:compDTO,contentDTO:compDTO.operDataList[0],pageId:TrackConstants.PageName.My_Collect,pageName:TrackConstants.PageName.My_Collect})
}.onVisibleAreaChange([0.0, 1.0], (isVisible: boolean, currentRatio: number) => {
... ...
... ... @@ -14,7 +14,7 @@ export struct CustomBottomFuctionUI {
.width(20)
.height(20)
// .margin({right:'31lpx' })
.margin({right: 31 })
.margin({right: 16 })
Text(this.isAllSelect?'取消全选':'全选')
.fontColor($r('app.color.color_222222'))
... ... @@ -22,7 +22,7 @@ export struct CustomBottomFuctionUI {
}
.id("allSelect_Button")
// .margin({left:'31lpx'})
.margin({left: 31})
.margin({left: 16})
.alignRules({
center: {anchor: "__container__", align: VerticalAlign.Center},
left: {anchor: "__container__", align: HorizontalAlign.Start}
... ...
... ... @@ -8,12 +8,14 @@ export struct CustomSelectUI {
build() {
Button(){
Image(this.data.isSelect?$r("app.media.MyCollection_selected_icon"):$r("app.media.MyCollection_unselected_icon"))
.width(20)
.height(20)
}.onClick(()=>{
this.data.isSelect = this.data.isSelect?false:true
})
.backgroundColor(Color.White)
.type(ButtonType.Normal)
.width(20)
.width(40)
.height(20)
}
... ...