bug修改
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user