From 971af0654beae97c5b80c76a271998d025de4da6 Mon Sep 17 00:00:00 2001 From: kola-web Date: Tue, 12 Nov 2024 14:10:04 +0800 Subject: [PATCH] =?UTF-8?q?bug=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/customRecord/index.scss | 2 ++ src/components/customRecord/index.ts | 1 + src/custom-tab-bar/index.scss | 49 +++++++++++++++----------- src/custom-tab-bar/index.wxml | 15 ++++---- src/module1/pages/auditDoctorDetail/index.wxml | 2 +- src/module1/pages/chatRoom/index.scss | 6 +++- src/module1/pages/chatRoom/index.ts | 2 +- src/module1/pages/chatRoom/index.wxml | 2 +- src/module1/pages/chatRoomInfo/index.scss | 11 +++--- src/module1/pages/entryCases/index.scss | 9 ++--- src/module1/pages/entryCases/index.wxml | 2 +- src/module1/pages/setCaseDoctor/index.ts | 3 +- src/pages/cases/index.wxml | 11 ++++-- src/pages/chatRoomList/index.ts | 11 +++++- src/pages/chatRoomList/index.wxml | 2 +- 15 files changed, 79 insertions(+), 49 deletions(-) diff --git a/src/components/customRecord/index.scss b/src/components/customRecord/index.scss index 3e7cfb7..d5e5d4c 100644 --- a/src/components/customRecord/index.scss +++ b/src/components/customRecord/index.scss @@ -1,5 +1,7 @@ .record { &.record-slot { + width: 100%; + height: 100%; border: none; } .icon { diff --git a/src/components/customRecord/index.ts b/src/components/customRecord/index.ts index d2e9923..5e83110 100644 --- a/src/components/customRecord/index.ts +++ b/src/components/customRecord/index.ts @@ -11,6 +11,7 @@ Component({ value: false, }, }, + externalClasses: ["custom-record"], /** * 组件的初始数据 diff --git a/src/custom-tab-bar/index.scss b/src/custom-tab-bar/index.scss index e3a1cab..67ca140 100644 --- a/src/custom-tab-bar/index.scss +++ b/src/custom-tab-bar/index.scss @@ -76,25 +76,30 @@ flex-direction: column; justify-content: center; align-items: center; - .dot { - position: absolute; - top: 10rpx; - right: 40rpx; - width: 10rpx; - height: 10rpx; - border-radius: 50%; - background-color: red; - } - .icon { - display: block; - width: 48rpx; - height: 48rpx; - } - .icon-active { - display: none; + .icon-wrap { + position: relative; width: 48rpx; height: 48rpx; + .icon { + display: block; + width: 100%; + height: 100%; + } + .icon-active { + display: none; + width: 100%; + height: 100%; + } + .dot { + position: absolute; + top: 0; + right: 0; + width: 10rpx; + height: 10rpx; + border-radius: 50%; + background-color: #ED4F39; + } } .name { margin-top: 8rpx; @@ -103,11 +108,13 @@ line-height: 21rpx; } &.active { - .icon { - display: none; - } - .icon-active { - display: block; + .icon-wrap { + .icon { + display: none; + } + .icon-active { + display: block; + } } .name { color: rgba(0, 180, 197, 1); diff --git a/src/custom-tab-bar/index.wxml b/src/custom-tab-bar/index.wxml index 22cf4c8..b570491 100644 --- a/src/custom-tab-bar/index.wxml +++ b/src/custom-tab-bar/index.wxml @@ -1,11 +1,6 @@ - + @@ -27,9 +22,11 @@ bind:tap="handleTab" data-index="{{index}}" > - - - + + + + + {{item.name}} diff --git a/src/module1/pages/auditDoctorDetail/index.wxml b/src/module1/pages/auditDoctorDetail/index.wxml index b9ba307..29e548c 100644 --- a/src/module1/pages/auditDoctorDetail/index.wxml +++ b/src/module1/pages/auditDoctorDetail/index.wxml @@ -83,7 +83,7 @@ { this.setData({ roomDoctors: res.roomDoctors, - newRoomDoctors: res.roomDoctors.slice(0, 4), + newRoomDoctors: { ...res }.roomDoctors.slice(0, 4), case: res.case, chatGroupInfo: res.chatGroupInfo, chatDoctor: res.chatDoctor, diff --git a/src/module1/pages/chatRoom/index.wxml b/src/module1/pages/chatRoom/index.wxml index 2dc2171..3eeaf84 100644 --- a/src/module1/pages/chatRoom/index.wxml +++ b/src/module1/pages/chatRoom/index.wxml @@ -130,7 +130,7 @@ - + - + 您也可以长按录入语音 diff --git a/src/module1/pages/setCaseDoctor/index.ts b/src/module1/pages/setCaseDoctor/index.ts index bcc589e..1d4c879 100644 --- a/src/module1/pages/setCaseDoctor/index.ts +++ b/src/module1/pages/setCaseDoctor/index.ts @@ -247,9 +247,10 @@ Page({ const { feedBackInvite, caseId, DoctorId, params, detailInvite } = this.data; if (!DoctorId) { wx.showToast({ - title: "请选择指派医生", + title: "请选择医生", icon: "none", }); + return } if (feedBackInvite) { wx.ajax({ diff --git a/src/pages/cases/index.wxml b/src/pages/cases/index.wxml index 780d3b8..ab4f1da 100644 --- a/src/pages/cases/index.wxml +++ b/src/pages/cases/index.wxml @@ -3,7 +3,12 @@ 我的病历 - + 全部病历 @@ -179,7 +184,7 @@ 共有{{pagination.count}}条病历 - + ID:{{item.caseNo}} @@ -363,7 +368,7 @@ - + { this.handleSearch(); + this.getNotice(); }); } }, }); }, + handleNoRead() { + wx.showModal({ + title: "暂无未读消息", + confirmColor: "#00B4C5", + cancelColor: "#141515", + showCancel: false, + }); + }, }); export {}; diff --git a/src/pages/chatRoomList/index.wxml b/src/pages/chatRoomList/index.wxml index f717ca5..e9b6ef4 100644 --- a/src/pages/chatRoomList/index.wxml +++ b/src/pages/chatRoomList/index.wxml @@ -124,7 +124,7 @@ 已读 全部标为已读 - 暂无未读消息 + 暂无未读消息