diff --git a/features/mypage/src/main/ets/view/OneSection.ets b/features/mypage/src/main/ets/view/OneSection.ets index c390511..f85f200 100644 --- a/features/mypage/src/main/ets/view/OneSection.ets +++ b/features/mypage/src/main/ets/view/OneSection.ets @@ -24,10 +24,10 @@ export struct OneSection { toTop:boolean; @State oneSectionList: Array = [ - new MyPageSectionClass('oneItem', $r('app.media.my_page_patientAudit'), '患者审核', '/pages/MyHomePage',false), - new MyPageSectionClass('twoItem', $r('app.media.my_page_patientList'), '患者分组', '/pages/MyHomePage',false), + new MyPageSectionClass('oneItem', $r('app.media.my_page_patientAudit'), '患者审核', 'pages/PatientsPage/PatientPages',false), + new MyPageSectionClass('twoItem', $r('app.media.my_page_patientList'), '患者分组', 'pages/PatientsPage/PatientsGroupPage',false), new MyPageSectionClass('threeItem', $r('app.media.my_page_message'), '群发消息', '/pages/MyHomePage',false), - new MyPageSectionClass('fourItem', $r('app.media.my_page_QrCode'), '随访二维码', '/pages/MyHomePage',false), + new MyPageSectionClass('fourItem', $r('app.media.my_page_QrCode'), '随访二维码', 'pages/WebView/WebPage',false), new MyPageSectionClass('fiveItem', $r('app.media.my_page_visitPlan'), '出诊计划', '/pages/MyHomePage',false) ]; @@ -87,15 +87,10 @@ export struct OneSection { GridItem() { MyPageSectionItem({ sectionItem: item }) .onClick(()=>{ - if (item.title === '患者审核') { - router.pushUrl({ - url:'pages/PatientsPage/PatientPages' - }) - } else if (item.title === '患者分组') { - router.pushUrl({ - url:'pages/PatientsPage/PatientsGroupPage' - }) - } + router.pushUrl({ + url:item.path, + params:{"title":item.title,"url":BasicConstant.wxUrl+'expert/expertcodeimg?expert_uuid='+authStore.getUser().uuid} + }) }) } }, (item: MyPageSectionClass) => item.id) diff --git a/products/expert/src/main/ets/pages/WebView/WebPage.ets b/products/expert/src/main/ets/pages/WebView/WebPage.ets index dbc12b3..a4e7b31 100644 --- a/products/expert/src/main/ets/pages/WebView/WebPage.ets +++ b/products/expert/src/main/ets/pages/WebView/WebPage.ets @@ -63,7 +63,7 @@ struct WebPage { .width('100%') .layoutWeight(1)// 占据剩余空间 .height('100%') - if (this.title == '我的二维码') { + if (this.title == '随访二维码') { Row(){ SaveButton({text:SaveDescription.SAVE_IMAGE,buttonType:ButtonType.Normal}) .fontSize(16)