修改
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
|
||||||
|
})
|
||||||
|
}
|
||||||
@ -158,6 +158,9 @@
|
|||||||
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 {
|
||||||
@ -327,6 +330,10 @@
|
|||||||
signType: response.data.signType,
|
signType: response.data.signType,
|
||||||
paySign: response.data.paySign,
|
paySign: response.data.paySign,
|
||||||
success: function(res) {
|
success: function(res) {
|
||||||
|
pushMeg({
|
||||||
|
orderId: item.goodsOrderId,
|
||||||
|
patientId: item.patientId
|
||||||
|
}).then(respp => {
|
||||||
uni.setStorageSync("Refresh", 'Refresh')
|
uni.setStorageSync("Refresh", 'Refresh')
|
||||||
that.$refs.uToast.show({
|
that.$refs.uToast.show({
|
||||||
title: '支付成功',
|
title: '支付成功',
|
||||||
@ -334,6 +341,7 @@
|
|||||||
duration: 1500,
|
duration: 1500,
|
||||||
url: `/pagesB/paysuccess/paysuccess?delta=${1}`
|
url: `/pagesB/paysuccess/paysuccess?delta=${1}`
|
||||||
})
|
})
|
||||||
|
})
|
||||||
},
|
},
|
||||||
fail: function(err) {
|
fail: function(err) {
|
||||||
that.$refs.uToast.show({
|
that.$refs.uToast.show({
|
||||||
|
|||||||
@ -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]
|
||||||
@ -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,6 +322,10 @@
|
|||||||
signType: response.data.signType,
|
signType: response.data.signType,
|
||||||
paySign: response.data.paySign,
|
paySign: response.data.paySign,
|
||||||
success: function(res) {
|
success: function(res) {
|
||||||
|
pushMeg({
|
||||||
|
orderId: item.goodsOrderId,
|
||||||
|
patientId: item.patientId
|
||||||
|
}).then(respp => {
|
||||||
that.$refs.uToast.show({
|
that.$refs.uToast.show({
|
||||||
title: '支付成功',
|
title: '支付成功',
|
||||||
type: 'success',
|
type: 'success',
|
||||||
@ -338,6 +339,7 @@
|
|||||||
url: '/pagesB/paysuccess/paysuccess'
|
url: '/pagesB/paysuccess/paysuccess'
|
||||||
})
|
})
|
||||||
}, 1500)
|
}, 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