Showing
2 changed files
with
8 additions
and
1 deletions
| @@ -2,7 +2,7 @@ import { AppointmentListChildComponent } from './AppointmentListChildComponent'; | @@ -2,7 +2,7 @@ import { AppointmentListChildComponent } from './AppointmentListChildComponent'; | ||
| 2 | import { CustomTitleUI } from '../../reusable/CustomTitleUI' | 2 | import { CustomTitleUI } from '../../reusable/CustomTitleUI' |
| 3 | import { ListHasNoMoreDataUI } from '../../reusable/ListHasNoMoreDataUI'; | 3 | import { ListHasNoMoreDataUI } from '../../reusable/ListHasNoMoreDataUI'; |
| 4 | import { MineAppointmentItem } from '../../../viewmodel/MineAppointmentItem'; | 4 | import { MineAppointmentItem } from '../../../viewmodel/MineAppointmentItem'; |
| 5 | -import { LazyDataSource, NetworkUtil, StringUtils } from 'wdKit'; | 5 | +import { LazyDataSource, NetworkUtil, StringUtils, ToastUtils } from 'wdKit'; |
| 6 | import MinePageDatasModel from '../../../model/MinePageDatasModel'; | 6 | import MinePageDatasModel from '../../../model/MinePageDatasModel'; |
| 7 | import { EmptyComponent } from '../../view/EmptyComponent'; | 7 | import { EmptyComponent } from '../../view/EmptyComponent'; |
| 8 | import { Action, ContentDTO } from 'wdBean/Index'; | 8 | import { Action, ContentDTO } from 'wdBean/Index'; |
| @@ -102,6 +102,7 @@ export struct AppointmentListUI { | @@ -102,6 +102,7 @@ export struct AppointmentListUI { | ||
| 102 | LazyForEach(this.data, (item: MineAppointmentItem, index: number) => { | 102 | LazyForEach(this.data, (item: MineAppointmentItem, index: number) => { |
| 103 | ListItem() { | 103 | ListItem() { |
| 104 | AppointmentListChildComponent({ item: item,confirmCallback:((deleteItem) =>{ | 104 | AppointmentListChildComponent({ item: item,confirmCallback:((deleteItem) =>{ |
| 105 | + ToastUtils.shortToast('取消预约成功') | ||
| 105 | this.data.deleteItem(this.data.getIndexOf(deleteItem)) | 106 | this.data.deleteItem(this.data.getIndexOf(deleteItem)) |
| 106 | this.count = this.data.totalCount() | 107 | this.count = this.data.totalCount() |
| 107 | })}) | 108 | })}) |
| @@ -51,6 +51,7 @@ struct PeopleShipHomePage { | @@ -51,6 +51,7 @@ struct PeopleShipHomePage { | ||
| 51 | 51 | ||
| 52 | onPageShow(): void { | 52 | onPageShow(): void { |
| 53 | WindowModel.shared.setWindowSystemBarProperties({ statusBarContentColor: '#ffffff'}) | 53 | WindowModel.shared.setWindowSystemBarProperties({ statusBarContentColor: '#ffffff'}) |
| 54 | + this.loadFollowData() | ||
| 54 | } | 55 | } |
| 55 | 56 | ||
| 56 | onPageHide(): void { | 57 | onPageHide(): void { |
| @@ -218,6 +219,10 @@ struct PeopleShipHomePage { | @@ -218,6 +219,10 @@ struct PeopleShipHomePage { | ||
| 218 | this.isHasHomePage = false | 219 | this.isHasHomePage = false |
| 219 | } | 220 | } |
| 220 | 221 | ||
| 222 | + // this.loadFollowData() | ||
| 223 | + } | ||
| 224 | + | ||
| 225 | + async loadFollowData(){ | ||
| 221 | try { | 226 | try { |
| 222 | // 获取关注 | 227 | // 获取关注 |
| 223 | // 登录后获取,是否关注 | 228 | // 登录后获取,是否关注 |
| @@ -230,6 +235,7 @@ struct PeopleShipHomePage { | @@ -230,6 +235,7 @@ struct PeopleShipHomePage { | ||
| 230 | } catch (exception) { | 235 | } catch (exception) { |
| 231 | this.isLoading = false | 236 | this.isLoading = false |
| 232 | } | 237 | } |
| 238 | + | ||
| 233 | } | 239 | } |
| 234 | 240 | ||
| 235 | findFollowStata(followList: QueryListIsFollowedItem[]) { | 241 | findFollowStata(followList: QueryListIsFollowedItem[]) { |
-
Please register or login to post a comment