专家咨询

This commit is contained in:
闫晓茹 2023-11-01 10:00:47 +08:00
parent 51abc350f8
commit c8f8a9812c
8 changed files with 261 additions and 58 deletions

View File

@ -357,8 +357,10 @@
}, {
"path": "consulted/consulted",
"style": {
"navigationBarTitleText": "待咨询",
"enablePullDownRefresh": false
// "navigationBarTitleText": "待咨询",
"navigationStyle": "custom", //
"onReachBottomDistance": 20, // px
"enablePullDownRefresh": true //true
}
}, {
"path": "cancel/cancel",

View File

@ -15,7 +15,7 @@
active-color='#26A888'></u-tabs>
<view class="" v-if="total>0" style="margin-top: 80rpx;padding: 3%;">
<view class="Apayment" v-for='(item,index) in orderlist' :key="index">
<view class="names">店铺名称
<view class="names">{{item.orderTime}}
<image class="picture" src="../../static/huijiantou.png" mode=""></image>
<span v-if="item.orderStatus=='WAIT_PAY'">待付款</span>
<span v-if="item.orderStatus=='WAIT_REFUND'">退款中</span>
@ -24,7 +24,7 @@
v-if="item.orderStatus=='WAIT_RECEIVED_GOODS'&&item.orderType !='HEALTH_CONSULTATION'">待收货</span>
<span
v-if="item.orderStatus=='WAIT_RECEIVED_GOODS'&&item.orderType =='HEALTH_CONSULTATION'">待咨询</span>
<span v-if="item.orderStatus=='RECEIVED_GOODS'">评价</span>
<span v-if="item.orderStatus=='RECEIVED_GOODS'">服务</span>
<span v-if="item.orderStatus=='EVALUATED'">已完成</span>
<span v-if="item.orderStatus=='PAY'">待发货</span>
<span v-if="item.orderStatus=='REFUNDED'">已退款</span>
@ -41,7 +41,7 @@
v-if="item.orderType !='HEALTH_CONSULTATION'"></image>
<view class="model">
<view class="top">
<span v-if="item.orderType =='HEALTH_CONSULTATION'">健康咨询</span>
<span v-if="item.orderType =='HEALTH_CONSULTATION'">{{item.hospitalPersonName}}</span>
<span v-else>{{item.goodsName}}</span>
<!-- <span v-if="item.orderType =='HEALTH_CONSULTATION'">{{item.totalPrice}}</span> -->
<span
@ -145,10 +145,12 @@
{
name: '待服务',
orderStatus: 'RECEIVED_GOODS',
},{
name: '待评价',
orderStatus: 'RECEIVED_GOODS',
},
// {
// name: '',
// orderStatus: 'RECEIVED_GOODS',
// },
{
name: '已完成',
orderStatus: 'EVALUATED',
@ -292,7 +294,7 @@
//
goorderdetails(item) {
uni.navigateTo({
url: `/pagesB/orderDetails/orderDetails?goodsOrderId=${item.goodsOrderId}`
url: `/pagesB/consulted/consulted?item=${JSON.stringify(item)}`
})
},
//

View File

@ -44,7 +44,7 @@
display: inline-block;
top: 50%;
transform: translateY(-50%);
right: 10%;
right: 5%;
}
span:nth-child(4) {
@ -53,7 +53,7 @@
display: inline-block;
top: 53%;
transform: translateY(-50%);
right: 5%;
right: 0%;
font-size: 20rpx;
}
}

View File

@ -4,8 +4,8 @@
<view class="refund">
<span>退款金额</span>
<span></span>
<span>39</span>
<span>.90</span>
<!-- <span></span> -->
<span>{{list.totalPrice}}</span>
</view>
<view class="reason">
<view class="reasondata">原因</view>
@ -28,9 +28,24 @@
export default {
data() {
return {
list:[],
}
},
onLoad(options) {
console.log(options,'999')
this.list = JSON.parse(options.list)
console.log(this.list, '99')
// console.log(options,'88')
this.baseurl = baseurl
this.orderTypeList.goodsOrderId = options.goodsOrderId
let that = this
// const value = uni.getStorageSync('patientId');
// const value2 = uni.getStorageSync('openid');
// if (value && value2) {
// that.orderTypeList.patientId = value
// that.orderTypeList.openid = value2
// }
},
methods: {
}

View File

@ -1,6 +1,58 @@
.app {
padding: 0 0 124rpx;
width: 100%;
.u-navbar {
display: block;
image {
margin: 0 4% 0 4%;
width: 20rpx;
height: 30rpx;
}
.title {
width: 31%;
font-size: 34rpx;
font-weight: 500;
color: #FFFFFF;
}
.inputs {
position: relative;
// margin-left: 4%;
box-shadow: 0rpx 9rpx 31rpx 9rpx rgba(0, 0, 0, 0.03);
width: 60%;
height: 65rpx;
border-radius: 31rpx;
z-index: 999;
background: #65c0a9;
color: #FFFFFF;
.placeholder {
color: #FFFFFF;
}
.input {
margin: 0 auto;
position: absolute;
height: 65rpx;
// top: 8%;
left: 18%;
width: 80%;
font-size: 26rpx;
color: #FFFFFF;
}
.icon {
background: url(@/static/pagesB/sousuo.png) no-repeat;
width: 30rpx;
height: 28rpx;
background-size: cover;
position: absolute;
top: 28%;
left: 4%;
}
}
}
// 弹框支付
.payment {
width: 100%;

View File

@ -148,7 +148,7 @@
请选择支付方式
</view>
<view class="chat">
<image src="/static/chat.png" mode=""></image>
<image src="/static/pagesB/chat.png" mode=""></image>
<span>微信支付</span>
</view>
<view class="submits" @tap='buy'>

View File

@ -5,7 +5,58 @@
color: #000000;
padding-top: 20rpx;
overflow: scroll;
.u-navbar {
display: block;
image {
margin: 0 4% 0 4%;
width: 20rpx;
height: 30rpx;
}
.title {
width: 31%;
font-size: 34rpx;
font-weight: 500;
color: #FFFFFF;
}
.inputs {
position: relative;
// margin-left: 4%;
box-shadow: 0rpx 9rpx 31rpx 9rpx rgba(0, 0, 0, 0.03);
width: 60%;
height: 65rpx;
border-radius: 31rpx;
z-index: 999;
background: #65c0a9;
color: #FFFFFF;
.placeholder {
color: #FFFFFF;
}
.input {
margin: 0 auto;
position: absolute;
height: 65rpx;
// top: 8%;
left: 18%;
width: 80%;
font-size: 26rpx;
color: #FFFFFF;
}
.icon {
background: url(@/static/pagesB/sousuo.png) no-repeat;
width: 30rpx;
height: 28rpx;
background-size: cover;
position: absolute;
top: 28%;
left: 4%;
}
}
}
.content {
width: 95%;
height: 100%;

View File

@ -1,5 +1,22 @@
<template>
<view class="app">
<u-navbar :is-back="false" :background="background" class="u-navbar">
<image src="@/static/pagesB/fanhui.png" mode="" @tap="goprevious"></image>
<view class="title" v-if="list.orderStatus=='WAIT_PAY'">待付款</view>
<view class="title" v-if="list.orderStatus=='WAIT_REFUND'">退款中</view>
<view class="title" v-if="list.orderStatus=='CANCEL'">已取消</view>
<view class="title" v-if="list.orderStatus=='WAIT_RECEIVED_GOODS'&&list.orderType !='HEALTH_CONSULTATION'">
待收货</view>
<view class="title" v-if="list.orderStatus=='WAIT_RECEIVED_GOODS'&&list.orderType =='HEALTH_CONSULTATION'">
待咨询</view>
<view class="title" v-if="list.orderStatus=='RECEIVED_GOODS'">待评价</view>
<view class="title" v-if="list.orderStatus=='EVALUATED'">已完成</view>
<view class="title" v-if="list.orderStatus=='PAY'">待发货</view>
<view class="title" v-if="list.orderStatus=='REFUNDED'">已退款</view>
<view class="title" v-if="list.orderStatus=='WAIT_RETURNED_GOODS'">待退货</view>
<view class="title" v-if="list.orderStatus=='RETURNED_GOODS'">退款成功</view>
</u-navbar>
<view class="content">
<view class="service">
<image src="/static/pagesB/persone.png" mode=""></image>
@ -10,15 +27,20 @@
<image src="../../static/headsculpture.png" mode=""></image>
<view class="ppointment">
<view class="doctorname">
<span>张医生</span>
<span>{{list.hospitalPersonName}}</span>
</view>
<view class="reservation">
<span>齐鲁医院</span>
<span>副主任医师</span>
<span v-if="list.academicTitle=='DEPUTY_CHIEF_PHYSICIAN'">副主任医师</span>
<span v-if="list.academicTitle=='CHIEF_PHYSICIAN'">主任医师</span>
<span v-if="list.academicTitle=='ATTENDING_DOCTOR'">主治医师</span>
<span v-if="list.academicTitle=='PHYSICIAN'">医师</span>
<span v-if="list.academicTitle=='HEALER'">医士</span>
<span v-if="list.academicTitle=='RESIDENT_PHYSICIAN'">住院医师</span>
</view>
<view class="hospital">
<!-- <view class="hospital">
三甲医院
</view>
</view> -->
</view>
</view>
@ -27,44 +49,44 @@
<view class="doctorphone">
医生电话
</view>
<view class="phone">
·15864658751
<view class="phone" v-if="list.personPhone">
·{{list.personPhone}}
</view>
</view>
<view class="doctordetails">
<view class="doctorphone">
预约时间
</view>
<view class="phone">
·2023-10-10
<view class="phone" v-if="list.healthAppointDate">
{{list.healthAppointDate}}
</view>
</view>
<view class="doctordetailstwo">
<view class="doctorphonetwo">
咨询内容
</view>
<view class="phonetwo advicetwo">
·咨询内内容咨询内容咨询内容咨询内容咨询内容咨咨询内容咨询内容咨询内容咨询内容
<view class="phonetwo advicetwo" v-if="list.healthConsultationContent">
·{{list.healthConsultationContent}}
<!-- <textarea v-model="value" :type="type" :border="border" /> -->
</view>
</view>
<view class="amount">
<span>预约金额</span><span>39.90</span>
<span>预约金额</span><span>{{list.totalPrice}}</span>
</view>
<view class="doctordetailstwo">
<view class="doctorphonetwo">
备注
</view>
<view class="phonetwo advicetwo">
·备注内容
<view class="phonetwo advicetwo" v-if="list.remark">
·{{list.remark}}
</view>
</view>
</view>
<view class="bottom">
<span>更多</span>
<span @tap="cancle">取消订单</span>
<span @tap="cancle" v-if="list.orderStatus!='RECEIVED_GOODS'||list.orderStatus!='EVALUATED'">取消订单</span>
<span @tap="evaluate">服务评价</span>
</view>
<u-popup v-model="evaluateshow" mode="bottom" length="45%" border-radius="30" :closeable='true'>
@ -76,7 +98,7 @@
<span>非常差//满意/非常满意</span>
</view>
<view class="submits">
提交
提交
</view>
</u-popup>
@ -85,24 +107,84 @@
</template>
<script>
import {
confirmReceipt,
ssgoodsOrder,
} from '@/api/pagesB/CommodityOrder/index.js'
import baseurl from '@/api/baseurl.js'
export default {
data() {
return {
list: [],
//
evaluateshow:false,
background: {
backgroundColor: '#26A888',
},
evaluateshow: false,
orderTypeList: {
goodsOrderId: null,
patientId: '',
openid: null,
orderType: 'HEALTH_CONSULTATION',
orderStatus: 'WAIT_PAY',
// orderTypeList: [
// 'INTEGRAL_EXCHANGE',
// 'DIRECT_BUY',
// ],
// orderStatus: '',
pageSize: 15,
pageNum: 1,
goodsName: '',
},
}
},
onLoad(options) {
this.list = JSON.parse(options.item)
console.log(this.list, '99')
// console.log(options,'88')
this.baseurl = baseurl
this.orderTypeList.goodsOrderId = options.goodsOrderId
let that = this
// const value = uni.getStorageSync('patientId');
// const value2 = uni.getStorageSync('openid');
// if (value && value2) {
// that.orderTypeList.patientId = value
// that.orderTypeList.openid = value2
// }
},
methods: {
goprevious() {
uni.navigateBack({
delta: 1
})
},
goodsOrderinfo() {
ssgoodsOrder(this.orderTypeList).then(
res => {
this.order = res.rows[0]
var ordertimes = this.order.orderTime.replaceAll(/\-/gi, "/")
var time = new Date(ordertimes).getTime() / 1000 + (60 * 60 * 2)
var times = new Date().getTime() / 1000
this.timestamp = time - times
if (this.timestamp >= 0) {
this.timecount = this.timestamp
this.Timers = setInterval(() => {
this.timecount--;
}, 1000)
}
})
},
//
cancle(){
cancle() {
var list=this.list
uni.navigateTo({
url:'/pagesB/cancel/cancel'
url: `/pagesB/cancel/cancel?list=${JSON.stringify(this.list)}`
})
},
//
evaluate(){
this.evaluateshow=true;
evaluate() {
this.evaluateshow = true;
},
@ -112,4 +194,3 @@
<style lang="scss">
@import './consulted.scss'
</style>