wangliang_wd

feat:优化号主主页关注状态更新

... ... @@ -2,7 +2,7 @@ import { AppointmentListChildComponent } from './AppointmentListChildComponent';
import { CustomTitleUI } from '../../reusable/CustomTitleUI'
import { ListHasNoMoreDataUI } from '../../reusable/ListHasNoMoreDataUI';
import { MineAppointmentItem } from '../../../viewmodel/MineAppointmentItem';
import { LazyDataSource, NetworkUtil, StringUtils } from 'wdKit';
import { LazyDataSource, NetworkUtil, StringUtils, ToastUtils } from 'wdKit';
import MinePageDatasModel from '../../../model/MinePageDatasModel';
import { EmptyComponent } from '../../view/EmptyComponent';
import { Action, ContentDTO } from 'wdBean/Index';
... ... @@ -102,6 +102,7 @@ export struct AppointmentListUI {
LazyForEach(this.data, (item: MineAppointmentItem, index: number) => {
ListItem() {
AppointmentListChildComponent({ item: item,confirmCallback:((deleteItem) =>{
ToastUtils.shortToast('取消预约成功')
this.data.deleteItem(this.data.getIndexOf(deleteItem))
this.count = this.data.totalCount()
})})
... ...
... ... @@ -51,6 +51,7 @@ struct PeopleShipHomePage {
onPageShow(): void {
WindowModel.shared.setWindowSystemBarProperties({ statusBarContentColor: '#ffffff'})
this.loadFollowData()
}
onPageHide(): void {
... ... @@ -218,6 +219,10 @@ struct PeopleShipHomePage {
this.isHasHomePage = false
}
// this.loadFollowData()
}
async loadFollowData(){
try {
// 获取关注
// 登录后获取,是否关注
... ... @@ -230,6 +235,7 @@ struct PeopleShipHomePage {
} catch (exception) {
this.isLoading = false
}
}
findFollowStata(followList: QueryListIsFollowedItem[]) {
... ...