修改
This commit is contained in:
parent
0ac072ec57
commit
efc9f3171a
@ -10,9 +10,18 @@ export function sendMessage(data) {
|
||||
}
|
||||
export function consultationlnfo(id) {
|
||||
return request({
|
||||
url: '/nurseApplet/consultationInfo/'+id,
|
||||
url: '/nurseApplet/consultationInfo/' + id,
|
||||
method: 'get',
|
||||
|
||||
|
||||
})
|
||||
}
|
||||
|
||||
//已解决
|
||||
export function editconsultationInfo(data) {
|
||||
return request({
|
||||
url: '/nurseApplet/consultationInfo',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
// export function updateReadStatus(data) {
|
||||
@ -20,7 +29,7 @@ export function consultationlnfo(id) {
|
||||
// url: '/nurseApplet/chatRecord/updateReadStatus',
|
||||
// method: 'put',
|
||||
// data:data,
|
||||
|
||||
|
||||
// })
|
||||
// }
|
||||
|
||||
|
||||
@ -84,8 +84,8 @@
|
||||
{
|
||||
"path": "pages/seekadvicefrom/seekadvicefrom",
|
||||
"style": {
|
||||
"navigationBarTitleText": "消息",
|
||||
"enablePullDownRefresh": false
|
||||
"enablePullDownRefresh": false,
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
@ -22,7 +22,6 @@
|
||||
<view class="">
|
||||
问题描述:{{list.situationDescription}}
|
||||
</view>
|
||||
|
||||
<view class="">
|
||||
患者个人情况说明:{{list.situationDescription}}
|
||||
</view>
|
||||
|
||||
@ -6,6 +6,16 @@
|
||||
</view> -->
|
||||
<!-- 聊天渲染列表 -->
|
||||
<!-- 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"
|
||||
:style="'height:calc(100vh - '+ inputboxtop +'px)'" scroll-with-animation="true">
|
||||
<view style="height: 85vh; padding-top: 200rpx;" @tap='touchend'>
|
||||
@ -73,6 +83,9 @@
|
||||
</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>
|
||||
</template>
|
||||
|
||||
@ -81,11 +94,15 @@
|
||||
sendMessage,
|
||||
getChatRecord,
|
||||
markRead,
|
||||
editconsultationInfo
|
||||
} from '@/api/seekadvicefrom/seekadvicefrom.js';
|
||||
import baseurl from '@/api/baseurl.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
background: {
|
||||
backgroundColor: '#26A888',
|
||||
},
|
||||
baseurl: '',
|
||||
title: '',
|
||||
SOCKETURL: 'ws://192.168.16.212:8088/webSocket/',
|
||||
@ -145,17 +162,19 @@
|
||||
scrollTop: 999999,
|
||||
inputboxtop: undefined,
|
||||
id: '',
|
||||
editconsultationInfoshow: false,
|
||||
};
|
||||
},
|
||||
onReady() { //更改导航栏文字
|
||||
uni.setNavigationBarTitle({
|
||||
title: this.title,
|
||||
});
|
||||
// uni.setNavigationBarTitle({
|
||||
// title: this.title,
|
||||
// });
|
||||
},
|
||||
onLoad(options) {
|
||||
this.baseurl = baseurl;
|
||||
// uni.closeSocket()
|
||||
this.currentItem = JSON.parse(options.item)
|
||||
console.log(this.currentItem)
|
||||
this.id = this.currentItem.id
|
||||
this.title = this.currentItem.patientName //导航栏标题
|
||||
this.userName = this.currentItem.doctorName
|
||||
@ -170,6 +189,27 @@
|
||||
// })
|
||||
},
|
||||
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() {
|
||||
// let objLIST = {
|
||||
// consultationId: this.currentItem.id,
|
||||
@ -525,6 +565,38 @@
|
||||
</script>
|
||||
|
||||
<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 {
|
||||
font-size: 24rpx;
|
||||
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