diff --git a/api/seekadvicefrom/seekadvicefrom.js b/api/seekadvicefrom/seekadvicefrom.js index e659d5f..c8b21eb 100644 --- a/api/seekadvicefrom/seekadvicefrom.js +++ b/api/seekadvicefrom/seekadvicefrom.js @@ -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, - + // }) // } diff --git a/pages.json b/pages.json index 4ff551c..ae91a1b 100644 --- a/pages.json +++ b/pages.json @@ -84,8 +84,8 @@ { "path": "pages/seekadvicefrom/seekadvicefrom", "style": { - "navigationBarTitleText": "消息", - "enablePullDownRefresh": false + "enablePullDownRefresh": false, + "navigationStyle": "custom" } }, { diff --git a/pages/information/information.vue b/pages/information/information.vue index a963c7b..a2a2fd9 100644 --- a/pages/information/information.vue +++ b/pages/information/information.vue @@ -22,7 +22,6 @@ 问题描述:{{list.situationDescription}} - 患者个人情况说明:{{list.situationDescription}} diff --git a/pages/seekadvicefrom/seekadvicefrom.vue b/pages/seekadvicefrom/seekadvicefrom.vue index 9f6bbcf..6ea0447 100644 --- a/pages/seekadvicefrom/seekadvicefrom.vue +++ b/pages/seekadvicefrom/seekadvicefrom.vue @@ -6,6 +6,16 @@ --> + + + + {{title}} + + + 已解决 + + @@ -73,6 +83,9 @@ + + @@ -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 @@