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. 23
      src/patient/pages/lastDiagnosisReport/index.ts
  7. 24
      src/patient/pages/preDiagnosisReport/index.ts
  8. 2
      src/patient/pages/selectHostipal/index.scss

5
src/components/popup/index.scss

@ -951,7 +951,7 @@ @@ -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 @@ @@ -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 @@ @@ -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);

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

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

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

@ -80,8 +80,9 @@ Page({ @@ -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() {

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

@ -304,7 +304,7 @@ Page({ @@ -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({ @@ -332,6 +332,8 @@ Page({
this.setData({
messageList: [...messageList, params],
})
this.filterCreateTime()
this.handleView()
})
},
handleQuestionTab(e) {

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

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

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

@ -186,7 +186,6 @@ Page({ @@ -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({ @@ -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) {

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

@ -272,12 +272,10 @@ Page({ @@ -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({ @@ -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) {

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

@ -110,7 +110,9 @@ page { @@ -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;

Loading…
Cancel
Save