修改消息列表
This commit is contained in:
parent
8a819f1065
commit
15f8ec370e
@ -1,10 +1,10 @@
|
||||
// var baseurl = "https://quanyidaojia.xinelu.cn";
|
||||
// var baseurl = "http://192.168.16.48:8088";
|
||||
var baseurl = "http://192.168.16.212:8088";
|
||||
// 蒙
|
||||
// var baseurl = "http://8.131.93.145:54088";
|
||||
// 郝
|
||||
// var baseurl = "http://8.131.93.145:54010";
|
||||
|
||||
var baseurl = "http://192.168.16.35:8088";
|
||||
// var baseurl = "http://192.168.16.35:8088";
|
||||
|
||||
export default baseurl
|
||||
|
||||
@ -57,7 +57,7 @@
|
||||
<style lang="scss">
|
||||
.app {
|
||||
height: 100vh;
|
||||
background-color: #fff;
|
||||
// background-color: #fff;
|
||||
position: relative;
|
||||
background: #F1F1F1;
|
||||
|
||||
|
||||
148
pages/information/information.vue
Normal file
148
pages/information/information.vue
Normal file
@ -0,0 +1,148 @@
|
||||
<template>
|
||||
<view class="app">
|
||||
<!-- 7 -->
|
||||
<view class="content">
|
||||
<view class="information">
|
||||
姓名:{{list.patientName}}
|
||||
</view>
|
||||
<view class="information">
|
||||
身份证号:{{list.cardNo}}
|
||||
</view>
|
||||
<view class="information">
|
||||
联系方式:{{list.phone}}
|
||||
</view>
|
||||
<view class="information">
|
||||
现住址:{{list.address}}
|
||||
</view>
|
||||
</view>
|
||||
<view class="Familybody">
|
||||
<view class="">
|
||||
问题简述:{{list.problemDescription}}
|
||||
</view>
|
||||
<view class="">
|
||||
患者个人情况说明:{{list.situationDescription}}
|
||||
</view>
|
||||
<view class="">
|
||||
病历:{{list.medicalRecord}}
|
||||
</view>
|
||||
<view class="" v-if="status==2">
|
||||
预约日期:{{list.appointmentDate}}
|
||||
</view>
|
||||
<view class="" v-if="status==2">
|
||||
预约开始时间点:{{list.appointmentStartTime}}
|
||||
</view>
|
||||
<view class="" v-if="status==2">
|
||||
预约结束时间点:{{list.appointmentEndTime}}
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view class="add">附件文件
|
||||
<image v-if="list.videoUrl" :src="baseurl+list.videoUrl" mode=""></image>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
consultationlnfo,
|
||||
} from '@/api/seekadvicefrom/seekadvicefrom.js';
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
id: '',
|
||||
list: [],
|
||||
status: '',
|
||||
}
|
||||
},
|
||||
onLoad(options) {
|
||||
console.log(options, '859')
|
||||
this.id = options.item
|
||||
this.status = uni.getStorageInfoSync('status')
|
||||
this.info()
|
||||
},
|
||||
methods: {
|
||||
back() {
|
||||
uni.navigateBack({
|
||||
delta: 1
|
||||
})
|
||||
},
|
||||
info() {
|
||||
consultationlnfo(this.id).then(res => {
|
||||
console.log(res)
|
||||
this.list = res.data
|
||||
})
|
||||
},
|
||||
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.app {
|
||||
width: 100%;
|
||||
// margin: 20rpx auto;
|
||||
height: 100%;
|
||||
padding: 30rpx;
|
||||
// background-color: red;
|
||||
font-size: 35rpx;
|
||||
|
||||
// .title {
|
||||
// font-size: 20px;
|
||||
// text-align: center;
|
||||
// height: 80rpx;
|
||||
// border-bottom: 1rpx solid #f6f6f6;
|
||||
// padding-top: 100rpx;
|
||||
// position: fixed;
|
||||
// width: 100%;
|
||||
// background: white;
|
||||
// z-index: 10;
|
||||
|
||||
// image {
|
||||
// width: 20rpx;
|
||||
// height: 30rpx;
|
||||
// transform: rotate(180deg);
|
||||
// position: absolute;
|
||||
// left: 40rpx;
|
||||
// bottom: 38rpx;
|
||||
// }
|
||||
// }
|
||||
|
||||
.Familybody {
|
||||
padding: 30rpx;
|
||||
width: 98%;
|
||||
height: 600rpx;
|
||||
background-color: #fff;
|
||||
line-height: 120rpx;
|
||||
margin: 20rpx auto;
|
||||
}
|
||||
|
||||
.add {
|
||||
padding: 30rpx;
|
||||
width: 98%;
|
||||
height: 600rpx;
|
||||
background-color: #fff;
|
||||
line-height: 120rpx;
|
||||
position: relative;
|
||||
|
||||
image {
|
||||
position: absolute;
|
||||
top: 20%;
|
||||
width: 300rpx;
|
||||
height: 300rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.content {
|
||||
width: 98%;
|
||||
// height: 300rpx;
|
||||
background-color: #fff;
|
||||
margin: 20rpx auto;
|
||||
padding: 30rpx;
|
||||
|
||||
.information {
|
||||
line-height: 62rpx;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@ -98,7 +98,6 @@
|
||||
<image src="../../static/huijiantou.png" mode=""></image>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
<!-- 专病医生 -->
|
||||
|
||||
511
pages/quanyi/quanyi.vue
Normal file
511
pages/quanyi/quanyi.vue
Normal file
@ -0,0 +1,511 @@
|
||||
<template>
|
||||
<view class="app">
|
||||
<uni-nav-bar title="消息列表" background-color="#18CBB3" color="white"></uni-nav-bar>
|
||||
<u-tabs :list="tabslist" :is-scroll="false" :current="tabscurrent" @change="tabschange" inactive-color='#fff'
|
||||
active-color='#fff'></u-tabs>
|
||||
<view class="inputs" style="width: 90%;height: 60rpx;transform: none;margin: 20rpx auto;">
|
||||
<i class="icon"></i>
|
||||
<input type="text" name="" id="" class="input" placeholder="搜索" v-model="formdata.name">
|
||||
</view>
|
||||
<view class="lists" v-if="listinfo">
|
||||
<view class="item" v-for="item in listinfo" @tap='goseekadvicefrom(item)'>
|
||||
<image src="../../static/headsculpture.png" mode=""></image>
|
||||
<view class="name">
|
||||
{{item.patientName}}
|
||||
</view>
|
||||
<view class="text">
|
||||
{{item.content}}
|
||||
</view>
|
||||
<view class="count" v-if="item.messageCount>0">
|
||||
{{item.messageCount}}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
|
||||
<u-toast ref="uToast" />
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
getList,
|
||||
updateStatus,
|
||||
closeHealthConsultationOrder,
|
||||
consultationInfolist,
|
||||
getUserSig,
|
||||
consultation,
|
||||
} from '@/api/homepage/index.js'
|
||||
// import {
|
||||
// quanyi
|
||||
// } from '../quanyi/quanyi.vue'
|
||||
import {
|
||||
getSex
|
||||
} from '@/utils/conversion.js'
|
||||
export default {
|
||||
props: [
|
||||
'Refresh', 'down'
|
||||
],
|
||||
data() {
|
||||
return {
|
||||
Refreshname: 0,
|
||||
tabslist: [{
|
||||
name: '全部',
|
||||
value: '',
|
||||
}, {
|
||||
name: '已解决',
|
||||
value: '2',
|
||||
}, {
|
||||
name: '未解决',
|
||||
value: '1',
|
||||
}],
|
||||
tabscurrent: 0,
|
||||
optionindex: 0,
|
||||
optionname: '全部',
|
||||
// options: [{
|
||||
// label: '全部',
|
||||
// value: '',
|
||||
// }, {
|
||||
// label: '待接单',
|
||||
// value: 'WAIT_RECEIVED_GOODS',
|
||||
// }, {
|
||||
// label: '待服务',
|
||||
// value: 'RECEIVED_GOODS',
|
||||
// }, {
|
||||
// label: '已完成',
|
||||
// value: 'COMPLETED',
|
||||
// }],
|
||||
query: {
|
||||
hospitalPersonId: uni.getStorageSync("id"),
|
||||
orderStatus: '',
|
||||
orderType: '',
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
},
|
||||
missionlist: [],
|
||||
missiontotal: 0,
|
||||
remark: '',
|
||||
formdata: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
doctorId: uni.getStorageSync("id"),
|
||||
consultationType: 'IMAGE_TEXT_CONSULTATION',
|
||||
status: '',
|
||||
},
|
||||
listinfo: [],
|
||||
listtotal: 0,
|
||||
status: '',
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.status = uni.getStorageInfoSync('status')
|
||||
},
|
||||
watch: {
|
||||
Refresh(newvalue, oldvalue) {
|
||||
console.log(newvalue, oldvalue, '55')
|
||||
this.info();
|
||||
},
|
||||
|
||||
},
|
||||
methods: {
|
||||
//前往聊天
|
||||
goseekadvicefrom(item) {
|
||||
console.log(item, '854')
|
||||
uni.navigateTo({
|
||||
url: `/pages/seekadvicefrom/seekadvicefrom?item=${JSON.stringify(item)}`
|
||||
// url: '/pages/seekadvicefrom/seekadvicefrom'
|
||||
})
|
||||
},
|
||||
//详情
|
||||
gotaskDetails(item) {
|
||||
uni.navigateTo({
|
||||
url: `/pages/taskDetails/taskDetails?id=${item.consultationInfoId}&title=${item.orderStatus}`
|
||||
})
|
||||
},
|
||||
//完成
|
||||
goconfirmCompletion(item) {
|
||||
var obj = {
|
||||
"goodsOrderId": item.goodsOrderId,
|
||||
"orderStatus": "COMPLETED",
|
||||
}
|
||||
updateStatus(obj).then(res => {
|
||||
if (res.code == 200) {
|
||||
this.$refs.uToast.show({
|
||||
title: '工单已成功',
|
||||
type: 'success',
|
||||
duration: '1500'
|
||||
})
|
||||
this.info();
|
||||
}
|
||||
})
|
||||
},
|
||||
//任务退回
|
||||
gotaskReturn(item) {
|
||||
uni.navigateTo({
|
||||
url: `/pages/taskReturn/taskReturn?item=${JSON.stringify(item)}`
|
||||
})
|
||||
},
|
||||
//接单
|
||||
Receivingorders(item) {
|
||||
var obj = {
|
||||
"goodsOrderId": item.goodsOrderId,
|
||||
"orderStatus": "RECEIVED_GOODS",
|
||||
}
|
||||
updateStatus(obj).then(res => {
|
||||
if (res.code == 200) {
|
||||
this.$refs.uToast.show({
|
||||
title: '接单成功',
|
||||
type: 'success',
|
||||
duration: '1500'
|
||||
})
|
||||
this.info();
|
||||
}
|
||||
})
|
||||
},
|
||||
// 视频通话
|
||||
govideo(item) {
|
||||
uni.navigateTo({
|
||||
url: `/pages/Industrialbutler/Industrialbutler?item=${JSON.stringify(item)}`
|
||||
})
|
||||
},
|
||||
info() {
|
||||
this.formdata.pageNum = 1
|
||||
console.log(this.formdata, '585')
|
||||
consultationInfolist(this.formdata).then(res => {
|
||||
this.listinfo = res.rows
|
||||
console.log(this.listinfo, '58')
|
||||
this.listtotal = res.total
|
||||
console.log(this.listtotal, '5')
|
||||
})
|
||||
},
|
||||
tabschange(index) {
|
||||
console.log(index, '858')
|
||||
this.tabscurrent = index;
|
||||
this.formdata.status = this.tabslist[index].value
|
||||
// this.optionname = '全部'
|
||||
this.optionindex = 0
|
||||
this.info();
|
||||
},
|
||||
// dropitemchange(e) {
|
||||
// this.optionname = this.options.find(m => m.value === e).label
|
||||
// this.query.orderStatus = this.options.find(m => m.value === e).value
|
||||
// this.info();
|
||||
// },
|
||||
},
|
||||
onReachBottom() { //下滑加载
|
||||
console.log(this.listinfo.length)
|
||||
if (this.listinfo.length >= this.listtotal) {} else {
|
||||
this.formdata.pageNum++
|
||||
consultationInfolist(this.formdata).then(res => {
|
||||
this.listinfo = res.rows
|
||||
})
|
||||
}
|
||||
},
|
||||
onPullDownRefresh() { //下拉刷新
|
||||
// console.log(this.listinfo.length)
|
||||
this.info();
|
||||
this.Refreshname++
|
||||
setTimeout(function() {
|
||||
uni.stopPullDownRefresh();
|
||||
}, 1000);
|
||||
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
page {
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
.app {
|
||||
width: 100%;
|
||||
// margin: 20rpx auto;
|
||||
padding: 0 0 100rpx 0;
|
||||
background-color: #fff;
|
||||
font-size: 24rpx;
|
||||
|
||||
.lists {
|
||||
width: 96%;
|
||||
margin: 0 auto;
|
||||
|
||||
.item {
|
||||
position: relative;
|
||||
height: 180rpx;
|
||||
|
||||
.count {
|
||||
position: absolute;
|
||||
right: 10rpx;
|
||||
bottom: 50rpx;
|
||||
width: 28rpx;
|
||||
height: 28rpx;
|
||||
background: #FF0000;
|
||||
border-radius: 50%;
|
||||
text-align: center;
|
||||
line-height: 28rpx;
|
||||
color: #fff;
|
||||
font-weight: 400;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
|
||||
.text {
|
||||
font-size: 24rpx;
|
||||
font-weight: 400;
|
||||
color: #999999;
|
||||
position: absolute;
|
||||
left: 160rpx;
|
||||
bottom: 50rpx;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
width: calc(100% - 220rpx);
|
||||
}
|
||||
|
||||
.name {
|
||||
position: absolute;
|
||||
left: 160rpx;
|
||||
top: 40rpx;
|
||||
font-size: 28rpx;
|
||||
font-weight: 400;
|
||||
color: #333333;
|
||||
}
|
||||
|
||||
image {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 20rpx;
|
||||
transform: translateY(-50%);
|
||||
width: 110rpx;
|
||||
height: 110rpx;
|
||||
border-radius: 50%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.inputs {
|
||||
background-color: #fff;
|
||||
width: 65%;
|
||||
// height: 60rpx;
|
||||
// border: 1px solid #F6F6F6;
|
||||
height: 0rpx;
|
||||
border-radius: 5rpx;
|
||||
background-color: #ffffff;
|
||||
z-index: 999;
|
||||
position: relative;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
background: #F6F6F6;
|
||||
border-radius: 38rpx;
|
||||
|
||||
.input {
|
||||
margin: 0 auto;
|
||||
position: absolute;
|
||||
height: 60rpx;
|
||||
// top: 8%;
|
||||
left: 13%;
|
||||
width: 80%;
|
||||
font-size: 26rpx;
|
||||
color: #000000;
|
||||
}
|
||||
|
||||
.icon {
|
||||
background: url(@/static/sousuo.png) no-repeat;
|
||||
width: 30rpx;
|
||||
height: 28rpx;
|
||||
background-size: cover;
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
left: 3%;
|
||||
}
|
||||
}
|
||||
|
||||
.btnss {
|
||||
display: flex;
|
||||
text-align: center;
|
||||
border-top: 1rpx solid #f6f6f6;
|
||||
font-size: 32rpx;
|
||||
line-height: 100rpx;
|
||||
width: 100%;
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
|
||||
.cancel {
|
||||
width: 50%;
|
||||
height: 100rpx;
|
||||
border-right: 0.5rpx solid #f6f6f6;
|
||||
}
|
||||
|
||||
.Rescind {
|
||||
width: 50%;
|
||||
height: 100rpx;
|
||||
color: #18CBB3;
|
||||
border-left: 0.5rpx solid #f6f6f6;
|
||||
}
|
||||
}
|
||||
|
||||
.items {
|
||||
width: 96%;
|
||||
margin: 0 auto;
|
||||
|
||||
.item {
|
||||
margin: 15rpx auto;
|
||||
background-color: #fff;
|
||||
box-shadow: 0rpx 9rpx 31rpx 9rpx rgba(0, 0, 0, 0.03);
|
||||
border-radius: 5rpx;
|
||||
padding: 3%;
|
||||
width: 100%;
|
||||
position: relative;
|
||||
color: #333333;
|
||||
font-size: 30rpx;
|
||||
padding-bottom: 60rpx;
|
||||
|
||||
.tabscurrent {
|
||||
width: 100%;
|
||||
padding: 30rpx;
|
||||
margin: 0 auto;
|
||||
background: #F7F9F8;
|
||||
border-radius: 14rpx;
|
||||
}
|
||||
|
||||
.btns {
|
||||
margin-top: 60rpx;
|
||||
display: flex;
|
||||
position: relative;
|
||||
height: 30rpx;
|
||||
|
||||
.text {
|
||||
// width: 82rpx;
|
||||
height: 27rpx;
|
||||
font-size: 28rpx;
|
||||
font-weight: 500;
|
||||
color: #E57726;
|
||||
line-height: 55rpx;
|
||||
}
|
||||
|
||||
.btnaccept,
|
||||
.btnreturn {
|
||||
width: 170rpx;
|
||||
height: 60rpx;
|
||||
text-align: center;
|
||||
line-height: 55rpx;
|
||||
border-radius: 50rpx;
|
||||
border: 1px solid #18CBB3;
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
.btnaccept {
|
||||
right: 24rpx;
|
||||
color: #fff;
|
||||
background-color: #18CBB3;
|
||||
}
|
||||
|
||||
.btnreturn {
|
||||
right: 220rpx;
|
||||
color: #18CBB3;
|
||||
background: #FFFFFF;
|
||||
}
|
||||
}
|
||||
|
||||
.time {
|
||||
line-height: 60rpx;
|
||||
font-size: 24rpx;
|
||||
font-weight: 400;
|
||||
color: #333333;
|
||||
|
||||
span {
|
||||
word-break: break-all;
|
||||
padding-left: 10rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.itemimg {
|
||||
position: absolute;
|
||||
right: 15rpx;
|
||||
top: 18rpx;
|
||||
width: 140rpx;
|
||||
height: 120rpx;
|
||||
}
|
||||
|
||||
.title {
|
||||
font-size: 32rpx;
|
||||
line-height: 100rpx;
|
||||
border-bottom: 1rpx solid #E6E6E6;
|
||||
color: #333333;
|
||||
position: relative;
|
||||
height: 100rpx;
|
||||
|
||||
.text {
|
||||
height: 100%;
|
||||
overflow: hidden; //超出的文本隐藏
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 1; // 超出多少行
|
||||
-webkit-box-orient: vertical;
|
||||
width: 50%;
|
||||
}
|
||||
|
||||
.image {
|
||||
position: absolute;
|
||||
right: 0%;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
display: inline-block;
|
||||
font-size: 30rpx;
|
||||
color: #EA706A;
|
||||
|
||||
image {
|
||||
// vertical-align: middle;
|
||||
transform: translateY(20%);
|
||||
width: 40rpx;
|
||||
height: 40rpx;
|
||||
padding-right: 10rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
::v-deep .u-tabs {
|
||||
background-color: #18CBB3 !important;
|
||||
}
|
||||
|
||||
.top {
|
||||
width: 82%;
|
||||
margin: 0 auto;
|
||||
display: flex;
|
||||
height: 84rpx;
|
||||
justify-content: space-around;
|
||||
|
||||
::v-deep .u-flex {
|
||||
width: 100% !important;
|
||||
}
|
||||
|
||||
::v-deep .u-dropdown__content {
|
||||
overflow-y: scroll !important;
|
||||
height: 500rpx;
|
||||
|
||||
.u-flex {
|
||||
width: 0 !important;
|
||||
}
|
||||
}
|
||||
|
||||
::v-deep .u-dropdown__content__mask {
|
||||
background: none !important;
|
||||
}
|
||||
|
||||
::v-deep .u-dropdown__menu__item {
|
||||
width: 100% !important;
|
||||
}
|
||||
|
||||
::v-deep .u-cell__value {
|
||||
flex: 0;
|
||||
}
|
||||
|
||||
::v-deep .u-dropdown {
|
||||
:v-deep .u-dropdown__menu {}
|
||||
}
|
||||
|
||||
::v-deep .u-cell-box {}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
BIN
static/huanzhe.png
Normal file
BIN
static/huanzhe.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6.8 KiB |
Loading…
Reference in New Issue
Block a user