review changes

Signed-off-by: zhuhaokun <zhuhaokun1@huawei.com>
This commit is contained in:
zhuhaokun 2023-09-04 10:30:07 +08:00
parent bd2b10e3de
commit e482926569

View File

@ -95,7 +95,7 @@ struct FriendsMomentsPage {
}
aboutToAppear(): void {
this.makeDataLocal()
this.makeLocalData()
}
pageTransition() {
@ -103,7 +103,7 @@ struct FriendsMomentsPage {
PageTransitionExit({ duration: 0 })
}
makeDataLocal() {
makeLocalData() {
for (let i = 0;i < 100; i++) {
let imageStr = `/resources/images/photo${(i % 50).toString()}.jpg`
let mo = new FriendMoment(i.toString(), new ChatContact(i.toString(),`${getContext().resourceManager.getStringSync($r('app.string.friend_word'))}${i.toString()}` , imageStr), `${getContext().resourceManager.getStringSync($r('app.string.chatCommunity'))}${i.toString()}`)