bug修改

This commit is contained in:
XiuYun CHEN 2025-06-13 17:48:57 +08:00
parent 2ad7db0c7b
commit e16aaa901c

View File

@ -11,7 +11,7 @@ import { SpecialitySelectedSheet } from '@itcast/basic/src/main/ets/Views/Specia
import { emitter } from '@kit.BasicServicesKit' import { emitter } from '@kit.BasicServicesKit'
import { BusinessError } from '@kit.BasicServicesKit'; import { BusinessError } from '@kit.BasicServicesKit';
import { rcp } from '@kit.RemoteCommunicationKit'; import { rcp } from '@kit.RemoteCommunicationKit';
import { HdNav,HdLoadingDialog } from '@itcast/basic' import { HdNav,HdLoadingDialog,DefaultHintProWindows } from '@itcast/basic'
interface extraData { interface extraData {
uuid: string uuid: string
} }
@ -77,7 +77,7 @@ export struct PerfectUserDataComp {
@State hospitalUuid:string = perfactAuth.getUser(this.loginPhone).hospitalUuid?perfactAuth.getUser(this.loginPhone).hospitalUuid:''; @State hospitalUuid:string = perfactAuth.getUser(this.loginPhone).hospitalUuid?perfactAuth.getUser(this.loginPhone).hospitalUuid:'';
@State base64Stringphoto:string='' @State base64Stringphoto:string=''
@State base64Stringcertificate:string='' @State base64Stringcertificate:string=''
private hintWindowDialog!: CustomDialogController;
private photoSheetDialog!: CustomDialogController; private photoSheetDialog!: CustomDialogController;
private officePickerDialog!: CustomDialogController; private officePickerDialog!: CustomDialogController;
private positionPickerDialog!: CustomDialogController; private positionPickerDialog!: CustomDialogController;
@ -90,7 +90,25 @@ export struct PerfectUserDataComp {
customStyle: true, customStyle: true,
alignment: DialogAlignment.Center 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() { aboutToAppear() {
this.hintPopWindowDialog()
this.initSexDialog(); this.initSexDialog();
this.initPhotoDialog(); this.initPhotoDialog();
this.initPerfactInputDialog(); this.initPerfactInputDialog();
@ -130,14 +148,15 @@ export struct PerfectUserDataComp {
if(this.checkInfo!=''||this.checkInfo!=null) if(this.checkInfo!=''||this.checkInfo!=null)
{ {
this.info=this.checkInfo this.info=this.checkInfo
promptAction.showDialog({ title: '温馨提示', message: this.checkInfo, this.hintWindowDialog.open()
buttons: [{ text: '确定', color: $r('app.color.main_color') }], // promptAction.showDialog({ title: '温馨提示', message: this.checkInfo,
}) // buttons: [{ text: '确定', color: $r('app.color.main_color') }],
.then(data => { // })
if (data.index == 1) { // .then(data => {
// if (data.index == 1) {
} //
}) // }
// })
} }
} }