From 929387055e84912f8cb8c4e0a729a92b3dfface9 Mon Sep 17 00:00:00 2001 From: kola-web Date: Fri, 25 Jul 2025 17:32:59 +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/popup/index.scss | 5 +++-- src/doctor/pages/askDoctor/index.wxml | 1 + src/doctor/pages/course/index.ts | 3 ++- src/patient/pages/askPatient/index.ts | 4 +++- src/patient/pages/askPatient/index.wxml | 5 ++--- src/patient/pages/lastDiagnosisReport/index.ts | 23 +++++++++++++---------- src/patient/pages/preDiagnosisReport/index.ts | 24 +++++++++++++----------- src/patient/pages/selectHostipal/index.scss | 2 ++ 8 files changed, 39 insertions(+), 28 deletions(-) diff --git a/src/components/popup/index.scss b/src/components/popup/index.scss index 1a8096d..442f832 100644 --- a/src/components/popup/index.scss +++ b/src/components/popup/index.scss @@ -951,7 +951,7 @@ width: 630rpx; padding: 48rpx 32rpx 34rpx; box-sizing: border-box; - background: linear-gradient(to top, #ffffff 0%, #ffffff 86%, #ffedeb 100%); + background: linear-gradient(to top, rgba(247, 247, 250, 1) 0%, rgba(247, 247, 250, 1) 86%, #ffedeb 100%); .title { display: block; margin: 0 auto; @@ -969,7 +969,7 @@ position: relative; margin-top: 32rpx; padding: 32rpx; - background: #ffffff; + background: rgba(255, 255, 255, 1); display: flex; align-items: center; gap: 16rpx; @@ -1013,6 +1013,7 @@ color: rgba(161, 164, 172, 1); } .tag { + vertical-align: 2rpx; display: inline-block; font-size: 20rpx; color: rgba(255, 255, 255, 1); diff --git a/src/doctor/pages/askDoctor/index.wxml b/src/doctor/pages/askDoctor/index.wxml index ef2201b..bce8bb2 100644 --- a/src/doctor/pages/askDoctor/index.wxml +++ b/src/doctor/pages/askDoctor/index.wxml @@ -51,6 +51,7 @@ {{message.msgContent}}: + {{message.msgOtherInfo.Clinic}} diff --git a/src/doctor/pages/course/index.ts b/src/doctor/pages/course/index.ts index 54397f1..c826d45 100644 --- a/src/doctor/pages/course/index.ts +++ b/src/doctor/pages/course/index.ts @@ -80,8 +80,9 @@ Page({ }) return } + const id = period==1 ? this.data[`periodInfo${period}`].hospitalId wx.navigateTo({ - url: `/doctor/pages/courseHostipal/index?id=${periodInfo1.hospitalId}&period=${period}`, + url: `/doctor/pages/courseHostipal/index?id=${id}&period=${period}`, }) }, handleCasesAdd() { diff --git a/src/patient/pages/askPatient/index.ts b/src/patient/pages/askPatient/index.ts index f8c807d..8dd512c 100644 --- a/src/patient/pages/askPatient/index.ts +++ b/src/patient/pages/askPatient/index.ts @@ -304,7 +304,7 @@ Page({ data: { doctorId: id }, }).then((res) => { console.log('res: ', res) - let params = {} + let params: any = {} if (res.contentType == 3) { params = { msgId: '', @@ -332,6 +332,8 @@ Page({ this.setData({ messageList: [...messageList, params], }) + this.filterCreateTime() + this.handleView() }) }, handleQuestionTab(e) { diff --git a/src/patient/pages/askPatient/index.wxml b/src/patient/pages/askPatient/index.wxml index b427145..40cb270 100644 --- a/src/patient/pages/askPatient/index.wxml +++ b/src/patient/pages/askPatient/index.wxml @@ -59,9 +59,8 @@ {{message.msgContent}}: - - {{message.msgOtherInfo.Clinic}} - + + {{message.msgOtherInfo.Clinic}} {{week[item.weekday-1]}} diff --git a/src/patient/pages/lastDiagnosisReport/index.ts b/src/patient/pages/lastDiagnosisReport/index.ts index 9ce95d6..e1c066d 100644 --- a/src/patient/pages/lastDiagnosisReport/index.ts +++ b/src/patient/pages/lastDiagnosisReport/index.ts @@ -186,7 +186,6 @@ Page({ const { examId, period } = this.data const detail = e.detail || [] let apiArr: any[] = [] - const fileList = this.data[key] || [] detail.forEach((item: any) => { const params: any = { examId, @@ -197,22 +196,26 @@ Page({ url: item.url, videoUrl: item.videoUrl, duration: item.duration, + key, } - fileList.push(params) apiArr.push(this.saveAttachment(params)) }) - this.setData({ - [key]: fileList, - }) Promise.all(apiArr).then((res) => { - console.log(res) + const fileList = this.data[key] || [] + this.setData({ + [key]: fileList.concat(res), + }) }) }, saveAttachment(params: any) { - return wx.ajax({ - method: 'POST', - url: '?r=wtx/treatment/save-attachment', - data: params, + return new Promise((resolve) => { + wx.ajax({ + method: 'POST', + url: '?r=wtx/treatment/save-attachment', + data: params, + }).then((res) => { + resolve({ ...params, attachmentId: res }) + }) }) }, delFile(e: any) { diff --git a/src/patient/pages/preDiagnosisReport/index.ts b/src/patient/pages/preDiagnosisReport/index.ts index 1b5052b..368ecfa 100644 --- a/src/patient/pages/preDiagnosisReport/index.ts +++ b/src/patient/pages/preDiagnosisReport/index.ts @@ -272,12 +272,10 @@ Page({ } }, setFile(e: any) { - console.log('DEBUGPRINT[63]: index.ts:189: e=', e) const { type, key } = e.currentTarget.dataset const { examId, period } = this.data const detail = e.detail || [] let apiArr: any[] = [] - const fileList = this.data[key] || [] detail.forEach((item: any) => { const params: any = { examId, @@ -288,22 +286,26 @@ Page({ url: item.url, videoUrl: item.videoUrl, duration: item.duration, + key, } - fileList.push(params) apiArr.push(this.saveAttachment(params)) }) - this.setData({ - [key]: fileList, - }) Promise.all(apiArr).then((res) => { - console.log(res) + const fileList = this.data[key] || [] + this.setData({ + [key]: fileList.concat(res), + }) }) }, saveAttachment(params: any) { - return wx.ajax({ - method: 'POST', - url: '?r=wtx/treatment/save-attachment', - data: params, + return new Promise((resolve) => { + wx.ajax({ + method: 'POST', + url: '?r=wtx/treatment/save-attachment', + data: params, + }).then((res) => { + resolve({ ...params, attachmentId: res }) + }) }) }, delFile(e: any) { diff --git a/src/patient/pages/selectHostipal/index.scss b/src/patient/pages/selectHostipal/index.scss index c5771a5..f78a581 100644 --- a/src/patient/pages/selectHostipal/index.scss +++ b/src/patient/pages/selectHostipal/index.scss @@ -110,7 +110,9 @@ page { border-radius: 24rpx; background-color: #fff; display: flex; + align-items: flex-start; .logo { + flex-shrink: 0; padding: 8rpx; border-radius: 24rpx; border: 1px solid #fafafa;