import { SafeView, WindowHelper } from '@szyx/sdk_base' @Component @Preview export struct LoginView { @Consume('pageInfos') pageInfos: NavPathStack // 手机号 @State phone: string | undefined = undefined // 密码 @State pwd: string | undefined = undefined // 是否勾选协议 @State checkAgreement: boolean = false // 是不是验证码登录 @State isCode: boolean = true aboutToAppear(): void { WindowHelper.showStatusBar() } build() { SafeView({ pageInfos: this.pageInfos ?? undefined }) { Text('登录') .id('HelloWorld') .fontSize(50) .fontWeight(FontWeight.Bold) .alignRules({ center: { anchor: '__container__', align: VerticalAlign.Center }, middle: { anchor: '__container__', align: HorizontalAlign.Center } }) } } }