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-07-31 11:24:09 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5aff95e90149ff84a44ad7330e6e0acc2d56c759
5aff95e9
1 parent
02246e96
feat:优化预约列表
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
3 deletions
sight_harmony/commons/wdWebComponent/src/main/ets/pages/WdWebLocalComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/mine/appointment/AppointmentListChildComponent.ets
sight_harmony/features/wdComponent/src/main/ets/components/mine/appointment/AppointmentListUI.ets
sight_harmony/commons/wdWebComponent/src/main/ets/pages/WdWebLocalComponent.ets
View file @
5aff95e
...
...
@@ -115,7 +115,6 @@ export struct WdWebLocalComponent {
}
.width(this.positionWidth)
.height(this.positionHeight)
.backgroundColor(Color.Red)
.alignRules({
top: { anchor: "__container__", align: VerticalAlign.Top },
})
...
...
sight_harmony/features/wdComponent/src/main/ets/components/mine/appointment/AppointmentListChildComponent.ets
View file @
5aff95e
...
...
@@ -9,7 +9,9 @@ import { MyCustomDialog } from '../../reusable/MyCustomDialog'
export struct AppointmentListChildComponent {
@ObjectLink item: MineAppointmentItem
@State loadImg: boolean = false;
confirmCallback: (item: MineAppointmentItem) => void = () => {
}
async aboutToAppear(): Promise<void> {
this.loadImg = await onlyWifiLoadImg();
}
...
...
@@ -29,6 +31,7 @@ export struct AppointmentListChildComponent {
})
build() {
// if (this.item.isAppointment){
Column() {
Stack() {
Image(this.loadImg ? this.item?.imageUrl[0] : '')
...
...
@@ -184,6 +187,7 @@ export struct AppointmentListChildComponent {
}.margin({ left: 10, right: 10 })
.backgroundColor($r('app.color.white'))
.borderRadius('8lpx')
// }
}
onCancel() {
...
...
@@ -200,8 +204,9 @@ export struct AppointmentListChildComponent {
MinePageDatasModel.getAppointmentOperation(item, getContext(this)).then((value) => {
if (value != null) {
if (value.code === 0 || value.code.toString() === "0") {
this.item.isAppointment = !this.item.isAppointment
//
this.item.isAppointment = !this.item.isAppointment
this.confirmCallback(this.item)
if(!this.item.isAppointment){
TrackingButton.click("mySavedLivePageUnSubscribe",TrackConstants.PageName.My_Saved_Live,TrackConstants.PageName.My_Saved_Live)
}
...
...
sight_harmony/features/wdComponent/src/main/ets/components/mine/appointment/AppointmentListUI.ets
View file @
5aff95e
...
...
@@ -101,7 +101,10 @@ export struct AppointmentListUI {
List({ space:6,scroller: this.scroller }) {
LazyForEach(this.data, (item: MineAppointmentItem, index: number) => {
ListItem() {
AppointmentListChildComponent({ item: item })
AppointmentListChildComponent({ item: item,confirmCallback:((deleteItem) =>{
this.data.deleteItem(this.data.getIndexOf(deleteItem))
this.count = this.data.totalCount()
})})
}
.onClick(() => {
let contentDTO = getParams(item)
...
...
Please
register
or
login
to post a comment