bug修复

This commit is contained in:
xiaoxiao
2025-08-05 16:59:58 +08:00
parent 76b7785d84
commit 68c33cf3a5
11 changed files with 145 additions and 103 deletions
@@ -137,7 +137,7 @@ export struct HeaderView {
ForEach([{'title':'随访患者数','content':this.expertData['expert_apply_num'] || '0'},
{'title':'公益咨询数','content':this.expertData['consult_total_num'] || '0'}],
// {'title':'患者送花数','content':this.expertData['ping_flowewr_num'] || '0'}],
(item:object)=>{
(item:object,index:number)=>{
Column(){
Text(item['content']?.toString() || '0')
.fontSize(20)
@@ -148,6 +148,13 @@ export struct HeaderView {
.fontColor('#333333')
.height(17)
}.height('100%').justifyContent(FlexAlign.Center)
.onClick(()=>{
if (index == 0) {
router.pushUrl({url:'pages/Netease/imTabPage'})
} else {
router.pushUrl({ url: 'pages/Netease/PublicConsultationPage' })
}
})
})
}
}.width('95%').height(65).borderRadius(5).backgroundColor(Color.White)
@@ -11,11 +11,14 @@ export struct MyPageSectionItem {
.width(24).height(24)
.objectFit(ImageFit.Auto)
Text(this.sectionItem.title)
.maxFontSize(14)
.minFontSize(6)
.maxLines(1)
// .maxFontSize(14)
// .minFontSize(6)
.fontSize(14)
// .maxLines(1)
.fontColor('#333333')
.margin({ top: 10 })
.textAlign(TextAlign.Center)
.width('120%')
}.width('100%')
if (this.sectionItem.status) {
Text().backgroundColor(Color.Red).width(10).height(10).borderRadius(5)