From e16aaa901c63eb7126411611aab6893d942d5389 Mon Sep 17 00:00:00 2001 From: XiuYun CHEN Date: Fri, 13 Jun 2025 17:48:57 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/ets/view/PerfectUserDataComp.ets | 39 ++++++++++++++----- 1 file changed, 29 insertions(+), 10 deletions(-) diff --git a/features/register/src/main/ets/view/PerfectUserDataComp.ets b/features/register/src/main/ets/view/PerfectUserDataComp.ets index e159e0d..9df2f33 100644 --- a/features/register/src/main/ets/view/PerfectUserDataComp.ets +++ b/features/register/src/main/ets/view/PerfectUserDataComp.ets @@ -11,7 +11,7 @@ import { SpecialitySelectedSheet } from '@itcast/basic/src/main/ets/Views/Specia import { emitter } from '@kit.BasicServicesKit' import { BusinessError } from '@kit.BasicServicesKit'; import { rcp } from '@kit.RemoteCommunicationKit'; -import { HdNav,HdLoadingDialog } from '@itcast/basic' +import { HdNav,HdLoadingDialog,DefaultHintProWindows } from '@itcast/basic' interface extraData { uuid: string } @@ -77,7 +77,7 @@ export struct PerfectUserDataComp { @State hospitalUuid:string = perfactAuth.getUser(this.loginPhone).hospitalUuid?perfactAuth.getUser(this.loginPhone).hospitalUuid:''; @State base64Stringphoto:string='' @State base64Stringcertificate:string='' - + private hintWindowDialog!: CustomDialogController; private photoSheetDialog!: CustomDialogController; private officePickerDialog!: CustomDialogController; private positionPickerDialog!: CustomDialogController; @@ -90,7 +90,25 @@ export struct PerfectUserDataComp { customStyle: true, alignment: DialogAlignment.Center }) + private hintPopWindowDialog() { + this.hintWindowDialog = new CustomDialogController({ + builder:DefaultHintProWindows({ + controller:this.hintWindowDialog, + message: this.checkInfo, + cancleTitle:'', + selectedButton: (index:number)=>{ + + this.hintWindowDialog.close(); + } + }), + alignment: DialogAlignment.Center, + cornerRadius:24, + backgroundColor: ('rgba(0,0,0,0.5)'), + }) + } + aboutToAppear() { + this.hintPopWindowDialog() this.initSexDialog(); this.initPhotoDialog(); this.initPerfactInputDialog(); @@ -130,14 +148,15 @@ export struct PerfectUserDataComp { if(this.checkInfo!=''||this.checkInfo!=null) { this.info=this.checkInfo - promptAction.showDialog({ title: '温馨提示', message: this.checkInfo, - buttons: [{ text: '确定', color: $r('app.color.main_color') }], - }) - .then(data => { - if (data.index == 1) { - - } - }) + this.hintWindowDialog.open() + // promptAction.showDialog({ title: '温馨提示', message: this.checkInfo, + // buttons: [{ text: '确定', color: $r('app.color.main_color') }], + // }) + // .then(data => { + // if (data.index == 1) { + // + // } + // }) } }