修改
This commit is contained in:
parent
0f7d159fe9
commit
ee2c987670
@ -248,79 +248,79 @@
|
||||
console.log(this.orderlist)
|
||||
this.orderlist.consumableTotalPrice = null
|
||||
this.orderlist.orderChannel = 'WECHAT_APPLET'
|
||||
// if (this.radio == 1) {
|
||||
// this.$refs.uToast.show({
|
||||
// title: '请阅读用户协议并同意',
|
||||
// type: 'error',
|
||||
// })
|
||||
// } else {
|
||||
// this.orderlist.orderCount = 1;
|
||||
// this.orderlist.orderConsumableList = []
|
||||
// if (this.orderlist.itemConsumableList) {
|
||||
// this.orderlist.itemConsumableList.forEach(e => {
|
||||
// if (e.radio) {
|
||||
// this.orderlist.orderConsumableList.push(e)
|
||||
// }
|
||||
// })
|
||||
// }
|
||||
// this.orderlist.afternoonOpenEndTime = this.orderlist.afternoonOpenEndTime.slice(0, 5)
|
||||
// this.orderlist.afternoonOpenStartTime = this.orderlist.afternoonOpenStartTime.slice(0, 5)
|
||||
// this.orderlist.morningOpenEndTime = this.orderlist.morningOpenEndTime.slice(0, 5)
|
||||
// this.orderlist.morningOpenStartTime = this.orderlist.morningOpenStartTime.slice(0, 5)
|
||||
// this.orderlist.patientId = this.patientId
|
||||
// this.orderlist.serviceAddress = this.personInfo.areaName + this.personInfo.address
|
||||
// submitAppointment(this.orderlist).then(res => {
|
||||
// if (res.code == 500) {
|
||||
// that.$refs.uToast.show({
|
||||
// title: res.msg,
|
||||
// type: 'error',
|
||||
// })
|
||||
// } else if (res.code == 200) {
|
||||
// let obj = {
|
||||
// patientId: res.data.patientId,
|
||||
// openid: that.openid,
|
||||
// orderNo: res.data.orderNo,
|
||||
// orderChannel: res.data.orderChannel,
|
||||
// paymentPrice: res.data.totalPrice,
|
||||
// payType: "WECHAT_PAY",
|
||||
// buySource: "NURSE_STATION",
|
||||
// }
|
||||
// appletAppointmentOrderPay(obj).then(response => {
|
||||
// if (response.code == 200) {
|
||||
// uni.requestPayment({
|
||||
// timeStamp: response.data.timeStamp,
|
||||
// nonceStr: response.data.nonceStr,
|
||||
// package: response.data.prepayId,
|
||||
// signType: response.data.signType,
|
||||
// paySign: response.data.paySign,
|
||||
// success: function(res) {
|
||||
// that.$refs.uToast.show({
|
||||
// title: '预约成功',
|
||||
// type: 'success',
|
||||
// duration: 1500,
|
||||
// url: `/pages/paysuccess/paysuccess`
|
||||
// })
|
||||
// },
|
||||
// fail: function(err) {
|
||||
// that.$refs.uToast.show({
|
||||
// title: '取消预约',
|
||||
// type: 'error',
|
||||
// duration: 1500,
|
||||
// url: `/pages/menttimeorder/menttimeorder?list=${JSON.stringify(obj)}`
|
||||
// })
|
||||
// }
|
||||
// });
|
||||
// } else {
|
||||
// that.$refs.uToast.show({
|
||||
// title: response.msg,
|
||||
// type: 'error',
|
||||
// duration: 2000
|
||||
// })
|
||||
// }
|
||||
// })
|
||||
// }
|
||||
// })
|
||||
// }
|
||||
if (this.radio == 1) {
|
||||
this.$refs.uToast.show({
|
||||
title: '请阅读用户协议并同意',
|
||||
type: 'error',
|
||||
})
|
||||
} else {
|
||||
this.orderlist.orderCount = 1;
|
||||
this.orderlist.orderConsumableList = []
|
||||
if (this.orderlist.itemConsumableList) {
|
||||
this.orderlist.itemConsumableList.forEach(e => {
|
||||
if (e.radio) {
|
||||
this.orderlist.orderConsumableList.push(e)
|
||||
}
|
||||
})
|
||||
}
|
||||
this.orderlist.afternoonOpenEndTime = this.orderlist.afternoonOpenEndTime.slice(0, 5)
|
||||
this.orderlist.afternoonOpenStartTime = this.orderlist.afternoonOpenStartTime.slice(0, 5)
|
||||
this.orderlist.morningOpenEndTime = this.orderlist.morningOpenEndTime.slice(0, 5)
|
||||
this.orderlist.morningOpenStartTime = this.orderlist.morningOpenStartTime.slice(0, 5)
|
||||
this.orderlist.patientId = this.patientId
|
||||
this.orderlist.serviceAddress = this.personInfo.areaName + this.personInfo.address
|
||||
submitAppointment(this.orderlist).then(res => {
|
||||
if (res.code == 500) {
|
||||
that.$refs.uToast.show({
|
||||
title: res.msg,
|
||||
type: 'error',
|
||||
})
|
||||
} else if (res.code == 200) {
|
||||
let obj = {
|
||||
patientId: res.data.patientId,
|
||||
openid: that.openid,
|
||||
orderNo: res.data.orderNo,
|
||||
orderChannel: res.data.orderChannel,
|
||||
paymentPrice: res.data.totalPrice,
|
||||
payType: "WECHAT_PAY",
|
||||
buySource: "NURSE_STATION",
|
||||
}
|
||||
appletAppointmentOrderPay(obj).then(response => {
|
||||
if (response.code == 200) {
|
||||
uni.requestPayment({
|
||||
timeStamp: response.data.timeStamp,
|
||||
nonceStr: response.data.nonceStr,
|
||||
package: response.data.prepayId,
|
||||
signType: response.data.signType,
|
||||
paySign: response.data.paySign,
|
||||
success: function(res) {
|
||||
that.$refs.uToast.show({
|
||||
title: '预约成功',
|
||||
type: 'success',
|
||||
duration: 1500,
|
||||
url: `/pages/paysuccess/paysuccess`
|
||||
})
|
||||
},
|
||||
fail: function(err) {
|
||||
that.$refs.uToast.show({
|
||||
title: '取消预约',
|
||||
type: 'error',
|
||||
duration: 1500,
|
||||
url: `/pages/menttimeorder/menttimeorder?list=${JSON.stringify(obj)}`
|
||||
})
|
||||
}
|
||||
});
|
||||
} else {
|
||||
that.$refs.uToast.show({
|
||||
title: response.msg,
|
||||
type: 'error',
|
||||
duration: 2000
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
changeRadio() {
|
||||
if (this.radio == 1) {
|
||||
|
||||
@ -17,11 +17,11 @@
|
||||
<style lang="scss">
|
||||
.app {
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
|
||||
padding: 0;
|
||||
background-color: #1A191E;
|
||||
image {
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 65 KiB After Width: | Height: | Size: 82 KiB |
Loading…
Reference in New Issue
Block a user