/*
 * 设备重启提示页面
 * EZOpenSDK
 *
 * Created by junecheng on 2024/5/13.
 * Copyright (c) 2024年 Ezviz. All rights reserved.
 */
import RouterManager from '../../global/RouterManager/RouterManager'
import { NavigationView } from '../../global/view/NavigationView'

@Entry
@Component
struct EZDeviceRestartTipsPage {
  routerParams: Object | null = null

  // ------------------------ 生命周期 ------------------------

  aboutToAppear() {
    this.routerParams = RouterManager.getParams()
  }

  aboutToDisappear() {

  }

  // ------------------------ Actions ------------------------

  // ------------------------ 网络请求 ------------------------

  // ------------------------ 自定义方法 ------------------------

  // ------------------------ UI ------------------------

  build() {
    Column() {
      NavigationView({
        title: $r('app.string.ad_restart_title')
      })
      Stack({ alignContent: Alignment.Top }) {
        Image($r('app.media.wifi_bg'))
        Column() {
          Text($r('app.string.ad_restart_tip'))
            .margin({ left: 12, right: 12, top: 100 })
            .textAlign(TextAlign.Center)
          Image($r('app.media.device_reset')).width(174).height(199).margin({ top: 19 })
          Button($r('app.string.ad_restart_done'))
            .width('80%')
            .height(40)
            .margin({ top: 31 })
            .backgroundColor($r('app.color.ez_text_blue'))
            .onClick(() => {
              RouterManager.pushUrl(RouterManager.wifiInfoPage, this.routerParams)
            })
        }
      }
    }
  }
}