修改
This commit is contained in:
parent
7b451c3516
commit
b6cb956527
@ -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>
|
||||
|
||||
@ -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>
|
||||
@ -269,4 +269,4 @@
|
||||
margin: 20rpx auto 0;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
@ -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>
|
||||
@ -244,4 +244,4 @@
|
||||
height: 130rpx;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
@ -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>
|
||||
|
||||
@ -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'?'主任医师':''}}
|
||||
|
||||
@ -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>
|
||||
|
||||
@ -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()
|
||||
})
|
||||
@ -752,4 +756,4 @@
|
||||
bottom: 38rpx;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 4.5 KiB |
Loading…
Reference in New Issue
Block a user