角标,小红点,群发消息
This commit is contained in:
@@ -67,7 +67,8 @@ export struct SendGroupMessageComp {
|
||||
if (this.isPossessList) {
|
||||
this.submintMessage("5")
|
||||
} else {
|
||||
HMRouterMgr.push({})
|
||||
|
||||
HMRouterMgr.push({pageUrl:'OutpatientComp',param:"send"})
|
||||
}
|
||||
this.outpatient.close();
|
||||
}
|
||||
@@ -168,16 +169,25 @@ export struct SendGroupMessageComp {
|
||||
logger.info('Response stopOutPatientList'+res);
|
||||
let json:Record<string,string> = JSON.parse(res+'') as Record<string,string>;
|
||||
if(json.code == '200') {
|
||||
if (Array.isArray(json.data)) {
|
||||
const data:Array<Record<string,string>> = json.data
|
||||
if (data.length>0) {
|
||||
this.isPossessList = true
|
||||
} else {
|
||||
this.getListOutPatient()
|
||||
}
|
||||
} else {
|
||||
let json = JSON.parse(res+'') as Record<string, object>;
|
||||
let datas:[]=json.data as []
|
||||
if(datas!=null&&datas.length>0)
|
||||
{
|
||||
this.isPossessList=true
|
||||
}
|
||||
else {
|
||||
this.getListOutPatient()
|
||||
}
|
||||
// if (Array.isArray(json.data)) {
|
||||
// const data:Array<Record<string,string>> = json.data
|
||||
// if (data.length>0) {
|
||||
// this.isPossessList = true
|
||||
// } else {
|
||||
// this.getListOutPatient()
|
||||
// }
|
||||
// } else {
|
||||
// this.getListOutPatient()
|
||||
// }
|
||||
} else {
|
||||
console.error('停/出诊公告列表失败:'+json.message)
|
||||
promptAction.showToast({ message: json.message, duration: 1000 })
|
||||
@@ -197,12 +207,19 @@ export struct SendGroupMessageComp {
|
||||
logger.info('Response listOutPatient'+res);
|
||||
let json:Record<string,string> = JSON.parse(res+'') as Record<string,string>;
|
||||
if(json.code == '200') {
|
||||
if (Array.isArray(json.data)) {
|
||||
const data:Array<Record<string,string>> = json.data
|
||||
if (data.length>0) {
|
||||
this.isPossessList = true
|
||||
}
|
||||
let json = JSON.parse(res+'') as Record<string, object>;
|
||||
let json1=json.data as Record<string, object>
|
||||
let datas:[]=json1.list as []
|
||||
if(datas!=null&&datas.length>0)
|
||||
{
|
||||
this.isPossessList=true
|
||||
}
|
||||
// if (Array.isArray(json.data)) {
|
||||
// const data:Array<Record<string,string>> = json.data
|
||||
// if (data.length>0) {
|
||||
// this.isPossessList = true
|
||||
// }
|
||||
// }
|
||||
} else {
|
||||
console.error('门诊列表失败:'+json.message)
|
||||
promptAction.showToast({ message: json.message, duration: 1000 })
|
||||
|
||||
Reference in New Issue
Block a user