专家咨询订单
This commit is contained in:
parent
48de563425
commit
0b056ee6bb
@ -23,3 +23,14 @@ export function ssgoodsOrder(data) {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function ssgoodsOrderdata(data) {
|
||||||
|
return request({
|
||||||
|
url: '/nurseApplet/nursingOrder/getConsultationOrder',
|
||||||
|
method: 'get',
|
||||||
|
data,
|
||||||
|
header: {
|
||||||
|
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
|
||||||
|
},
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|||||||
@ -4,6 +4,8 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
color: #000000;
|
color: #000000;
|
||||||
padding-top: 20rpx;
|
padding-top: 20rpx;
|
||||||
|
height: calc(100vh - 78px);
|
||||||
|
overflow: auto;
|
||||||
// overflow: scroll;
|
// overflow: scroll;
|
||||||
.buy {
|
.buy {
|
||||||
background: #FFFFFF;
|
background: #FFFFFF;
|
||||||
@ -121,7 +123,7 @@
|
|||||||
}
|
}
|
||||||
.content {
|
.content {
|
||||||
width: 95%;
|
width: 95%;
|
||||||
height: 100%;
|
// height: 100%;
|
||||||
background: #FFFFFF;
|
background: #FFFFFF;
|
||||||
box-shadow: 0rpx 9rpx 31rpx 9rpx rgba(0, 0, 0, 0.03);
|
box-shadow: 0rpx 9rpx 31rpx 9rpx rgba(0, 0, 0, 0.03);
|
||||||
border-radius: 5rpx;
|
border-radius: 5rpx;
|
||||||
@ -130,7 +132,7 @@
|
|||||||
.service {
|
.service {
|
||||||
width: 50%;
|
width: 50%;
|
||||||
// top: 4%;
|
// top: 4%;
|
||||||
position: absolute;
|
position: relative;
|
||||||
height: 35px;
|
height: 35px;
|
||||||
left: 6%;
|
left: 6%;
|
||||||
|
|
||||||
@ -302,7 +304,8 @@
|
|||||||
top: 2%;
|
top: 2%;
|
||||||
width: 90%;
|
width: 90%;
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
margin-bottom: 8%;
|
height: 75rpx;
|
||||||
|
// margin-bottom: 8%;
|
||||||
span:nth-child(2) {
|
span:nth-child(2) {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
|||||||
@ -70,6 +70,62 @@
|
|||||||
{{list.healthAppointDate}}
|
{{list.healthAppointDate}}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="doctordetails">
|
||||||
|
<view class="doctorphone">
|
||||||
|
预约日期
|
||||||
|
</view>
|
||||||
|
<view class="phone" v-if="order.appointmentDate">
|
||||||
|
{{order.appointmentDate}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="doctordetails">
|
||||||
|
<view class="doctorphone">
|
||||||
|
预约开始时间点
|
||||||
|
</view>
|
||||||
|
<view class="phone" v-if="order.appointmentStartTime">
|
||||||
|
{{order.appointmentStartTime}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="doctordetails">
|
||||||
|
<view class="doctorphone">
|
||||||
|
预约结束时间点
|
||||||
|
</view>
|
||||||
|
<view class="phone" v-if="order.appointmentEndTime">
|
||||||
|
{{order.appointmentEndTime}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="doctordetailstwo">
|
||||||
|
<view class="doctorphonetwo">
|
||||||
|
问题简述
|
||||||
|
</view>
|
||||||
|
<view class="phonetwo advicetwo" v-if="order.problemDescription">
|
||||||
|
{{order.problemDescription}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="doctordetailstwo">
|
||||||
|
<view class="doctorphonetwo">
|
||||||
|
患者个体情况说明
|
||||||
|
</view>
|
||||||
|
<view class="phonetwo advicetwo" v-if="order.situationDescription">
|
||||||
|
{{order.situationDescription}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="doctordetailstwo">
|
||||||
|
<view class="doctorphonetwo">
|
||||||
|
问题描述
|
||||||
|
</view>
|
||||||
|
<view class="phonetwo advicetwo" v-if="order.problemStatement">
|
||||||
|
{{order.problemStatement}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="doctordetailstwo">
|
||||||
|
<view class="doctorphonetwo">
|
||||||
|
病例
|
||||||
|
</view>
|
||||||
|
<view class="phonetwo advicetwo" v-if="order.medicalRecord">
|
||||||
|
{{order.medicalRecord}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
<view class="doctordetailstwo">
|
<view class="doctordetailstwo">
|
||||||
<view class="doctorphonetwo">
|
<view class="doctorphonetwo">
|
||||||
咨询内容
|
咨询内容
|
||||||
@ -82,6 +138,10 @@
|
|||||||
<span>订单金额</span><span>¥{{list.totalPrice}}</span>
|
<span>订单金额</span><span>¥{{list.totalPrice}}</span>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
|
<!-- <view class="amount">
|
||||||
|
<span>预约日期</span><span>¥{{list.appointmentDate}}</span>
|
||||||
|
|
||||||
|
</view> -->
|
||||||
<!-- <view class="doctordetailstwo">
|
<!-- <view class="doctordetailstwo">
|
||||||
<view class="doctorphonetwo">
|
<view class="doctorphonetwo">
|
||||||
备注
|
备注
|
||||||
@ -125,6 +185,7 @@
|
|||||||
import {
|
import {
|
||||||
confirmReceipt,
|
confirmReceipt,
|
||||||
ssgoodsOrder,
|
ssgoodsOrder,
|
||||||
|
ssgoodsOrderdata,
|
||||||
} from '@/api/pagesB/CommodityOrder/index.js'
|
} from '@/api/pagesB/CommodityOrder/index.js'
|
||||||
import baseurl from '@/api/baseurl.js'
|
import baseurl from '@/api/baseurl.js'
|
||||||
import {
|
import {
|
||||||
@ -143,19 +204,8 @@
|
|||||||
},
|
},
|
||||||
evaluateshow: false,
|
evaluateshow: false,
|
||||||
orderTypeList: {
|
orderTypeList: {
|
||||||
goodsOrderId: null,
|
orderNo:'',
|
||||||
patientId: '',
|
|
||||||
openid: null,
|
|
||||||
orderType: 'HEALTH_CONSULTATION',
|
|
||||||
orderStatus: '',
|
|
||||||
// orderTypeList: [
|
|
||||||
// 'INTEGRAL_EXCHANGE',
|
|
||||||
// 'DIRECT_BUY',
|
|
||||||
// ],
|
|
||||||
// orderStatus: '',
|
|
||||||
pageSize: 15,
|
|
||||||
pageNum: 1,
|
|
||||||
goodsName: '',
|
|
||||||
},
|
},
|
||||||
order: [],
|
order: [],
|
||||||
|
|
||||||
@ -164,18 +214,17 @@
|
|||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
// if(options.item){
|
// if(options.item){
|
||||||
this.list = JSON.parse(options.item)
|
this.list = JSON.parse(options.item)
|
||||||
console.log(this.list, '555')
|
// console.log(this.list, '555')
|
||||||
this.orderTypeList.orderStatus = this.list.orderStatus
|
// this.orderTypeList.orderStatus = this.list.orderStatus
|
||||||
this.orderTypeList.goodsOrderId = this.list.goodsOrderId
|
// this.orderTypeList.goodsOrderId = this.list.goodsOrderId
|
||||||
// console.log(this.orderTypeList.orderStatus, '25256')
|
this.orderTypeList.orderNo = this.list.goOrderNo
|
||||||
// else if(options.goodsOrderId){
|
// goOrderNo
|
||||||
// this.orderTypeList.goodsOrderId = options.goodsOrderId
|
|
||||||
// let that = this
|
|
||||||
|
|
||||||
|
|
||||||
// }
|
// }
|
||||||
this.orderTypeList.patientId = uni.getStorageSync('patientId');
|
// this.orderTypeList.patientId = uni.getStorageSync('patientId');
|
||||||
this.orderTypeList.openid = uni.getStorageSync('openid');
|
// this.orderTypeList.openid = uni.getStorageSync('openid');
|
||||||
// if (value && value2) {
|
// if (value && value2) {
|
||||||
// that.orderTypeList.patientId = value
|
// that.orderTypeList.patientId = value
|
||||||
// that.orderTypeList.openid = value2
|
// that.orderTypeList.openid = value2
|
||||||
@ -196,7 +245,7 @@
|
|||||||
pay() {
|
pay() {
|
||||||
var that = this
|
var that = this
|
||||||
let paydata = this.list
|
let paydata = this.list
|
||||||
paydata.openid = this.orderTypeList.openid
|
paydata.openid = uni.getStorageSync('openid')
|
||||||
paydata.payType = "WECHAT_PAY"
|
paydata.payType = "WECHAT_PAY"
|
||||||
paydata.paymentPrice = this.list.totalPrice
|
paydata.paymentPrice = this.list.totalPrice
|
||||||
paydata.orderChannel = 'WECHAT_APPLET'
|
paydata.orderChannel = 'WECHAT_APPLET'
|
||||||
@ -237,9 +286,10 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
goodsOrderinfo() {
|
goodsOrderinfo() {
|
||||||
ssgoodsOrder(this.orderTypeList).then(
|
ssgoodsOrderdata(this.orderTypeList).then(
|
||||||
res => {
|
res => {
|
||||||
this.order = res.rows[0]
|
console.log(res)
|
||||||
|
this.order = res.data
|
||||||
var ordertimes = this.order.orderTime.replaceAll(/\-/gi, "/")
|
var ordertimes = this.order.orderTime.replaceAll(/\-/gi, "/")
|
||||||
var time = new Date(ordertimes).getTime() / 1000 + (60 * 60 * 2)
|
var time = new Date(ordertimes).getTime() / 1000 + (60 * 60 * 2)
|
||||||
var times = new Date().getTime() / 1000
|
var times = new Date().getTime() / 1000
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user