This commit is contained in:
2023-10-24 11:29:49 +08:00
parent 7b451c3516
commit b6cb956527
8 changed files with 21 additions and 17 deletions

View File

@ -35,7 +35,7 @@
<view class="detailslist">
<image :src="baseurl+item.personPictureUrl" mode=""
v-if="item.orderType =='HEALTH_CONSULTATION'&&item.personPictureUrl"></image>
<image src="@/static/pagesB/yis.png" mode=""
<image src="@/static/docHead.png" mode=""
v-if="item.orderType =='HEALTH_CONSULTATION'&&!item.personPictureUrl"></image>
<image :src="baseurl+item.attributePitureUrl" mode=""
v-if="item.orderType !='HEALTH_CONSULTATION'"></image>

View File

@ -24,7 +24,7 @@
<view class="list" v-if="HospitalPersonlist">
<view class="item" @tap="godoctordetails" v-for="item in HospitalPersonlist">
<image v-if="item.personPictureUrl" :src="baseurl+item.personPictureUrl" mode=""></image>
<image v-else src="@/static/pagesB/yis.png" mode=""></image>
<image v-else src="@/static/docHead.png" mode=""></image>
<view class="name">
{{item.personName}}
</view>

View File

@ -17,7 +17,7 @@
<view class="time">
{{item.createTime?item.createTime:''}}
</view>
<image src="../../static/pagesB/Behave.png" mode=""></image>
<image src="../../static/docHead.png" mode=""></image>
<view class="name">
{{item.doctorName?item.doctorName:''}}
</view>

View File

@ -4,7 +4,7 @@
<view class="detailslist">
<image :src="baseurl+order.personPictureUrl" mode=""
v-if="order.orderType =='HEALTH_CONSULTATION'&&order.personPictureUrl"></image>
<image src="@/static/pagesB/yis.png" mode=""
<image src="@/static/docHead.png" mode=""
v-if="order.orderType =='HEALTH_CONSULTATION'&&!order.personPictureUrl"></image>
<image :src="baseurl+order.attributePitureUrl" mode="" v-if="order.orderType !='HEALTH_CONSULTATION'">
</image>

View File

@ -34,7 +34,7 @@
@click.stop='godoctordetails'>
<image class="hospitalimage" v-if="item.personPictureUrl"
:src="baseurl+item.personPictureUrl" mode=""></image>
<image class="hospitalimage" v-else src="@/static/pagesB/yis.png" mode=""></image>
<image class="hospitalimage" v-else src="@/static/docHead.png" mode=""></image>
<view class="hospitalteacher">{{item.personName}}</view>
<view class="physician">
{{ item.academicTitle=='CHIEF_PHYSICIAN'?'主任医师':''}}

View File

@ -18,7 +18,7 @@
<view class="detailslist">
<image :src="baseurl+order.personPictureUrl" mode=""
v-if="order.orderType =='HEALTH_CONSULTATION'&&order.personPictureUrl"></image>
<image src="@/static/pagesB/yis.png" mode=""
<image src="@/static/docHead.png" mode=""
v-if="order.orderType =='HEALTH_CONSULTATION'&&!order.personPictureUrl"></image>
<image :src="baseurl+order.attributePitureUrl" mode=""
v-if="order.orderType !='HEALTH_CONSULTATION'"></image>

View File

@ -11,8 +11,8 @@
<view style="height: 85vh; padding-top: 200rpx;" @tap='touchend'>
<view class="snedItem" v-for="(item, index) in newsList" :key="index">
<view class="ifSend" v-if="item.senderName == userName">
<view class="sendBox" v-if="item.messageType=='1'">{{item.content}}</view>
<image v-if="item.messageType=='2'" :src="baseurl+item.content" class="snedItemimage" />
<view class="sendBox" v-if="item.messageType==1">{{item.content}}</view>
<image v-if="item.messageType==2" :src="baseurl+item.content" class="snedItemimage" />
<image class="head" src="@/static/headsculpture.png"></image>
</view>
<view class="doctorSend" v-else>
@ -156,6 +156,7 @@
this.currentItem = JSON.parse(options.item)
this.title = this.currentItem.doctorName //
this.userName = this.currentItem.patientName
console.log(this.userName)
this.SOCKETURL = this.SOCKETURL + this.currentItem.patientId
this.getPageHistory()
this.scoket()
@ -234,9 +235,10 @@
if (this.socketOpen == false) {
return
}
this.newsList.push({
senderName: this.userName,
content: this.formData.content
that.newsList.push({
senderName: that.currentItem.patientName,
content: that.formData.content,
messageType: 1,
})
let obj = {
consultationId: that.currentItem.id,
@ -382,7 +384,8 @@
res.tempFilePaths.forEach(e => {
that.newsList.push({
imgurl: e,
senderName: that.userName,
messageType: 2,
senderName: that.currentItem.patientName,
})
uni.uploadFile({
url: baseurl +
@ -461,8 +464,9 @@
uni.onSocketMessage(res => {
console.log("webScoket监听收到的信息", res);
that.newsList.push({
senderName: that.currentItem.patientName,
content: JSON.parse(res.data).message
senderName: that.currentItem.doctorName,
content: JSON.parse(res.data).message,
messageType: JSON.parse(res.data).message
})
that.Read()
})

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.5 KiB