This commit is contained in:
2023-10-09 13:47:07 +08:00
parent 4e080c91c9
commit 190bdc1370
3 changed files with 45 additions and 20 deletions

View File

@ -91,6 +91,18 @@
"navigationBarTitleText": "院内陪护",
"enablePullDownRefresh": false
}
}, {
"path": "imagetextConsultation/imagetextConsultation",
"style": {
"navigationBarTitleText": "图文问诊",
"enablePullDownRefresh": false
}
}, {
"path": "createnewconsultation/createnewconsultation",
"style": {
"navigationBarTitleText": "新建图文问诊",
"enablePullDownRefresh": false
}
}, {
"path": "appointmenttime/appointmenttime",
"style": {
@ -466,17 +478,15 @@
"navigationBarTitleText": "体征检测",
"enablePullDownRefresh": false
}
}
,{
"path" : "seekadvicefrom/seekadvicefrom",
"style" :
{
"navigationBarTitleText": "咨询医生",
"enablePullDownRefresh": false
}
}, {
"path": "seekadvicefrom/seekadvicefrom",
"style": {
"navigationBarTitleText": "咨询医生",
"enablePullDownRefresh": false
}
}
]
}
]
}],
"globalStyle": {
"navigationBarTextStyle": "white",
@ -525,4 +535,4 @@
// }
]
}
}
}

View File

@ -25,6 +25,9 @@
</template>
<script>
import {
consultationInfolist
} from '@/api/pagesB/imagetextConsultation.js'
export default {
data() {
return {
@ -41,6 +44,11 @@
],
};
},
onShow(){
consultationInfolist().then(res=>{
console.log(res)
})
},
methods: {
//
selecttitltext(item) {

View File

@ -72,16 +72,16 @@
</template>
<script>
// import {
// sendMessage,
// getChatHistory,
// markRead
// } from '@/service/api/api.js';
import {
sendMessage,
getChatHistory,
markRead
} from '@/api/pagesC/seekadvicefrom.js';
export default {
data() {
return {
title: '',
SOCKETURL: 'wss://fdmp.xinelu.cn/fm/webSocket/' + uni.getStorageSync('userInfo').bindingNo,
SOCKETURL: 'wss://http://192.168.16.212/fm/webSocket/' + uni.getStorageSync('userInfo').bindingNo,
// SOCKETURL: 'wss://fdmp.xinelu.cn/fm/webSocket/' + uni.getStorageSync('userInfo').bindingNo,
socketOpen: false,
sendInfo: {},
@ -149,7 +149,14 @@
if (options.title) {
this.title = options.title //
}
this.currentItem = JSON.parse(options.currentItem)
this.currentItem = {
senderName: e.userName,
senderNo: e.userNo,
recipientName: uni.getStorageSync('userInfo').residentName,
recipientNo: uni.getStorageSync('userInfo').bindingNo,
// messageCategory: '3'
}
// this.currentItem = JSON.parse(options.currentItem)
this.getPageHistory()
this.scoket()
},
@ -162,7 +169,7 @@
getPageHistory() {
let obj = {
bindingNo: this.currentItem.recipientNo,
messageCategory: this.currentItem.messageCategory,
// messageCategory: this.currentItem.messageCategory,
recipientNo: this.currentItem.senderNo,
senderNo: this.currentItem.recipientNo
}
@ -179,7 +186,7 @@
Read() {
let markReadData = {
bindingNo: this.currentItem.recipientNo,
messageCategory: this.currentItem.messageCategory,
// messageCategory: this.currentItem.messageCategory,
senderNo: this.currentItem.senderNo
}
markRead(markReadData)