import { HeaderView } from '../view/HeaderView'
import { HdNav, getTimeText, hdHttp, HdUser } from '@itcast/basic'
import { OneSection } from '../view/OneSection'
import { TwoSection } from '../view/TwoSection'
import { ThreeSection } from '../view/ThreeSection'
import { FourSection } from '../view/FourSection'
import { OtherList } from '../view/OtherList'
import { emitter } from '@kit.BasicServicesKit'

@Component
export struct MyHomePage {
  @State title: string = '我的';
  @StorageProp('topHeight')
  topHeight: number = 0

  scroller = new Scroller()

  build() {
    Column() {
      HdNav({ title: '我的', showLeftIcon:false , showRightIcon: false, hasBorder: true })

      Scroll(this.scroller) {
        Column() {
          HeaderView()
          // OneSection()
          // TwoSection()
          // ThreeSection()
          FourSection()
          OtherList()
        }
      }
      .width('100%')
      .height('100%')
      .layoutWeight(1)
      .scrollBar(BarState.Off)
      .align(Alignment.TopStart)
    }
    .width('100%')
    .height('100%')
    .backgroundColor('#F1F3F5')
  }
}
