Browse Source

bug处理

2.0
kola-web 2 days ago
parent
commit
929387055e
  1. 5
      src/components/popup/index.scss
  2. 1
      src/doctor/pages/askDoctor/index.wxml
  3. 3
      src/doctor/pages/course/index.ts
  4. 4
      src/patient/pages/askPatient/index.ts
  5. 5
      src/patient/pages/askPatient/index.wxml
  6. 15
      src/patient/pages/lastDiagnosisReport/index.ts
  7. 16
      src/patient/pages/preDiagnosisReport/index.ts
  8. 2
      src/patient/pages/selectHostipal/index.scss

5
src/components/popup/index.scss

@ -951,7 +951,7 @@
width: 630rpx; width: 630rpx;
padding: 48rpx 32rpx 34rpx; padding: 48rpx 32rpx 34rpx;
box-sizing: border-box; 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 { .title {
display: block; display: block;
margin: 0 auto; margin: 0 auto;
@ -969,7 +969,7 @@
position: relative; position: relative;
margin-top: 32rpx; margin-top: 32rpx;
padding: 32rpx; padding: 32rpx;
background: #ffffff; background: rgba(255, 255, 255, 1);
display: flex; display: flex;
align-items: center; align-items: center;
gap: 16rpx; gap: 16rpx;
@ -1013,6 +1013,7 @@
color: rgba(161, 164, 172, 1); color: rgba(161, 164, 172, 1);
} }
.tag { .tag {
vertical-align: 2rpx;
display: inline-block; display: inline-block;
font-size: 20rpx; font-size: 20rpx;
color: rgba(255, 255, 255, 1); color: rgba(255, 255, 255, 1);

1
src/doctor/pages/askDoctor/index.wxml

@ -51,6 +51,7 @@
<view class="week" wx:elif="{{message.msgContentType==='3'}}"> <view class="week" wx:elif="{{message.msgContentType==='3'}}">
<view class="w-title">{{message.msgContent}}:</view> <view class="w-title">{{message.msgContent}}:</view>
<view class="w-container"> <view class="w-container">
<!-- prettier-ignore -->
<view class="w-content" wx:if="{{message.msgOtherInfo.ClinicType==2}}">{{message.msgOtherInfo.Clinic}}</view> <view class="w-content" wx:if="{{message.msgOtherInfo.ClinicType==2}}">{{message.msgOtherInfo.Clinic}}</view>
<view class="w-wrap" wx:else> <view class="w-wrap" wx:else>
<view class="row" wx:for="{{message.msgOtherInfo.Clinic}}" wx:key="index"> <view class="row" wx:for="{{message.msgOtherInfo.Clinic}}" wx:key="index">

3
src/doctor/pages/course/index.ts

@ -80,8 +80,9 @@ Page({
}) })
return return
} }
const id = period==1 ? this.data[`periodInfo${period}`].hospitalId
wx.navigateTo({ wx.navigateTo({
url: `/doctor/pages/courseHostipal/index?id=${periodInfo1.hospitalId}&period=${period}`, url: `/doctor/pages/courseHostipal/index?id=${id}&period=${period}`,
}) })
}, },
handleCasesAdd() { handleCasesAdd() {

4
src/patient/pages/askPatient/index.ts

@ -304,7 +304,7 @@ Page({
data: { doctorId: id }, data: { doctorId: id },
}).then((res) => { }).then((res) => {
console.log('res: ', res) console.log('res: ', res)
let params = {} let params: any = {}
if (res.contentType == 3) { if (res.contentType == 3) {
params = { params = {
msgId: '', msgId: '',
@ -332,6 +332,8 @@ Page({
this.setData({ this.setData({
messageList: [...messageList, params], messageList: [...messageList, params],
}) })
this.filterCreateTime()
this.handleView()
}) })
}, },
handleQuestionTab(e) { handleQuestionTab(e) {

5
src/patient/pages/askPatient/index.wxml

@ -59,9 +59,8 @@
<view class="week" wx:elif="{{message.msgContentType==='3'}}"> <view class="week" wx:elif="{{message.msgContentType==='3'}}">
<view class="w-title">{{message.msgContent}}:</view> <view class="w-title">{{message.msgContent}}:</view>
<view class="w-container"> <view class="w-container">
<view class="w-content" wx:if="{{message.msgOtherInfo.ClinicType==2}}"> <!-- prettier-ignore -->
{{message.msgOtherInfo.Clinic}} <view class="w-content" wx:if="{{message.msgOtherInfo.ClinicType==2}}">{{message.msgOtherInfo.Clinic}}</view>
</view>
<view class="w-wrap" wx:else> <view class="w-wrap" wx:else>
<view class="row" wx:for="{{message.msgOtherInfo.Clinic}}" wx:key="index"> <view class="row" wx:for="{{message.msgOtherInfo.Clinic}}" wx:key="index">
<view class="label">{{week[item.weekday-1]}}</view> <view class="label">{{week[item.weekday-1]}}</view>

15
src/patient/pages/lastDiagnosisReport/index.ts

@ -186,7 +186,6 @@ Page({
const { examId, period } = this.data const { examId, period } = this.data
const detail = e.detail || [] const detail = e.detail || []
let apiArr: any[] = [] let apiArr: any[] = []
const fileList = this.data[key] || []
detail.forEach((item: any) => { detail.forEach((item: any) => {
const params: any = { const params: any = {
examId, examId,
@ -197,22 +196,26 @@ Page({
url: item.url, url: item.url,
videoUrl: item.videoUrl, videoUrl: item.videoUrl,
duration: item.duration, duration: item.duration,
key,
} }
fileList.push(params)
apiArr.push(this.saveAttachment(params)) apiArr.push(this.saveAttachment(params))
}) })
Promise.all(apiArr).then((res) => {
const fileList = this.data[key] || []
this.setData({ this.setData({
[key]: fileList, [key]: fileList.concat(res),
}) })
Promise.all(apiArr).then((res) => {
console.log(res)
}) })
}, },
saveAttachment(params: any) { saveAttachment(params: any) {
return wx.ajax({ return new Promise((resolve) => {
wx.ajax({
method: 'POST', method: 'POST',
url: '?r=wtx/treatment/save-attachment', url: '?r=wtx/treatment/save-attachment',
data: params, data: params,
}).then((res) => {
resolve({ ...params, attachmentId: res })
})
}) })
}, },
delFile(e: any) { delFile(e: any) {

16
src/patient/pages/preDiagnosisReport/index.ts

@ -272,12 +272,10 @@ Page({
} }
}, },
setFile(e: any) { setFile(e: any) {
console.log('DEBUGPRINT[63]: index.ts:189: e=', e)
const { type, key } = e.currentTarget.dataset const { type, key } = e.currentTarget.dataset
const { examId, period } = this.data const { examId, period } = this.data
const detail = e.detail || [] const detail = e.detail || []
let apiArr: any[] = [] let apiArr: any[] = []
const fileList = this.data[key] || []
detail.forEach((item: any) => { detail.forEach((item: any) => {
const params: any = { const params: any = {
examId, examId,
@ -288,22 +286,26 @@ Page({
url: item.url, url: item.url,
videoUrl: item.videoUrl, videoUrl: item.videoUrl,
duration: item.duration, duration: item.duration,
key,
} }
fileList.push(params)
apiArr.push(this.saveAttachment(params)) apiArr.push(this.saveAttachment(params))
}) })
Promise.all(apiArr).then((res) => {
const fileList = this.data[key] || []
this.setData({ this.setData({
[key]: fileList, [key]: fileList.concat(res),
}) })
Promise.all(apiArr).then((res) => {
console.log(res)
}) })
}, },
saveAttachment(params: any) { saveAttachment(params: any) {
return wx.ajax({ return new Promise((resolve) => {
wx.ajax({
method: 'POST', method: 'POST',
url: '?r=wtx/treatment/save-attachment', url: '?r=wtx/treatment/save-attachment',
data: params, data: params,
}).then((res) => {
resolve({ ...params, attachmentId: res })
})
}) })
}, },
delFile(e: any) { delFile(e: any) {

2
src/patient/pages/selectHostipal/index.scss

@ -110,7 +110,9 @@ page {
border-radius: 24rpx; border-radius: 24rpx;
background-color: #fff; background-color: #fff;
display: flex; display: flex;
align-items: flex-start;
.logo { .logo {
flex-shrink: 0;
padding: 8rpx; padding: 8rpx;
border-radius: 24rpx; border-radius: 24rpx;
border: 1px solid #fafafa; border: 1px solid #fafafa;

Loading…
Cancel
Save