修改
This commit is contained in:
parent
e5d514d12f
commit
1c8404ffd8
10
api/pagesB/ExpertlookOrder/index.js
Normal file
10
api/pagesB/ExpertlookOrder/index.js
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
import request from "../../request.js"
|
||||||
|
|
||||||
|
//支付成功调取
|
||||||
|
export function pushMeg(data) {
|
||||||
|
return request({
|
||||||
|
url: `/nurseApplet/nursingOrder/pushMeg`,
|
||||||
|
method: 'get',
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
@ -82,7 +82,7 @@
|
|||||||
去评价
|
去评价
|
||||||
<!-- </view> -->
|
<!-- </view> -->
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class="logistics harvest" @tap='Receipt(item)'
|
<!-- <view class="logistics harvest" @tap='Receipt(item)'
|
||||||
v-if="item.orderStatus=='WAIT_RECEIVED_GOODS'&&item.orderType !='HEALTH_CONSULTATION'">
|
v-if="item.orderStatus=='WAIT_RECEIVED_GOODS'&&item.orderType !='HEALTH_CONSULTATION'">
|
||||||
确认收货</view> -->
|
确认收货</view> -->
|
||||||
<!-- <view class="logistics harvest" @tap='Receipt(item)'
|
<!-- <view class="logistics harvest" @tap='Receipt(item)'
|
||||||
@ -158,11 +158,14 @@
|
|||||||
import {
|
import {
|
||||||
insertGoodsEvaluate,
|
insertGoodsEvaluate,
|
||||||
} from '@/api/pagesB/Serviceevaluation/Serviceevaluation.js'
|
} from '@/api/pagesB/Serviceevaluation/Serviceevaluation.js'
|
||||||
|
import {
|
||||||
|
pushMeg
|
||||||
|
} from '@/api/pagesB/ExpertlookOrder/index.js'
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
rateval: 0,
|
rateval: 0,
|
||||||
show:true,
|
show: true,
|
||||||
evaluatenurse: false,
|
evaluatenurse: false,
|
||||||
tabslist: [{
|
tabslist: [{
|
||||||
name: '全部',
|
name: '全部',
|
||||||
@ -271,8 +274,8 @@
|
|||||||
tabschange(index) {
|
tabschange(index) {
|
||||||
this.tabscurrent = index;
|
this.tabscurrent = index;
|
||||||
this.orderTypeList.orderStatus = this.tabslist[index].orderStatus
|
this.orderTypeList.orderStatus = this.tabslist[index].orderStatus
|
||||||
if(this.orderTypeList.orderStatus=="EVALUATED"){
|
if (this.orderTypeList.orderStatus == "EVALUATED") {
|
||||||
this.show=false
|
this.show = false
|
||||||
}
|
}
|
||||||
// console.log(this.orderTypeList.orderStatus, '999')
|
// console.log(this.orderTypeList.orderStatus, '999')
|
||||||
// console.log(this.orderTypeList.orderType, '99')
|
// console.log(this.orderTypeList.orderType, '99')
|
||||||
@ -283,7 +286,7 @@
|
|||||||
rate(item) {
|
rate(item) {
|
||||||
if (item.orderStatus == 'COMPLETED') {
|
if (item.orderStatus == 'COMPLETED') {
|
||||||
this.rateval = 0
|
this.rateval = 0
|
||||||
this.show=true
|
this.show = true
|
||||||
}
|
}
|
||||||
this.evaluatenurse = true;
|
this.evaluatenurse = true;
|
||||||
},
|
},
|
||||||
@ -297,8 +300,8 @@
|
|||||||
//查看评价
|
//查看评价
|
||||||
golookrate(item) {
|
golookrate(item) {
|
||||||
console.log(item, '555')
|
console.log(item, '555')
|
||||||
if(item.orderStatus=="EVALUATED"){
|
if (item.orderStatus == "EVALUATED") {
|
||||||
this.show=false
|
this.show = false
|
||||||
}
|
}
|
||||||
var orderNo = item.goOrderNo
|
var orderNo = item.goOrderNo
|
||||||
lookrate(orderNo).then(res => {
|
lookrate(orderNo).then(res => {
|
||||||
@ -327,12 +330,17 @@
|
|||||||
signType: response.data.signType,
|
signType: response.data.signType,
|
||||||
paySign: response.data.paySign,
|
paySign: response.data.paySign,
|
||||||
success: function(res) {
|
success: function(res) {
|
||||||
uni.setStorageSync("Refresh", 'Refresh')
|
pushMeg({
|
||||||
that.$refs.uToast.show({
|
orderId: item.goodsOrderId,
|
||||||
title: '支付成功',
|
patientId: item.patientId
|
||||||
type: 'success',
|
}).then(respp => {
|
||||||
duration: 1500,
|
uni.setStorageSync("Refresh", 'Refresh')
|
||||||
url: `/pagesB/paysuccess/paysuccess?delta=${1}`
|
that.$refs.uToast.show({
|
||||||
|
title: '支付成功',
|
||||||
|
type: 'success',
|
||||||
|
duration: 1500,
|
||||||
|
url: `/pagesB/paysuccess/paysuccess?delta=${1}`
|
||||||
|
})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
fail: function(err) {
|
fail: function(err) {
|
||||||
|
|||||||
@ -201,7 +201,7 @@
|
|||||||
address: null,
|
address: null,
|
||||||
doctorId: null,
|
doctorId: null,
|
||||||
doctorName: null,
|
doctorName: null,
|
||||||
schedulePlanDetailId:null,
|
schedulePlanDetailId: null,
|
||||||
consultationType: 'VIDEO_CONSULTATION',
|
consultationType: 'VIDEO_CONSULTATION',
|
||||||
problemDescription: null,
|
problemDescription: null,
|
||||||
situationDescription: null,
|
situationDescription: null,
|
||||||
@ -230,7 +230,7 @@
|
|||||||
// "healthConsultationContent": '',
|
// "healthConsultationContent": '',
|
||||||
|
|
||||||
},
|
},
|
||||||
id:'',
|
id: '',
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
@ -262,7 +262,6 @@
|
|||||||
},
|
},
|
||||||
//选择时间
|
//选择时间
|
||||||
taptime(item, index) {
|
taptime(item, index) {
|
||||||
console.log(item, '8')
|
|
||||||
this.formdata.appointmentStartTime = item.starttime
|
this.formdata.appointmentStartTime = item.starttime
|
||||||
this.formdata.appointmentEndTime = item.endtime
|
this.formdata.appointmentEndTime = item.endtime
|
||||||
this.formdata.schedulePlanDetailId = item.schedulePlanDetailId
|
this.formdata.schedulePlanDetailId = item.schedulePlanDetailId
|
||||||
@ -273,7 +272,6 @@
|
|||||||
if (this.timecurrent != index) {
|
if (this.timecurrent != index) {
|
||||||
this.timecurrent = index
|
this.timecurrent = index
|
||||||
this.timeindex = 0
|
this.timeindex = 0
|
||||||
// console.log(this.formdata.appointmentStartTime, '889')
|
|
||||||
this.formdata.appointmentStartTime = this.appointmentTimeList[this.timecurrent].morningList[0]
|
this.formdata.appointmentStartTime = this.appointmentTimeList[this.timecurrent].morningList[0]
|
||||||
.starttime
|
.starttime
|
||||||
this.formdata.appointmentEndTime = this.appointmentTimeList[this.timecurrent].morningList[0]
|
this.formdata.appointmentEndTime = this.appointmentTimeList[this.timecurrent].morningList[0]
|
||||||
@ -300,7 +298,7 @@
|
|||||||
},
|
},
|
||||||
// 支付
|
// 支付
|
||||||
buy() {
|
buy() {
|
||||||
var that =this
|
var that = this
|
||||||
that.updatalist.hospitalPersonId = that.formdata.doctorId
|
that.updatalist.hospitalPersonId = that.formdata.doctorId
|
||||||
that.updatalist.hospitalPersonName = that.formdata.doctorName
|
that.updatalist.hospitalPersonName = that.formdata.doctorName
|
||||||
that.updatalist.totalPrice = that.formdata.price
|
that.updatalist.totalPrice = that.formdata.price
|
||||||
@ -311,7 +309,6 @@
|
|||||||
that.updatalist.appointmentStartTime = that.formdata.appointmentStartTime
|
that.updatalist.appointmentStartTime = that.formdata.appointmentStartTime
|
||||||
that.updatalist.appointmentEndTime = that.formdata.appointmentEndTime
|
that.updatalist.appointmentEndTime = that.formdata.appointmentEndTime
|
||||||
addHealthConsultationOrder(that.updatalist).then(res => {
|
addHealthConsultationOrder(that.updatalist).then(res => {
|
||||||
console.log(res, '6')
|
|
||||||
res.data.payType = "WECHAT_PAY"
|
res.data.payType = "WECHAT_PAY"
|
||||||
res.data.paymentPrice = res.data.totalPrice
|
res.data.paymentPrice = res.data.totalPrice
|
||||||
res.data.openid = uni.getStorageSync('openid');
|
res.data.openid = uni.getStorageSync('openid');
|
||||||
@ -325,19 +322,24 @@
|
|||||||
signType: response.data.signType,
|
signType: response.data.signType,
|
||||||
paySign: response.data.paySign,
|
paySign: response.data.paySign,
|
||||||
success: function(res) {
|
success: function(res) {
|
||||||
that.$refs.uToast.show({
|
pushMeg({
|
||||||
title: '支付成功',
|
orderId: item.goodsOrderId,
|
||||||
type: 'success',
|
patientId: item.patientId
|
||||||
duration: 1500,
|
}).then(respp => {
|
||||||
})
|
that.$refs.uToast.show({
|
||||||
if (that.timer) {
|
title: '支付成功',
|
||||||
clearTimeout(that.timer)
|
type: 'success',
|
||||||
}
|
duration: 1500,
|
||||||
that.timer = setTimeout(e => {
|
|
||||||
uni.redirectTo({
|
|
||||||
url: '/pagesB/paysuccess/paysuccess'
|
|
||||||
})
|
})
|
||||||
}, 1500)
|
if (that.timer) {
|
||||||
|
clearTimeout(that.timer)
|
||||||
|
}
|
||||||
|
that.timer = setTimeout(e => {
|
||||||
|
uni.redirectTo({
|
||||||
|
url: '/pagesB/paysuccess/paysuccess'
|
||||||
|
})
|
||||||
|
}, 1500)
|
||||||
|
})
|
||||||
},
|
},
|
||||||
fail: function(err) {
|
fail: function(err) {
|
||||||
that.$refs.uToast.show({
|
that.$refs.uToast.show({
|
||||||
@ -400,7 +402,6 @@
|
|||||||
res.data[0]?.morningList[0]?.endtime ? this.formdata.appointmentEndTime = res.data[0]
|
res.data[0]?.morningList[0]?.endtime ? this.formdata.appointmentEndTime = res.data[0]
|
||||||
.morningList[0].endtime : ''
|
.morningList[0].endtime : ''
|
||||||
this.appointmentTimeList = res.data
|
this.appointmentTimeList = res.data
|
||||||
// console.log(this.appointmentTimeList, '666')
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 显示三级地址联动
|
// 显示三级地址联动
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user