UploadTipDialog.ets
1005 字节
@CustomDialog
export default struct DialogTip{
controller: CustomDialogController = new CustomDialogController({builder: ''})
cancel: Function = () => {}
confirm: Function = () => {}
build() {
Column({space: 10}){
Text('上传视频/图片提示').fontSize(16).lineHeight(21).fontColor('#fff').fontWeight(600).margin({bottom: 20})
Text('已上传视频/图片会为你保留15个自然日,请及时下载并上传到正式报告系统中。').fontSize(16).fontColor('#fff')
Text('我已知晓')
.fontSize(16).lineHeight(21).fontColor('#fff').fontWeight(600).textAlign(TextAlign.Center)
.width('100%').padding({top: 20, bottom: 20})
.onClick(() => {
this.controller.close()
AppStorage.setOrCreate('isShowTip', true)
})
}.backgroundImage($r('app.media.login_back'))
.backgroundImageSize({width: '100%'}).width('100%')
.backgroundImagePosition(Alignment.Center)
.padding({top: 20,left: 13, right: 13})
}
}