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-10-14 15:23:50 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
954444ca5fa2d5d42c5d0fff39bb9ff20197b63d
954444ca
1 parent
a718de3b
feat:优化号主主页关注状态更新
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletions
sight_harmony/features/wdComponent/src/main/ets/components/mine/appointment/AppointmentListUI.ets
sight_harmony/features/wdComponent/src/main/ets/components/page/PeopleShipHomePage.ets
sight_harmony/features/wdComponent/src/main/ets/components/mine/appointment/AppointmentListUI.ets
View file @
954444c
...
...
@@ -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()
})})
...
...
sight_harmony/features/wdComponent/src/main/ets/components/page/PeopleShipHomePage.ets
View file @
954444c
...
...
@@ -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[]) {
...
...
Please
register
or
login
to post a comment