修改
This commit is contained in:
parent
0ac072ec57
commit
efc9f3171a
@ -10,9 +10,18 @@ export function sendMessage(data) {
|
|||||||
}
|
}
|
||||||
export function consultationlnfo(id) {
|
export function consultationlnfo(id) {
|
||||||
return request({
|
return request({
|
||||||
url: '/nurseApplet/consultationInfo/'+id,
|
url: '/nurseApplet/consultationInfo/' + id,
|
||||||
method: 'get',
|
method: 'get',
|
||||||
|
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
//已解决
|
||||||
|
export function editconsultationInfo(data) {
|
||||||
|
return request({
|
||||||
|
url: '/nurseApplet/consultationInfo',
|
||||||
|
method: 'put',
|
||||||
|
data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
// export function updateReadStatus(data) {
|
// export function updateReadStatus(data) {
|
||||||
@ -20,7 +29,7 @@ export function consultationlnfo(id) {
|
|||||||
// url: '/nurseApplet/chatRecord/updateReadStatus',
|
// url: '/nurseApplet/chatRecord/updateReadStatus',
|
||||||
// method: 'put',
|
// method: 'put',
|
||||||
// data:data,
|
// data:data,
|
||||||
|
|
||||||
// })
|
// })
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
|||||||
@ -84,8 +84,8 @@
|
|||||||
{
|
{
|
||||||
"path": "pages/seekadvicefrom/seekadvicefrom",
|
"path": "pages/seekadvicefrom/seekadvicefrom",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "消息",
|
"enablePullDownRefresh": false,
|
||||||
"enablePullDownRefresh": false
|
"navigationStyle": "custom"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@ -22,7 +22,6 @@
|
|||||||
<view class="">
|
<view class="">
|
||||||
问题描述:{{list.situationDescription}}
|
问题描述:{{list.situationDescription}}
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="">
|
<view class="">
|
||||||
患者个人情况说明:{{list.situationDescription}}
|
患者个人情况说明:{{list.situationDescription}}
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@ -6,6 +6,16 @@
|
|||||||
</view> -->
|
</view> -->
|
||||||
<!-- 聊天渲染列表 -->
|
<!-- 聊天渲染列表 -->
|
||||||
<!-- scroll-y scroll-into-view="placeholder" scroll-top="500" scroll-with-animation -->
|
<!-- scroll-y scroll-into-view="placeholder" scroll-top="500" scroll-with-animation -->
|
||||||
|
<u-navbar :is-back="false" :background="background" class="u-navbar">
|
||||||
|
<image src="@/static/fanhui.png" mode="" @tap="goprevious"></image>
|
||||||
|
<view class="navbartitle" @tap="goprevious">
|
||||||
|
{{title}}
|
||||||
|
</view>
|
||||||
|
<view class="navbarrighttitle" @tap='editconsultationInfoshowtrue'
|
||||||
|
v-show='Number(currentItem.status)==1||!currentItem.status'>
|
||||||
|
已解决
|
||||||
|
</view>
|
||||||
|
</u-navbar>
|
||||||
<scroll-view scroll-y="true" :scroll-top='scrollTop' id="demo"
|
<scroll-view scroll-y="true" :scroll-top='scrollTop' id="demo"
|
||||||
:style="'height:calc(100vh - '+ inputboxtop +'px)'" scroll-with-animation="true">
|
:style="'height:calc(100vh - '+ inputboxtop +'px)'" scroll-with-animation="true">
|
||||||
<view style="height: 85vh; padding-top: 200rpx;" @tap='touchend'>
|
<view style="height: 85vh; padding-top: 200rpx;" @tap='touchend'>
|
||||||
@ -73,6 +83,9 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<u-modal v-model="editconsultationInfoshow" content="问题是否已解决?" show-cancel-button :mask-close-able="true"
|
||||||
|
@confirm='editupdata'></u-modal>
|
||||||
|
<u-toast ref="uToast" />
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -81,11 +94,15 @@
|
|||||||
sendMessage,
|
sendMessage,
|
||||||
getChatRecord,
|
getChatRecord,
|
||||||
markRead,
|
markRead,
|
||||||
|
editconsultationInfo
|
||||||
} from '@/api/seekadvicefrom/seekadvicefrom.js';
|
} from '@/api/seekadvicefrom/seekadvicefrom.js';
|
||||||
import baseurl from '@/api/baseurl.js'
|
import baseurl from '@/api/baseurl.js'
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
background: {
|
||||||
|
backgroundColor: '#26A888',
|
||||||
|
},
|
||||||
baseurl: '',
|
baseurl: '',
|
||||||
title: '',
|
title: '',
|
||||||
SOCKETURL: 'ws://192.168.16.212:8088/webSocket/',
|
SOCKETURL: 'ws://192.168.16.212:8088/webSocket/',
|
||||||
@ -145,17 +162,19 @@
|
|||||||
scrollTop: 999999,
|
scrollTop: 999999,
|
||||||
inputboxtop: undefined,
|
inputboxtop: undefined,
|
||||||
id: '',
|
id: '',
|
||||||
|
editconsultationInfoshow: false,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onReady() { //更改导航栏文字
|
onReady() { //更改导航栏文字
|
||||||
uni.setNavigationBarTitle({
|
// uni.setNavigationBarTitle({
|
||||||
title: this.title,
|
// title: this.title,
|
||||||
});
|
// });
|
||||||
},
|
},
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
this.baseurl = baseurl;
|
this.baseurl = baseurl;
|
||||||
// uni.closeSocket()
|
// uni.closeSocket()
|
||||||
this.currentItem = JSON.parse(options.item)
|
this.currentItem = JSON.parse(options.item)
|
||||||
|
console.log(this.currentItem)
|
||||||
this.id = this.currentItem.id
|
this.id = this.currentItem.id
|
||||||
this.title = this.currentItem.patientName //导航栏标题
|
this.title = this.currentItem.patientName //导航栏标题
|
||||||
this.userName = this.currentItem.doctorName
|
this.userName = this.currentItem.doctorName
|
||||||
@ -170,6 +189,27 @@
|
|||||||
// })
|
// })
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
editupdata() {
|
||||||
|
var obj = {
|
||||||
|
status: 2,
|
||||||
|
id: this.currentItem.id
|
||||||
|
}
|
||||||
|
editconsultationInfo(obj).then(res => {
|
||||||
|
this.$refs.uToast.show({
|
||||||
|
title: '问诊已解决',
|
||||||
|
type: 'success',
|
||||||
|
back: 1
|
||||||
|
})
|
||||||
|
})
|
||||||
|
},
|
||||||
|
editconsultationInfoshowtrue() {
|
||||||
|
this.editconsultationInfoshow = true
|
||||||
|
},
|
||||||
|
goprevious() {
|
||||||
|
uni.navigateBack({
|
||||||
|
delta: 1
|
||||||
|
})
|
||||||
|
},
|
||||||
// infolist() {
|
// infolist() {
|
||||||
// let objLIST = {
|
// let objLIST = {
|
||||||
// consultationId: this.currentItem.id,
|
// consultationId: this.currentItem.id,
|
||||||
@ -525,6 +565,38 @@
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
::v-deep .u-navbar-placeholder {
|
||||||
|
background-color: #F7F5F5;
|
||||||
|
z-index: 999;
|
||||||
|
}
|
||||||
|
|
||||||
|
.u-navbar {
|
||||||
|
display: inline-block;
|
||||||
|
// height: 200rpx;
|
||||||
|
position: relative;
|
||||||
|
|
||||||
|
image {
|
||||||
|
margin: 0 4% 0 4%;
|
||||||
|
width: 20rpx;
|
||||||
|
height: 30rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbarrighttitle {
|
||||||
|
position: absolute;
|
||||||
|
right: 20rpx;
|
||||||
|
font-size: 30rpx;
|
||||||
|
font-weight: 500;
|
||||||
|
color: #FFFFFF;
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbartitle {
|
||||||
|
width: 31%;
|
||||||
|
font-size: 34rpx;
|
||||||
|
font-weight: 500;
|
||||||
|
color: #FFFFFF;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.background {
|
.background {
|
||||||
font-size: 24rpx;
|
font-size: 24rpx;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
|
|||||||
BIN
static/fanhui.png
Normal file
BIN
static/fanhui.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 359 B |
Loading…
Reference in New Issue
Block a user