bug修改

This commit is contained in:
XiuYun CHEN
2025-08-15 11:02:03 +08:00
parent 8ce86ba34b
commit 9e8c96ccd3
5 changed files with 244 additions and 42 deletions
@@ -1,5 +1,7 @@
import { HomeModel, iconsModel } from '../model/HomeModel'
import { BasicConstant, hdHttp, HdResponse, patientDbManager, PatientEntity } from '@itcast/basic';
import {
applyListCallBacl,
authStore, BasicConstant, hdHttp, HdResponse, patientDbManager, PatientEntity } from '@itcast/basic';
import { promptAction, router, UIObserver, uiObserver } from '@kit.ArkUI';
import { BusinessError } from '@kit.BasicServicesKit';
import { pushService } from '@kit.PushKit';
@@ -89,6 +91,20 @@ export struct HomeIconComp {
else
{
this.patientRed=false
hdHttp.post<string>(BasicConstant.applyList,{
expertUuid: authStore.getUser().uuid,
} as updateExtraData).then(async (res: HdResponse<string>) => {
let json:applyListCallBacl = JSON.parse(res+'') as applyListCallBacl;
if(json.code == 1) {
if(json.data!=null&&json.data.length>0)
{
this.patientRed=true
}
}
}).catch((err: BusinessError) => {
})
}
if(consultcount>0)
{
@@ -166,3 +182,6 @@ export struct HomeIconComp {
}
}
export interface updateExtraData {
expertUuid: string
}