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

View File

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

View File

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