更新云信和公益咨询相关代码

This commit is contained in:
XiuYun CHEN
2025-07-11 17:33:40 +08:00
parent 2da6409a0b
commit 879646296d
26 changed files with 863 additions and 70 deletions
@@ -1,6 +1,6 @@
import { iconsModel } from '../model/HomeModel'
import { patientDbManager, PatientEntity } from '@itcast/basic';
import { promptAction } from '@kit.ArkUI';
import { promptAction, router } from '@kit.ArkUI';
// interface iconsModel {
// img:string;
@@ -57,6 +57,13 @@ export struct HomeIconComp {
const patients = await patientDbManager.getAllPatients();
console.info(`添加了 ${patients.length} 个患者`);
promptAction.showToast({message:`添加了 ${patients.length} 个患者`})
if(item.name=='公益咨询') {
router.pushUrl({ url: 'pages/Netease/PublicConsultationPage' })
}
else if(item.name=='我的患者') {
router.pushUrl({url:'pages/Netease/imTabPage'})
}
})
})
}.width('100%').backgroundColor(Color.White)
@@ -198,9 +198,9 @@ export struct VideoPage {
})
.margin({bottom:60})
.onClick(() => {
// router.pushUrl({url:'pages/VideoPage/PastVideoPage'})
router.pushUrl({url:'pages/VideoPage/PastVideoPage'})
// router.pushUrl({url:'pages/Netease/imTabPage'})
router.pushUrl({url:'pages/Netease/PublicConsultationPage'})
// router.pushUrl({url:'pages/Netease/PublicConsultationPage'})
})
}