wangliang_wd

feat:优化我的预约列表展示

... ... @@ -37,17 +37,11 @@ export struct AppointmentListChildComponent {
Image(this.loadImg ? this.item?.imageUrl[0] : '')
.backgroundColor(this.loadImg ? $r('app.color.color_B0B0B0') : 0xf5f5f5)
.width('100%')
.constraintSize({
maxHeight: 196
})
.aspectRatio(16 / 9)
.objectFit(ImageFit.Auto)
.interpolation(ImageInterpolation.High)
.borderRadius(4)
.borderStyle(BorderStyle.Solid)
.aspectRatio(167 / 95)
.borderWidth(0.5)
.borderColor($r('app.color.color_0D000000'))
.borderRadius(4)
.borderStyle(BorderStyle.Solid)
if (this.item.status == "wait") {
Row() {
... ... @@ -81,7 +75,7 @@ export struct AppointmentListChildComponent {
.alignItems(VerticalAlign.Bottom)
.justifyContent(FlexAlign.End)
.position({
x: '80.5%'
x: '85.5%'
})
}
}
... ... @@ -147,7 +141,7 @@ export struct AppointmentListChildComponent {
}
}
.height(24)
.width(this.item.status == "wait"?150:82)
// .width(this.item.status == "wait"?150:82)
.padding({ left: 10, right: 10})
.alignItems(VerticalAlign.Center)
.backgroundColor($r('app.color.color_F5F5F5'))
... ...